-
-
Notifications
You must be signed in to change notification settings - Fork 558
/
schema.cddl
254 lines (201 loc) · 4.98 KB
/
schema.cddl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
;;; Authenticated attributes ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
attributes = {
?0: 4724285,
1: {* text => bytes }
}
attribute = {
?0: 4592146,
1: value
}
value = bytes
;;; Spaces ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
space = {
?0: 7574645
1: space_id
2: space_name
3: [+ user]
}
user = text
spaces = [* space]
create_space = {
?0: 3888657,
1: space_name
2: [+ user]
}
space_id = text
space_name = text
;;; Projects ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
project = {
1: project_id,
2: project_name,
3: space_name,
5: access_route, ; could be an empty string if the cloud node hasn't started yet (TODO: make it an optional field instead)
6: [+ user],
7: space_id,
?8: project_node_identity, ; optional, it can be missing if the cloud node hasn't started yet
?9: authority_access_route, ; optional, it can be missing if the authority hasn't started yet
?10: authority_identity, ; optional, hex encoded authority identity
?11: project_okta_config,
?12: project_kafka_config,
?13: project_version,
?14: project_running,
?15: project_operation_id,
16: [* project_user_role],
?17: project_change_history
}
project_node_identity = identity_id
authority_access_route = text
authority_identity = text
project_change_history = text
projects = [* project]
create_project = {
?0: 8669570,
1: project_name,
3: [+ user]
}
project_id = text
project_name = text
service_name = text
access_route = text
project_operation_id = text
project_running = bool
project_version = text
project_user_role = {
1: user_email,
2: user_id,
3: role_in_share
}
role_in_share = 0..2 ; admin, guest, service_user
user_email = text
user_id = uint
;;; Project Addons ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
project_okta_config = {
?0: 6434814,
1: okta_tenant_base_url,
2: okta_certificate,
3: okta_client_id,
4: okta_attributes
}
okta_attributes = [* text]
okta_certificate = text
okta_client_id = text
okta_tenant_base_url = text
project_kafka_config = {
?0: 6434816,
1: kafka_bootstrap_server
}
kafka_bootstrap_server = text
;;; Identity ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
identity_create_response = {
?0: 3500430,
1: identity,
2: identity_id,
}
validate_identity_change_history_request = {
?0: 4245404,
1: identity,
}
validate_identity_change_history_response = {
?0: 3500430,
1: identity_id,
}
compare_identity_change_history_request = {
?0: 7300740,
1: current_identity,
2: known_identity,
}
create_signature_request = {
?0: 1019956,
1: identity,
2: data,
}
create_signature_response = {
?0: 2592832,
1: signature,
}
verify_signature_request = {
?0: 7550780,
1: signer_identity,
2: data,
3: signature,
}
verify_signature_response = {
?0: 1236745,
1: verified,
}
identity = bytes
current_identity = bytes
known_identity = bytes
signer_identity = bytes
identity_id = bytes
signature = bytes
peer_identity_id = bytes
data = bytes
verified = bool
;;; Enroll ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
enrollment_token = {
?0: 8932763,
1: token
}
token = text
request_enrollment_token = {
?0: 8560526,
1: attributes
}
;;; Credential ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
credential = {
?0: 3796735,
1: credential_data_bytes,
2: credential_signature_bytes
}
credential_data_bytes = bytes
credential_signature_bytes = bytes
credential_data = {
?1: uint, ;; schema id
2: attributes,
3: identity_id, ;; subject
4: identity_id, ;; issuer
5: text, ;; issuer key label
6: uint, ;; POSIX timestamp (created)
7: uint ;; POSIX timestamp (expiry)
}
verify_request = {
?0: 6844116,
1: bytes, ;; credential
2: identity_id, ;; subject
3: { identity_id => identity } ;; acceptable identities
}
verify_response = {
?0: 6845123,
1: attributes,
2: uint ;; expiration timestamp
}
;;; Authenticator ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
add_member = {
?0: 2820828,
1: identity_id,
}
create_token = {
?0: 2502742,
1: {* text => text } ;; attributes
}
onetime_code = {
?0: 5112299,
1: bytes ;; 32 bytes code
}
;;; Subscription ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
subscription = {
1: text, ;; id
2: text, ;; marketplace
3: text, ;; status
4: text, ;; entitlements
5: text, ;; metadata
6: text, ;; contact_info
?7: text, ;; space_id
}
activate_subscription = {
?1: text, ;; space_id
2: text, ;; subscription_data
?3: text, ;; space_name
?4: [+ text] ;; owner_emails
}