You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"doc": "An example schema to illustrate the issue",
6
+
"fields": [
7
+
{
8
+
"name": "metadata",
9
+
"type": {
10
+
"type": "record",
11
+
"name": "EventMetadata",
12
+
"namespace": "com.foo",
13
+
"doc": "Metadata to be associated with every published event",
14
+
"fields": [
15
+
{
16
+
"name": "id",
17
+
"type": {
18
+
"type": "string",
19
+
"logicalType": "uuid"
20
+
},
21
+
"doc": "Unique identifier for this specific event"
22
+
},
23
+
{
24
+
"name": "timestamp",
25
+
"type": {
26
+
"type": "long",
27
+
"logicalType": "timestamp-millis"
28
+
},
29
+
"doc": "Instant the event took place (not necessary when it was published)"
30
+
},
31
+
{
32
+
"name": "correlation_id",
33
+
"type": [
34
+
"null",
35
+
{
36
+
"type": "string",
37
+
"logicalType": "uuid"
38
+
}
39
+
],
40
+
"doc": "id of the event that resulted in this\nevent being published (optional)",
41
+
"default": null
42
+
},
43
+
{
44
+
"name": "publisher_context",
45
+
"type": [
46
+
"null",
47
+
{
48
+
"type": "map",
49
+
"values": {
50
+
"type": "string",
51
+
"avro.java.string": "String"
52
+
},
53
+
"avro.java.string": "String"
54
+
}
55
+
],
56
+
"doc": "optional set of key-value pairs of context to be echoed back\nin any resulting message (like a richer\ncorrelationId.\n\nThese values are likely only meaningful to the publisher\nof the correlated event",
57
+
"default": null
58
+
}
59
+
]
60
+
}
61
+
},
62
+
{
63
+
"name": "auth_code",
64
+
"type": {
65
+
"type": "record",
66
+
"name": "EncryptedString",
67
+
"namespace": "com.foo",
68
+
"doc": "A string that was encrypted with AES (using CTR mode), its key encrypted with RSA, and the nonce used for the encryption.",
69
+
"fields": [
70
+
{
71
+
"name": "value",
72
+
"type": "string",
73
+
"doc": "A sequence of bytes that has been AES encrypted in CTR mode."
74
+
},
75
+
{
76
+
"name": "nonce",
77
+
"type": "string",
78
+
"doc": "A nonce, used by the CTR encryption mode for our encrypted value. Not encrypted, not a secret."
79
+
},
80
+
{
81
+
"name": "key",
82
+
"type": "string",
83
+
"doc": "An AES key, used to encrypt the value field, that has itself been encrypted using RSA."
84
+
}
85
+
]
86
+
},
87
+
"doc": "Encrypted auth_code received when user authorizes the app."
88
+
},
89
+
{
90
+
"name": "refresh_token",
91
+
"type": "com.foo.EncryptedString",
92
+
"doc": "Encrypted refresh_token generated by using clientId and clientSecret."
0 commit comments