@flowcore/cli-plugin-iam 1.7.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +396 -7
- package/bin/dev.js +2 -2
- package/bin/run.js +2 -2
- package/dist/commands/assign/policy.d.ts +16 -0
- package/dist/commands/assign/policy.js +124 -0
- package/dist/commands/assign/role.d.ts +15 -0
- package/dist/commands/assign/role.js +98 -0
- package/dist/commands/create/policy.d.ts +16 -0
- package/dist/commands/create/policy.js +110 -0
- package/dist/commands/create/role.d.ts +14 -0
- package/dist/commands/create/role.js +78 -0
- package/dist/commands/edit/policy.js +3 -3
- package/dist/commands/edit/role.js +3 -3
- package/dist/commands/get/key-policies.d.ts +13 -0
- package/dist/commands/get/key-policies.js +79 -0
- package/dist/commands/get/key-roles.d.ts +13 -0
- package/dist/commands/get/key-roles.js +75 -0
- package/dist/commands/get/user-policies.d.ts +14 -0
- package/dist/commands/get/user-policies.js +94 -0
- package/dist/commands/get/user-roles.d.ts +14 -0
- package/dist/commands/get/user-roles.js +90 -0
- package/dist/commands/unassign/policy.d.ts +17 -0
- package/dist/commands/unassign/policy.js +143 -0
- package/dist/commands/unassign/role.d.ts +16 -0
- package/dist/commands/unassign/role.js +117 -0
- package/dist/commands/validate/key.d.ts +15 -0
- package/dist/commands/validate/key.js +106 -0
- package/dist/commands/validate/user.d.ts +15 -0
- package/dist/commands/validate/user.js +106 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resource-types/iam-api-version.js +2 -2
- package/dist/resource-types/policy.resource.js +3 -3
- package/dist/resource-types/role-binding.resource.d.ts +4 -4
- package/dist/resource-types/role.resource.d.ts +3 -3
- package/dist/resource-types/role.resource.js +2 -2
- package/dist/utils/combine-merge.util.d.ts +1 -1
- package/dist/utils/combine-merge.util.js +1 -1
- package/dist/utils/error-message.util.d.ts +1 -0
- package/dist/utils/error-message.util.js +4 -0
- package/dist/utils/fetch-manifest.util.js +2 -2
- package/dist/utils/read-pipe.util.js +5 -5
- package/oclif.manifest.json +958 -63
- package/package.json +18 -11
- package/.npmrc +0 -1
- package/CHANGELOG.md +0 -132
package/oclif.manifest.json
CHANGED
|
@@ -1,5 +1,178 @@
|
|
|
1
1
|
{
|
|
2
2
|
"commands": {
|
|
3
|
+
"assign:policy": {
|
|
4
|
+
"aliases": [],
|
|
5
|
+
"args": {
|
|
6
|
+
"POLICY_NAME": {
|
|
7
|
+
"description": "The name of the policy to assign",
|
|
8
|
+
"name": "POLICY_NAME",
|
|
9
|
+
"required": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"description": "Assign an IAM policy to a user, API key, or role. Exactly one of --user, --key, or --role must be specified",
|
|
13
|
+
"examples": [
|
|
14
|
+
"$ flowcore iam assign policy read-access --user \"auth0|abc123\" -t my-org",
|
|
15
|
+
"$ flowcore iam assign policy read-access --key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org",
|
|
16
|
+
"$ flowcore iam assign policy read-access --role data-reader -t my-org",
|
|
17
|
+
"$ flowcore iam assign policy read-access --user \"auth0|abc123\" -t my-org -j"
|
|
18
|
+
],
|
|
19
|
+
"flags": {
|
|
20
|
+
"profile": {
|
|
21
|
+
"description": "Specify the configuration profile to use",
|
|
22
|
+
"name": "profile",
|
|
23
|
+
"hasDynamicHelp": false,
|
|
24
|
+
"multiple": false,
|
|
25
|
+
"type": "option"
|
|
26
|
+
},
|
|
27
|
+
"json": {
|
|
28
|
+
"char": "j",
|
|
29
|
+
"description": "Output result as JSON",
|
|
30
|
+
"name": "json",
|
|
31
|
+
"required": false,
|
|
32
|
+
"allowNo": false,
|
|
33
|
+
"type": "boolean"
|
|
34
|
+
},
|
|
35
|
+
"key": {
|
|
36
|
+
"description": "The API key ID to assign the policy to",
|
|
37
|
+
"exclusive": [
|
|
38
|
+
"user",
|
|
39
|
+
"role"
|
|
40
|
+
],
|
|
41
|
+
"name": "key",
|
|
42
|
+
"required": false,
|
|
43
|
+
"hasDynamicHelp": false,
|
|
44
|
+
"multiple": false,
|
|
45
|
+
"type": "option"
|
|
46
|
+
},
|
|
47
|
+
"role": {
|
|
48
|
+
"description": "The role name to assign the policy to",
|
|
49
|
+
"exclusive": [
|
|
50
|
+
"user",
|
|
51
|
+
"key"
|
|
52
|
+
],
|
|
53
|
+
"name": "role",
|
|
54
|
+
"required": false,
|
|
55
|
+
"hasDynamicHelp": false,
|
|
56
|
+
"multiple": false,
|
|
57
|
+
"type": "option"
|
|
58
|
+
},
|
|
59
|
+
"tenant": {
|
|
60
|
+
"char": "t",
|
|
61
|
+
"description": "The tenant (organization slug) containing the policy",
|
|
62
|
+
"name": "tenant",
|
|
63
|
+
"required": true,
|
|
64
|
+
"hasDynamicHelp": false,
|
|
65
|
+
"multiple": false,
|
|
66
|
+
"type": "option"
|
|
67
|
+
},
|
|
68
|
+
"user": {
|
|
69
|
+
"description": "The user ID to assign the policy to",
|
|
70
|
+
"exclusive": [
|
|
71
|
+
"key",
|
|
72
|
+
"role"
|
|
73
|
+
],
|
|
74
|
+
"name": "user",
|
|
75
|
+
"required": false,
|
|
76
|
+
"hasDynamicHelp": false,
|
|
77
|
+
"multiple": false,
|
|
78
|
+
"type": "option"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"hasDynamicHelp": false,
|
|
82
|
+
"hiddenAliases": [],
|
|
83
|
+
"id": "assign:policy",
|
|
84
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
85
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
86
|
+
"pluginType": "core",
|
|
87
|
+
"strict": true,
|
|
88
|
+
"enableJsonFlag": false,
|
|
89
|
+
"isESM": true,
|
|
90
|
+
"relativePath": [
|
|
91
|
+
"dist",
|
|
92
|
+
"commands",
|
|
93
|
+
"assign",
|
|
94
|
+
"policy.js"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"assign:role": {
|
|
98
|
+
"aliases": [],
|
|
99
|
+
"args": {
|
|
100
|
+
"ROLE_NAME": {
|
|
101
|
+
"description": "The name of the role to assign",
|
|
102
|
+
"name": "ROLE_NAME",
|
|
103
|
+
"required": true
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"description": "Assign an IAM role to a user or API key. Exactly one of --user or --key must be specified",
|
|
107
|
+
"examples": [
|
|
108
|
+
"$ flowcore iam assign role data-reader --user \"auth0|abc123\" -t my-org",
|
|
109
|
+
"$ flowcore iam assign role data-reader --key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org",
|
|
110
|
+
"$ flowcore iam assign role data-reader --user \"auth0|abc123\" -t my-org -j"
|
|
111
|
+
],
|
|
112
|
+
"flags": {
|
|
113
|
+
"profile": {
|
|
114
|
+
"description": "Specify the configuration profile to use",
|
|
115
|
+
"name": "profile",
|
|
116
|
+
"hasDynamicHelp": false,
|
|
117
|
+
"multiple": false,
|
|
118
|
+
"type": "option"
|
|
119
|
+
},
|
|
120
|
+
"json": {
|
|
121
|
+
"char": "j",
|
|
122
|
+
"description": "Output result as JSON",
|
|
123
|
+
"name": "json",
|
|
124
|
+
"required": false,
|
|
125
|
+
"allowNo": false,
|
|
126
|
+
"type": "boolean"
|
|
127
|
+
},
|
|
128
|
+
"key": {
|
|
129
|
+
"description": "The API key ID to assign the role to",
|
|
130
|
+
"exclusive": [
|
|
131
|
+
"user"
|
|
132
|
+
],
|
|
133
|
+
"name": "key",
|
|
134
|
+
"required": false,
|
|
135
|
+
"hasDynamicHelp": false,
|
|
136
|
+
"multiple": false,
|
|
137
|
+
"type": "option"
|
|
138
|
+
},
|
|
139
|
+
"tenant": {
|
|
140
|
+
"char": "t",
|
|
141
|
+
"description": "The tenant (organization slug) containing the role",
|
|
142
|
+
"name": "tenant",
|
|
143
|
+
"required": true,
|
|
144
|
+
"hasDynamicHelp": false,
|
|
145
|
+
"multiple": false,
|
|
146
|
+
"type": "option"
|
|
147
|
+
},
|
|
148
|
+
"user": {
|
|
149
|
+
"description": "The user ID to assign the role to",
|
|
150
|
+
"exclusive": [
|
|
151
|
+
"key"
|
|
152
|
+
],
|
|
153
|
+
"name": "user",
|
|
154
|
+
"required": false,
|
|
155
|
+
"hasDynamicHelp": false,
|
|
156
|
+
"multiple": false,
|
|
157
|
+
"type": "option"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"hasDynamicHelp": false,
|
|
161
|
+
"hiddenAliases": [],
|
|
162
|
+
"id": "assign:role",
|
|
163
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
164
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
165
|
+
"pluginType": "core",
|
|
166
|
+
"strict": true,
|
|
167
|
+
"enableJsonFlag": false,
|
|
168
|
+
"isESM": true,
|
|
169
|
+
"relativePath": [
|
|
170
|
+
"dist",
|
|
171
|
+
"commands",
|
|
172
|
+
"assign",
|
|
173
|
+
"role.js"
|
|
174
|
+
]
|
|
175
|
+
},
|
|
3
176
|
"delete:policy": {
|
|
4
177
|
"aliases": [],
|
|
5
178
|
"args": {
|
|
@@ -122,19 +295,20 @@
|
|
|
122
295
|
"role.js"
|
|
123
296
|
]
|
|
124
297
|
},
|
|
125
|
-
"
|
|
298
|
+
"create:policy": {
|
|
126
299
|
"aliases": [],
|
|
127
300
|
"args": {
|
|
128
301
|
"NAME": {
|
|
129
|
-
"description": "name",
|
|
302
|
+
"description": "The name of the policy to create",
|
|
130
303
|
"name": "NAME",
|
|
131
304
|
"required": true
|
|
132
305
|
}
|
|
133
306
|
},
|
|
134
|
-
"description": "
|
|
307
|
+
"description": "Create a new IAM policy with the specified name, version, and policy documents defining resource access rules",
|
|
135
308
|
"examples": [
|
|
136
|
-
"$ flowcore iam
|
|
137
|
-
"$
|
|
309
|
+
"$ flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents '[{\"resource\":\"frn::my-org:data-core/*\",\"action\":[\"read\",\"fetch\"]}]'",
|
|
310
|
+
"$ cat docs.json | flowcore iam create policy read-access -t my-org --version \"2024-01-01\" --documents -",
|
|
311
|
+
"$ flowcore iam create policy admin-access -t my-org --version \"2024-01-01\" --description \"Full admin access\" --documents '[{\"resource\":\"frn::my-org:*\",\"action\":\"*\"}]' -j"
|
|
138
312
|
],
|
|
139
313
|
"flags": {
|
|
140
314
|
"profile": {
|
|
@@ -144,19 +318,51 @@
|
|
|
144
318
|
"multiple": false,
|
|
145
319
|
"type": "option"
|
|
146
320
|
},
|
|
321
|
+
"description": {
|
|
322
|
+
"description": "A description of the policy",
|
|
323
|
+
"name": "description",
|
|
324
|
+
"required": false,
|
|
325
|
+
"hasDynamicHelp": false,
|
|
326
|
+
"multiple": false,
|
|
327
|
+
"type": "option"
|
|
328
|
+
},
|
|
329
|
+
"documents": {
|
|
330
|
+
"description": "JSON array of policy documents, each with \"resource\" and \"action\" fields. Use \"-\" to read from stdin",
|
|
331
|
+
"name": "documents",
|
|
332
|
+
"required": true,
|
|
333
|
+
"hasDynamicHelp": false,
|
|
334
|
+
"multiple": false,
|
|
335
|
+
"type": "option"
|
|
336
|
+
},
|
|
337
|
+
"json": {
|
|
338
|
+
"char": "j",
|
|
339
|
+
"description": "Output result as JSON",
|
|
340
|
+
"name": "json",
|
|
341
|
+
"required": false,
|
|
342
|
+
"allowNo": false,
|
|
343
|
+
"type": "boolean"
|
|
344
|
+
},
|
|
147
345
|
"tenant": {
|
|
148
346
|
"char": "t",
|
|
149
|
-
"description": "tenant",
|
|
347
|
+
"description": "The tenant (organization slug) to create the policy in",
|
|
150
348
|
"name": "tenant",
|
|
151
349
|
"required": true,
|
|
152
350
|
"hasDynamicHelp": false,
|
|
153
351
|
"multiple": false,
|
|
154
352
|
"type": "option"
|
|
353
|
+
},
|
|
354
|
+
"version": {
|
|
355
|
+
"description": "The version of the policy (e.g. 2024-01-01)",
|
|
356
|
+
"name": "version",
|
|
357
|
+
"required": true,
|
|
358
|
+
"hasDynamicHelp": false,
|
|
359
|
+
"multiple": false,
|
|
360
|
+
"type": "option"
|
|
155
361
|
}
|
|
156
362
|
},
|
|
157
363
|
"hasDynamicHelp": false,
|
|
158
364
|
"hiddenAliases": [],
|
|
159
|
-
"id": "
|
|
365
|
+
"id": "create:policy",
|
|
160
366
|
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
161
367
|
"pluginName": "@flowcore/cli-plugin-iam",
|
|
162
368
|
"pluginType": "core",
|
|
@@ -166,23 +372,23 @@
|
|
|
166
372
|
"relativePath": [
|
|
167
373
|
"dist",
|
|
168
374
|
"commands",
|
|
169
|
-
"
|
|
375
|
+
"create",
|
|
170
376
|
"policy.js"
|
|
171
377
|
]
|
|
172
378
|
},
|
|
173
|
-
"
|
|
379
|
+
"create:role": {
|
|
174
380
|
"aliases": [],
|
|
175
381
|
"args": {
|
|
176
382
|
"NAME": {
|
|
177
|
-
"description": "name",
|
|
383
|
+
"description": "The name of the role to create",
|
|
178
384
|
"name": "NAME",
|
|
179
385
|
"required": true
|
|
180
386
|
}
|
|
181
387
|
},
|
|
182
|
-
"description": "
|
|
388
|
+
"description": "Create a new IAM role with the specified name and optional description",
|
|
183
389
|
"examples": [
|
|
184
|
-
"$ flowcore iam
|
|
185
|
-
"$
|
|
390
|
+
"$ flowcore iam create role data-reader -t my-org --description \"Read-only data access\"",
|
|
391
|
+
"$ flowcore iam create role admin -t my-org -j"
|
|
186
392
|
],
|
|
187
393
|
"flags": {
|
|
188
394
|
"profile": {
|
|
@@ -192,9 +398,25 @@
|
|
|
192
398
|
"multiple": false,
|
|
193
399
|
"type": "option"
|
|
194
400
|
},
|
|
401
|
+
"description": {
|
|
402
|
+
"description": "A description of the role",
|
|
403
|
+
"name": "description",
|
|
404
|
+
"required": false,
|
|
405
|
+
"hasDynamicHelp": false,
|
|
406
|
+
"multiple": false,
|
|
407
|
+
"type": "option"
|
|
408
|
+
},
|
|
409
|
+
"json": {
|
|
410
|
+
"char": "j",
|
|
411
|
+
"description": "Output result as JSON",
|
|
412
|
+
"name": "json",
|
|
413
|
+
"required": false,
|
|
414
|
+
"allowNo": false,
|
|
415
|
+
"type": "boolean"
|
|
416
|
+
},
|
|
195
417
|
"tenant": {
|
|
196
418
|
"char": "t",
|
|
197
|
-
"description": "tenant",
|
|
419
|
+
"description": "The tenant (organization slug) to create the role in",
|
|
198
420
|
"name": "tenant",
|
|
199
421
|
"required": true,
|
|
200
422
|
"hasDynamicHelp": false,
|
|
@@ -204,7 +426,7 @@
|
|
|
204
426
|
},
|
|
205
427
|
"hasDynamicHelp": false,
|
|
206
428
|
"hiddenAliases": [],
|
|
207
|
-
"id": "
|
|
429
|
+
"id": "create:role",
|
|
208
430
|
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
209
431
|
"pluginName": "@flowcore/cli-plugin-iam",
|
|
210
432
|
"pluginType": "core",
|
|
@@ -214,21 +436,24 @@
|
|
|
214
436
|
"relativePath": [
|
|
215
437
|
"dist",
|
|
216
438
|
"commands",
|
|
217
|
-
"
|
|
439
|
+
"create",
|
|
218
440
|
"role.js"
|
|
219
441
|
]
|
|
220
442
|
},
|
|
221
|
-
"
|
|
443
|
+
"edit:policy": {
|
|
222
444
|
"aliases": [],
|
|
223
445
|
"args": {
|
|
224
446
|
"NAME": {
|
|
225
447
|
"description": "name",
|
|
226
448
|
"name": "NAME",
|
|
227
|
-
"required":
|
|
449
|
+
"required": true
|
|
228
450
|
}
|
|
229
451
|
},
|
|
230
|
-
"description": "
|
|
231
|
-
"examples": [
|
|
452
|
+
"description": "Edit a policy in your preferred editor",
|
|
453
|
+
"examples": [
|
|
454
|
+
"$ flowcore iam edit policy my-policy -t my-tenant",
|
|
455
|
+
"$ FC_EDITOR=code flowcore iam edit policy my-policy -t my-tenant"
|
|
456
|
+
],
|
|
232
457
|
"flags": {
|
|
233
458
|
"profile": {
|
|
234
459
|
"description": "Specify the configuration profile to use",
|
|
@@ -237,35 +462,19 @@
|
|
|
237
462
|
"multiple": false,
|
|
238
463
|
"type": "option"
|
|
239
464
|
},
|
|
240
|
-
"json": {
|
|
241
|
-
"char": "j",
|
|
242
|
-
"description": "json output",
|
|
243
|
-
"name": "json",
|
|
244
|
-
"required": false,
|
|
245
|
-
"allowNo": false,
|
|
246
|
-
"type": "boolean"
|
|
247
|
-
},
|
|
248
465
|
"tenant": {
|
|
249
466
|
"char": "t",
|
|
250
467
|
"description": "tenant",
|
|
251
468
|
"name": "tenant",
|
|
252
|
-
"required":
|
|
469
|
+
"required": true,
|
|
253
470
|
"hasDynamicHelp": false,
|
|
254
471
|
"multiple": false,
|
|
255
472
|
"type": "option"
|
|
256
|
-
},
|
|
257
|
-
"wide": {
|
|
258
|
-
"char": "w",
|
|
259
|
-
"description": "wide output",
|
|
260
|
-
"name": "wide",
|
|
261
|
-
"required": false,
|
|
262
|
-
"allowNo": false,
|
|
263
|
-
"type": "boolean"
|
|
264
473
|
}
|
|
265
474
|
},
|
|
266
475
|
"hasDynamicHelp": false,
|
|
267
476
|
"hiddenAliases": [],
|
|
268
|
-
"id": "
|
|
477
|
+
"id": "edit:policy",
|
|
269
478
|
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
270
479
|
"pluginName": "@flowcore/cli-plugin-iam",
|
|
271
480
|
"pluginType": "core",
|
|
@@ -275,21 +484,24 @@
|
|
|
275
484
|
"relativePath": [
|
|
276
485
|
"dist",
|
|
277
486
|
"commands",
|
|
278
|
-
"
|
|
487
|
+
"edit",
|
|
279
488
|
"policy.js"
|
|
280
489
|
]
|
|
281
490
|
},
|
|
282
|
-
"
|
|
491
|
+
"edit:role": {
|
|
283
492
|
"aliases": [],
|
|
284
493
|
"args": {
|
|
285
494
|
"NAME": {
|
|
286
495
|
"description": "name",
|
|
287
496
|
"name": "NAME",
|
|
288
|
-
"required":
|
|
497
|
+
"required": true
|
|
289
498
|
}
|
|
290
499
|
},
|
|
291
|
-
"description": "
|
|
292
|
-
"examples": [
|
|
500
|
+
"description": "Edit a role in your preferred editor",
|
|
501
|
+
"examples": [
|
|
502
|
+
"$ flowcore iam edit role my-role -t my-tenant",
|
|
503
|
+
"$ FC_EDITOR=code flowcore iam edit role my-role -t my-tenant"
|
|
504
|
+
],
|
|
293
505
|
"flags": {
|
|
294
506
|
"profile": {
|
|
295
507
|
"description": "Specify the configuration profile to use",
|
|
@@ -298,35 +510,19 @@
|
|
|
298
510
|
"multiple": false,
|
|
299
511
|
"type": "option"
|
|
300
512
|
},
|
|
301
|
-
"json": {
|
|
302
|
-
"char": "j",
|
|
303
|
-
"description": "json output",
|
|
304
|
-
"name": "json",
|
|
305
|
-
"required": false,
|
|
306
|
-
"allowNo": false,
|
|
307
|
-
"type": "boolean"
|
|
308
|
-
},
|
|
309
513
|
"tenant": {
|
|
310
514
|
"char": "t",
|
|
311
515
|
"description": "tenant",
|
|
312
516
|
"name": "tenant",
|
|
313
|
-
"required":
|
|
517
|
+
"required": true,
|
|
314
518
|
"hasDynamicHelp": false,
|
|
315
519
|
"multiple": false,
|
|
316
520
|
"type": "option"
|
|
317
|
-
},
|
|
318
|
-
"wide": {
|
|
319
|
-
"char": "w",
|
|
320
|
-
"description": "wide output",
|
|
321
|
-
"name": "wide",
|
|
322
|
-
"required": false,
|
|
323
|
-
"allowNo": false,
|
|
324
|
-
"type": "boolean"
|
|
325
521
|
}
|
|
326
522
|
},
|
|
327
523
|
"hasDynamicHelp": false,
|
|
328
524
|
"hiddenAliases": [],
|
|
329
|
-
"id": "
|
|
525
|
+
"id": "edit:role",
|
|
330
526
|
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
331
527
|
"pluginName": "@flowcore/cli-plugin-iam",
|
|
332
528
|
"pluginType": "core",
|
|
@@ -336,10 +532,709 @@
|
|
|
336
532
|
"relativePath": [
|
|
337
533
|
"dist",
|
|
338
534
|
"commands",
|
|
339
|
-
"
|
|
535
|
+
"edit",
|
|
340
536
|
"role.js"
|
|
341
537
|
]
|
|
538
|
+
},
|
|
539
|
+
"get:key-policies": {
|
|
540
|
+
"aliases": [],
|
|
541
|
+
"args": {
|
|
542
|
+
"KEY_ID": {
|
|
543
|
+
"description": "The API key ID to get policies for",
|
|
544
|
+
"name": "KEY_ID",
|
|
545
|
+
"required": true
|
|
546
|
+
}
|
|
547
|
+
},
|
|
548
|
+
"description": "List all IAM policies assigned to a specific API key",
|
|
549
|
+
"examples": [
|
|
550
|
+
"$ flowcore iam get key-policies \"550e8400-e29b-41d4-a716-446655440000\"",
|
|
551
|
+
"$ flowcore iam get key-policies \"550e8400-e29b-41d4-a716-446655440000\" -j",
|
|
552
|
+
"$ flowcore iam get key-policies \"550e8400-e29b-41d4-a716-446655440000\" -w"
|
|
553
|
+
],
|
|
554
|
+
"flags": {
|
|
555
|
+
"profile": {
|
|
556
|
+
"description": "Specify the configuration profile to use",
|
|
557
|
+
"name": "profile",
|
|
558
|
+
"hasDynamicHelp": false,
|
|
559
|
+
"multiple": false,
|
|
560
|
+
"type": "option"
|
|
561
|
+
},
|
|
562
|
+
"json": {
|
|
563
|
+
"char": "j",
|
|
564
|
+
"description": "Output result as JSON",
|
|
565
|
+
"name": "json",
|
|
566
|
+
"required": false,
|
|
567
|
+
"allowNo": false,
|
|
568
|
+
"type": "boolean"
|
|
569
|
+
},
|
|
570
|
+
"wide": {
|
|
571
|
+
"char": "w",
|
|
572
|
+
"description": "Show additional columns in table output",
|
|
573
|
+
"name": "wide",
|
|
574
|
+
"required": false,
|
|
575
|
+
"allowNo": false,
|
|
576
|
+
"type": "boolean"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"hasDynamicHelp": false,
|
|
580
|
+
"hiddenAliases": [],
|
|
581
|
+
"id": "get:key-policies",
|
|
582
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
583
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
584
|
+
"pluginType": "core",
|
|
585
|
+
"strict": true,
|
|
586
|
+
"enableJsonFlag": false,
|
|
587
|
+
"isESM": true,
|
|
588
|
+
"relativePath": [
|
|
589
|
+
"dist",
|
|
590
|
+
"commands",
|
|
591
|
+
"get",
|
|
592
|
+
"key-policies.js"
|
|
593
|
+
]
|
|
594
|
+
},
|
|
595
|
+
"get:key-roles": {
|
|
596
|
+
"aliases": [],
|
|
597
|
+
"args": {
|
|
598
|
+
"KEY_ID": {
|
|
599
|
+
"description": "The API key ID to get roles for",
|
|
600
|
+
"name": "KEY_ID",
|
|
601
|
+
"required": true
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
"description": "List all IAM roles assigned to a specific API key",
|
|
605
|
+
"examples": [
|
|
606
|
+
"$ flowcore iam get key-roles \"550e8400-e29b-41d4-a716-446655440000\"",
|
|
607
|
+
"$ flowcore iam get key-roles \"550e8400-e29b-41d4-a716-446655440000\" -j",
|
|
608
|
+
"$ flowcore iam get key-roles \"550e8400-e29b-41d4-a716-446655440000\" -w"
|
|
609
|
+
],
|
|
610
|
+
"flags": {
|
|
611
|
+
"profile": {
|
|
612
|
+
"description": "Specify the configuration profile to use",
|
|
613
|
+
"name": "profile",
|
|
614
|
+
"hasDynamicHelp": false,
|
|
615
|
+
"multiple": false,
|
|
616
|
+
"type": "option"
|
|
617
|
+
},
|
|
618
|
+
"json": {
|
|
619
|
+
"char": "j",
|
|
620
|
+
"description": "Output result as JSON",
|
|
621
|
+
"name": "json",
|
|
622
|
+
"required": false,
|
|
623
|
+
"allowNo": false,
|
|
624
|
+
"type": "boolean"
|
|
625
|
+
},
|
|
626
|
+
"wide": {
|
|
627
|
+
"char": "w",
|
|
628
|
+
"description": "Show additional columns in table output",
|
|
629
|
+
"name": "wide",
|
|
630
|
+
"required": false,
|
|
631
|
+
"allowNo": false,
|
|
632
|
+
"type": "boolean"
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"hasDynamicHelp": false,
|
|
636
|
+
"hiddenAliases": [],
|
|
637
|
+
"id": "get:key-roles",
|
|
638
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
639
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
640
|
+
"pluginType": "core",
|
|
641
|
+
"strict": true,
|
|
642
|
+
"enableJsonFlag": false,
|
|
643
|
+
"isESM": true,
|
|
644
|
+
"relativePath": [
|
|
645
|
+
"dist",
|
|
646
|
+
"commands",
|
|
647
|
+
"get",
|
|
648
|
+
"key-roles.js"
|
|
649
|
+
]
|
|
650
|
+
},
|
|
651
|
+
"get:policy": {
|
|
652
|
+
"aliases": [],
|
|
653
|
+
"args": {
|
|
654
|
+
"NAME": {
|
|
655
|
+
"description": "name",
|
|
656
|
+
"name": "NAME",
|
|
657
|
+
"required": false
|
|
658
|
+
}
|
|
659
|
+
},
|
|
660
|
+
"description": "Get a policy",
|
|
661
|
+
"examples": [],
|
|
662
|
+
"flags": {
|
|
663
|
+
"profile": {
|
|
664
|
+
"description": "Specify the configuration profile to use",
|
|
665
|
+
"name": "profile",
|
|
666
|
+
"hasDynamicHelp": false,
|
|
667
|
+
"multiple": false,
|
|
668
|
+
"type": "option"
|
|
669
|
+
},
|
|
670
|
+
"json": {
|
|
671
|
+
"char": "j",
|
|
672
|
+
"description": "json output",
|
|
673
|
+
"name": "json",
|
|
674
|
+
"required": false,
|
|
675
|
+
"allowNo": false,
|
|
676
|
+
"type": "boolean"
|
|
677
|
+
},
|
|
678
|
+
"tenant": {
|
|
679
|
+
"char": "t",
|
|
680
|
+
"description": "tenant",
|
|
681
|
+
"name": "tenant",
|
|
682
|
+
"required": false,
|
|
683
|
+
"hasDynamicHelp": false,
|
|
684
|
+
"multiple": false,
|
|
685
|
+
"type": "option"
|
|
686
|
+
},
|
|
687
|
+
"wide": {
|
|
688
|
+
"char": "w",
|
|
689
|
+
"description": "wide output",
|
|
690
|
+
"name": "wide",
|
|
691
|
+
"required": false,
|
|
692
|
+
"allowNo": false,
|
|
693
|
+
"type": "boolean"
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
"hasDynamicHelp": false,
|
|
697
|
+
"hiddenAliases": [],
|
|
698
|
+
"id": "get:policy",
|
|
699
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
700
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
701
|
+
"pluginType": "core",
|
|
702
|
+
"strict": true,
|
|
703
|
+
"enableJsonFlag": false,
|
|
704
|
+
"isESM": true,
|
|
705
|
+
"relativePath": [
|
|
706
|
+
"dist",
|
|
707
|
+
"commands",
|
|
708
|
+
"get",
|
|
709
|
+
"policy.js"
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
"get:role": {
|
|
713
|
+
"aliases": [],
|
|
714
|
+
"args": {
|
|
715
|
+
"NAME": {
|
|
716
|
+
"description": "name",
|
|
717
|
+
"name": "NAME",
|
|
718
|
+
"required": false
|
|
719
|
+
}
|
|
720
|
+
},
|
|
721
|
+
"description": "Get a role",
|
|
722
|
+
"examples": [],
|
|
723
|
+
"flags": {
|
|
724
|
+
"profile": {
|
|
725
|
+
"description": "Specify the configuration profile to use",
|
|
726
|
+
"name": "profile",
|
|
727
|
+
"hasDynamicHelp": false,
|
|
728
|
+
"multiple": false,
|
|
729
|
+
"type": "option"
|
|
730
|
+
},
|
|
731
|
+
"json": {
|
|
732
|
+
"char": "j",
|
|
733
|
+
"description": "json output",
|
|
734
|
+
"name": "json",
|
|
735
|
+
"required": false,
|
|
736
|
+
"allowNo": false,
|
|
737
|
+
"type": "boolean"
|
|
738
|
+
},
|
|
739
|
+
"tenant": {
|
|
740
|
+
"char": "t",
|
|
741
|
+
"description": "tenant",
|
|
742
|
+
"name": "tenant",
|
|
743
|
+
"required": false,
|
|
744
|
+
"hasDynamicHelp": false,
|
|
745
|
+
"multiple": false,
|
|
746
|
+
"type": "option"
|
|
747
|
+
},
|
|
748
|
+
"wide": {
|
|
749
|
+
"char": "w",
|
|
750
|
+
"description": "wide output",
|
|
751
|
+
"name": "wide",
|
|
752
|
+
"required": false,
|
|
753
|
+
"allowNo": false,
|
|
754
|
+
"type": "boolean"
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"hasDynamicHelp": false,
|
|
758
|
+
"hiddenAliases": [],
|
|
759
|
+
"id": "get:role",
|
|
760
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
761
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
762
|
+
"pluginType": "core",
|
|
763
|
+
"strict": true,
|
|
764
|
+
"enableJsonFlag": false,
|
|
765
|
+
"isESM": true,
|
|
766
|
+
"relativePath": [
|
|
767
|
+
"dist",
|
|
768
|
+
"commands",
|
|
769
|
+
"get",
|
|
770
|
+
"role.js"
|
|
771
|
+
]
|
|
772
|
+
},
|
|
773
|
+
"get:user-policies": {
|
|
774
|
+
"aliases": [],
|
|
775
|
+
"args": {
|
|
776
|
+
"USER_ID": {
|
|
777
|
+
"description": "The user ID to get policies for (e.g. auth0|abc123)",
|
|
778
|
+
"name": "USER_ID",
|
|
779
|
+
"required": true
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"description": "List all IAM policies assigned to a specific user, optionally scoped to a tenant",
|
|
783
|
+
"examples": [
|
|
784
|
+
"$ flowcore iam get user-policies \"auth0|abc123\" -t my-org",
|
|
785
|
+
"$ flowcore iam get user-policies \"auth0|abc123\" -j",
|
|
786
|
+
"$ flowcore iam get user-policies \"auth0|abc123\" -t my-org -w"
|
|
787
|
+
],
|
|
788
|
+
"flags": {
|
|
789
|
+
"profile": {
|
|
790
|
+
"description": "Specify the configuration profile to use",
|
|
791
|
+
"name": "profile",
|
|
792
|
+
"hasDynamicHelp": false,
|
|
793
|
+
"multiple": false,
|
|
794
|
+
"type": "option"
|
|
795
|
+
},
|
|
796
|
+
"json": {
|
|
797
|
+
"char": "j",
|
|
798
|
+
"description": "Output result as JSON",
|
|
799
|
+
"name": "json",
|
|
800
|
+
"required": false,
|
|
801
|
+
"allowNo": false,
|
|
802
|
+
"type": "boolean"
|
|
803
|
+
},
|
|
804
|
+
"tenant": {
|
|
805
|
+
"char": "t",
|
|
806
|
+
"description": "Scope results to a specific tenant (organization slug)",
|
|
807
|
+
"name": "tenant",
|
|
808
|
+
"required": false,
|
|
809
|
+
"hasDynamicHelp": false,
|
|
810
|
+
"multiple": false,
|
|
811
|
+
"type": "option"
|
|
812
|
+
},
|
|
813
|
+
"wide": {
|
|
814
|
+
"char": "w",
|
|
815
|
+
"description": "Show additional columns in table output",
|
|
816
|
+
"name": "wide",
|
|
817
|
+
"required": false,
|
|
818
|
+
"allowNo": false,
|
|
819
|
+
"type": "boolean"
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
"hasDynamicHelp": false,
|
|
823
|
+
"hiddenAliases": [],
|
|
824
|
+
"id": "get:user-policies",
|
|
825
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
826
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
827
|
+
"pluginType": "core",
|
|
828
|
+
"strict": true,
|
|
829
|
+
"enableJsonFlag": false,
|
|
830
|
+
"isESM": true,
|
|
831
|
+
"relativePath": [
|
|
832
|
+
"dist",
|
|
833
|
+
"commands",
|
|
834
|
+
"get",
|
|
835
|
+
"user-policies.js"
|
|
836
|
+
]
|
|
837
|
+
},
|
|
838
|
+
"get:user-roles": {
|
|
839
|
+
"aliases": [],
|
|
840
|
+
"args": {
|
|
841
|
+
"USER_ID": {
|
|
842
|
+
"description": "The user ID to get roles for (e.g. auth0|abc123)",
|
|
843
|
+
"name": "USER_ID",
|
|
844
|
+
"required": true
|
|
845
|
+
}
|
|
846
|
+
},
|
|
847
|
+
"description": "List all IAM roles assigned to a specific user, optionally scoped to a tenant",
|
|
848
|
+
"examples": [
|
|
849
|
+
"$ flowcore iam get user-roles \"auth0|abc123\" -t my-org",
|
|
850
|
+
"$ flowcore iam get user-roles \"auth0|abc123\" -j",
|
|
851
|
+
"$ flowcore iam get user-roles \"auth0|abc123\" -t my-org -w"
|
|
852
|
+
],
|
|
853
|
+
"flags": {
|
|
854
|
+
"profile": {
|
|
855
|
+
"description": "Specify the configuration profile to use",
|
|
856
|
+
"name": "profile",
|
|
857
|
+
"hasDynamicHelp": false,
|
|
858
|
+
"multiple": false,
|
|
859
|
+
"type": "option"
|
|
860
|
+
},
|
|
861
|
+
"json": {
|
|
862
|
+
"char": "j",
|
|
863
|
+
"description": "Output result as JSON",
|
|
864
|
+
"name": "json",
|
|
865
|
+
"required": false,
|
|
866
|
+
"allowNo": false,
|
|
867
|
+
"type": "boolean"
|
|
868
|
+
},
|
|
869
|
+
"tenant": {
|
|
870
|
+
"char": "t",
|
|
871
|
+
"description": "Scope results to a specific tenant (organization slug)",
|
|
872
|
+
"name": "tenant",
|
|
873
|
+
"required": false,
|
|
874
|
+
"hasDynamicHelp": false,
|
|
875
|
+
"multiple": false,
|
|
876
|
+
"type": "option"
|
|
877
|
+
},
|
|
878
|
+
"wide": {
|
|
879
|
+
"char": "w",
|
|
880
|
+
"description": "Show additional columns in table output",
|
|
881
|
+
"name": "wide",
|
|
882
|
+
"required": false,
|
|
883
|
+
"allowNo": false,
|
|
884
|
+
"type": "boolean"
|
|
885
|
+
}
|
|
886
|
+
},
|
|
887
|
+
"hasDynamicHelp": false,
|
|
888
|
+
"hiddenAliases": [],
|
|
889
|
+
"id": "get:user-roles",
|
|
890
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
891
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
892
|
+
"pluginType": "core",
|
|
893
|
+
"strict": true,
|
|
894
|
+
"enableJsonFlag": false,
|
|
895
|
+
"isESM": true,
|
|
896
|
+
"relativePath": [
|
|
897
|
+
"dist",
|
|
898
|
+
"commands",
|
|
899
|
+
"get",
|
|
900
|
+
"user-roles.js"
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
"unassign:policy": {
|
|
904
|
+
"aliases": [],
|
|
905
|
+
"args": {
|
|
906
|
+
"POLICY_NAME": {
|
|
907
|
+
"description": "The name of the policy to unassign",
|
|
908
|
+
"name": "POLICY_NAME",
|
|
909
|
+
"required": true
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"description": "Remove an IAM policy assignment from a user, API key, or role. Exactly one of --user, --key, or --role must be specified",
|
|
913
|
+
"examples": [
|
|
914
|
+
"$ flowcore iam unassign policy read-access --user \"auth0|abc123\" -t my-org -y",
|
|
915
|
+
"$ flowcore iam unassign policy read-access --key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org -y",
|
|
916
|
+
"$ flowcore iam unassign policy read-access --role data-reader -t my-org -y",
|
|
917
|
+
"$ flowcore iam unassign policy read-access --user \"auth0|abc123\" -t my-org -j -y"
|
|
918
|
+
],
|
|
919
|
+
"flags": {
|
|
920
|
+
"profile": {
|
|
921
|
+
"description": "Specify the configuration profile to use",
|
|
922
|
+
"name": "profile",
|
|
923
|
+
"hasDynamicHelp": false,
|
|
924
|
+
"multiple": false,
|
|
925
|
+
"type": "option"
|
|
926
|
+
},
|
|
927
|
+
"json": {
|
|
928
|
+
"char": "j",
|
|
929
|
+
"description": "Output result as JSON",
|
|
930
|
+
"name": "json",
|
|
931
|
+
"required": false,
|
|
932
|
+
"allowNo": false,
|
|
933
|
+
"type": "boolean"
|
|
934
|
+
},
|
|
935
|
+
"key": {
|
|
936
|
+
"description": "The API key ID to unassign the policy from",
|
|
937
|
+
"exclusive": [
|
|
938
|
+
"user",
|
|
939
|
+
"role"
|
|
940
|
+
],
|
|
941
|
+
"name": "key",
|
|
942
|
+
"required": false,
|
|
943
|
+
"hasDynamicHelp": false,
|
|
944
|
+
"multiple": false,
|
|
945
|
+
"type": "option"
|
|
946
|
+
},
|
|
947
|
+
"role": {
|
|
948
|
+
"description": "The role name to unassign the policy from",
|
|
949
|
+
"exclusive": [
|
|
950
|
+
"user",
|
|
951
|
+
"key"
|
|
952
|
+
],
|
|
953
|
+
"name": "role",
|
|
954
|
+
"required": false,
|
|
955
|
+
"hasDynamicHelp": false,
|
|
956
|
+
"multiple": false,
|
|
957
|
+
"type": "option"
|
|
958
|
+
},
|
|
959
|
+
"tenant": {
|
|
960
|
+
"char": "t",
|
|
961
|
+
"description": "The tenant (organization slug) containing the policy",
|
|
962
|
+
"name": "tenant",
|
|
963
|
+
"required": true,
|
|
964
|
+
"hasDynamicHelp": false,
|
|
965
|
+
"multiple": false,
|
|
966
|
+
"type": "option"
|
|
967
|
+
},
|
|
968
|
+
"user": {
|
|
969
|
+
"description": "The user ID to unassign the policy from",
|
|
970
|
+
"exclusive": [
|
|
971
|
+
"key",
|
|
972
|
+
"role"
|
|
973
|
+
],
|
|
974
|
+
"name": "user",
|
|
975
|
+
"required": false,
|
|
976
|
+
"hasDynamicHelp": false,
|
|
977
|
+
"multiple": false,
|
|
978
|
+
"type": "option"
|
|
979
|
+
},
|
|
980
|
+
"yes": {
|
|
981
|
+
"char": "y",
|
|
982
|
+
"description": "Skip confirmation prompt",
|
|
983
|
+
"name": "yes",
|
|
984
|
+
"required": false,
|
|
985
|
+
"allowNo": false,
|
|
986
|
+
"type": "boolean"
|
|
987
|
+
}
|
|
988
|
+
},
|
|
989
|
+
"hasDynamicHelp": false,
|
|
990
|
+
"hiddenAliases": [],
|
|
991
|
+
"id": "unassign:policy",
|
|
992
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
993
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
994
|
+
"pluginType": "core",
|
|
995
|
+
"strict": true,
|
|
996
|
+
"enableJsonFlag": false,
|
|
997
|
+
"isESM": true,
|
|
998
|
+
"relativePath": [
|
|
999
|
+
"dist",
|
|
1000
|
+
"commands",
|
|
1001
|
+
"unassign",
|
|
1002
|
+
"policy.js"
|
|
1003
|
+
]
|
|
1004
|
+
},
|
|
1005
|
+
"unassign:role": {
|
|
1006
|
+
"aliases": [],
|
|
1007
|
+
"args": {
|
|
1008
|
+
"ROLE_NAME": {
|
|
1009
|
+
"description": "The name of the role to unassign",
|
|
1010
|
+
"name": "ROLE_NAME",
|
|
1011
|
+
"required": true
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"description": "Remove an IAM role assignment from a user or API key. Exactly one of --user or --key must be specified",
|
|
1015
|
+
"examples": [
|
|
1016
|
+
"$ flowcore iam unassign role data-reader --user \"auth0|abc123\" -t my-org -y",
|
|
1017
|
+
"$ flowcore iam unassign role data-reader --key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org -y",
|
|
1018
|
+
"$ flowcore iam unassign role data-reader --user \"auth0|abc123\" -t my-org -j -y"
|
|
1019
|
+
],
|
|
1020
|
+
"flags": {
|
|
1021
|
+
"profile": {
|
|
1022
|
+
"description": "Specify the configuration profile to use",
|
|
1023
|
+
"name": "profile",
|
|
1024
|
+
"hasDynamicHelp": false,
|
|
1025
|
+
"multiple": false,
|
|
1026
|
+
"type": "option"
|
|
1027
|
+
},
|
|
1028
|
+
"json": {
|
|
1029
|
+
"char": "j",
|
|
1030
|
+
"description": "Output result as JSON",
|
|
1031
|
+
"name": "json",
|
|
1032
|
+
"required": false,
|
|
1033
|
+
"allowNo": false,
|
|
1034
|
+
"type": "boolean"
|
|
1035
|
+
},
|
|
1036
|
+
"key": {
|
|
1037
|
+
"description": "The API key ID to unassign the role from",
|
|
1038
|
+
"exclusive": [
|
|
1039
|
+
"user"
|
|
1040
|
+
],
|
|
1041
|
+
"name": "key",
|
|
1042
|
+
"required": false,
|
|
1043
|
+
"hasDynamicHelp": false,
|
|
1044
|
+
"multiple": false,
|
|
1045
|
+
"type": "option"
|
|
1046
|
+
},
|
|
1047
|
+
"tenant": {
|
|
1048
|
+
"char": "t",
|
|
1049
|
+
"description": "The tenant (organization slug) containing the role",
|
|
1050
|
+
"name": "tenant",
|
|
1051
|
+
"required": true,
|
|
1052
|
+
"hasDynamicHelp": false,
|
|
1053
|
+
"multiple": false,
|
|
1054
|
+
"type": "option"
|
|
1055
|
+
},
|
|
1056
|
+
"user": {
|
|
1057
|
+
"description": "The user ID to unassign the role from",
|
|
1058
|
+
"exclusive": [
|
|
1059
|
+
"key"
|
|
1060
|
+
],
|
|
1061
|
+
"name": "user",
|
|
1062
|
+
"required": false,
|
|
1063
|
+
"hasDynamicHelp": false,
|
|
1064
|
+
"multiple": false,
|
|
1065
|
+
"type": "option"
|
|
1066
|
+
},
|
|
1067
|
+
"yes": {
|
|
1068
|
+
"char": "y",
|
|
1069
|
+
"description": "Skip confirmation prompt",
|
|
1070
|
+
"name": "yes",
|
|
1071
|
+
"required": false,
|
|
1072
|
+
"allowNo": false,
|
|
1073
|
+
"type": "boolean"
|
|
1074
|
+
}
|
|
1075
|
+
},
|
|
1076
|
+
"hasDynamicHelp": false,
|
|
1077
|
+
"hiddenAliases": [],
|
|
1078
|
+
"id": "unassign:role",
|
|
1079
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
1080
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
1081
|
+
"pluginType": "core",
|
|
1082
|
+
"strict": true,
|
|
1083
|
+
"enableJsonFlag": false,
|
|
1084
|
+
"isESM": true,
|
|
1085
|
+
"relativePath": [
|
|
1086
|
+
"dist",
|
|
1087
|
+
"commands",
|
|
1088
|
+
"unassign",
|
|
1089
|
+
"role.js"
|
|
1090
|
+
]
|
|
1091
|
+
},
|
|
1092
|
+
"validate:key": {
|
|
1093
|
+
"aliases": [],
|
|
1094
|
+
"args": {
|
|
1095
|
+
"KEY_ID": {
|
|
1096
|
+
"description": "The API key ID to validate access for",
|
|
1097
|
+
"name": "KEY_ID",
|
|
1098
|
+
"required": true
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"description": "Validate whether an API key has permission to perform an action on one or more resources",
|
|
1102
|
+
"examples": [
|
|
1103
|
+
"$ flowcore iam validate key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org --action ingest --resource \"frn::my-org:event-type/*\"",
|
|
1104
|
+
"$ flowcore iam validate key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org --action read --resource \"frn::my-org:data-core/my-core\" -j",
|
|
1105
|
+
"$ flowcore iam validate key \"550e8400-e29b-41d4-a716-446655440000\" -t my-org --action read --resource \"frn::my-org:data-core/core1\" --resource \"frn::my-org:data-core/core2\""
|
|
1106
|
+
],
|
|
1107
|
+
"flags": {
|
|
1108
|
+
"profile": {
|
|
1109
|
+
"description": "Specify the configuration profile to use",
|
|
1110
|
+
"name": "profile",
|
|
1111
|
+
"hasDynamicHelp": false,
|
|
1112
|
+
"multiple": false,
|
|
1113
|
+
"type": "option"
|
|
1114
|
+
},
|
|
1115
|
+
"action": {
|
|
1116
|
+
"description": "The action to validate (e.g. read, write, ingest, fetch)",
|
|
1117
|
+
"name": "action",
|
|
1118
|
+
"required": true,
|
|
1119
|
+
"hasDynamicHelp": false,
|
|
1120
|
+
"multiple": false,
|
|
1121
|
+
"type": "option"
|
|
1122
|
+
},
|
|
1123
|
+
"json": {
|
|
1124
|
+
"char": "j",
|
|
1125
|
+
"description": "Output result as JSON",
|
|
1126
|
+
"name": "json",
|
|
1127
|
+
"required": false,
|
|
1128
|
+
"allowNo": false,
|
|
1129
|
+
"type": "boolean"
|
|
1130
|
+
},
|
|
1131
|
+
"resource": {
|
|
1132
|
+
"description": "The resource FRN to validate against (can be specified multiple times)",
|
|
1133
|
+
"name": "resource",
|
|
1134
|
+
"required": true,
|
|
1135
|
+
"hasDynamicHelp": false,
|
|
1136
|
+
"multiple": true,
|
|
1137
|
+
"type": "option"
|
|
1138
|
+
},
|
|
1139
|
+
"tenant": {
|
|
1140
|
+
"char": "t",
|
|
1141
|
+
"description": "The tenant (organization slug) to validate within",
|
|
1142
|
+
"name": "tenant",
|
|
1143
|
+
"required": true,
|
|
1144
|
+
"hasDynamicHelp": false,
|
|
1145
|
+
"multiple": false,
|
|
1146
|
+
"type": "option"
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
"hasDynamicHelp": false,
|
|
1150
|
+
"hiddenAliases": [],
|
|
1151
|
+
"id": "validate:key",
|
|
1152
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
1153
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
1154
|
+
"pluginType": "core",
|
|
1155
|
+
"strict": true,
|
|
1156
|
+
"enableJsonFlag": false,
|
|
1157
|
+
"isESM": true,
|
|
1158
|
+
"relativePath": [
|
|
1159
|
+
"dist",
|
|
1160
|
+
"commands",
|
|
1161
|
+
"validate",
|
|
1162
|
+
"key.js"
|
|
1163
|
+
]
|
|
1164
|
+
},
|
|
1165
|
+
"validate:user": {
|
|
1166
|
+
"aliases": [],
|
|
1167
|
+
"args": {
|
|
1168
|
+
"USER_ID": {
|
|
1169
|
+
"description": "The user ID to validate access for (e.g. auth0|abc123)",
|
|
1170
|
+
"name": "USER_ID",
|
|
1171
|
+
"required": true
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
"description": "Validate whether a user has permission to perform an action on one or more resources",
|
|
1175
|
+
"examples": [
|
|
1176
|
+
"$ flowcore iam validate user \"auth0|abc123\" -t my-org --action read --resource \"frn::my-org:data-core/my-core\"",
|
|
1177
|
+
"$ flowcore iam validate user \"auth0|abc123\" -t my-org --action write --resource \"frn::my-org:data-core/*\" -j",
|
|
1178
|
+
"$ flowcore iam validate user \"auth0|abc123\" -t my-org --action read --resource \"frn::my-org:data-core/core1\" --resource \"frn::my-org:data-core/core2\""
|
|
1179
|
+
],
|
|
1180
|
+
"flags": {
|
|
1181
|
+
"profile": {
|
|
1182
|
+
"description": "Specify the configuration profile to use",
|
|
1183
|
+
"name": "profile",
|
|
1184
|
+
"hasDynamicHelp": false,
|
|
1185
|
+
"multiple": false,
|
|
1186
|
+
"type": "option"
|
|
1187
|
+
},
|
|
1188
|
+
"action": {
|
|
1189
|
+
"description": "The action to validate (e.g. read, write, ingest, fetch)",
|
|
1190
|
+
"name": "action",
|
|
1191
|
+
"required": true,
|
|
1192
|
+
"hasDynamicHelp": false,
|
|
1193
|
+
"multiple": false,
|
|
1194
|
+
"type": "option"
|
|
1195
|
+
},
|
|
1196
|
+
"json": {
|
|
1197
|
+
"char": "j",
|
|
1198
|
+
"description": "Output result as JSON",
|
|
1199
|
+
"name": "json",
|
|
1200
|
+
"required": false,
|
|
1201
|
+
"allowNo": false,
|
|
1202
|
+
"type": "boolean"
|
|
1203
|
+
},
|
|
1204
|
+
"resource": {
|
|
1205
|
+
"description": "The resource FRN to validate against (can be specified multiple times)",
|
|
1206
|
+
"name": "resource",
|
|
1207
|
+
"required": true,
|
|
1208
|
+
"hasDynamicHelp": false,
|
|
1209
|
+
"multiple": true,
|
|
1210
|
+
"type": "option"
|
|
1211
|
+
},
|
|
1212
|
+
"tenant": {
|
|
1213
|
+
"char": "t",
|
|
1214
|
+
"description": "The tenant (organization slug) to validate within",
|
|
1215
|
+
"name": "tenant",
|
|
1216
|
+
"required": true,
|
|
1217
|
+
"hasDynamicHelp": false,
|
|
1218
|
+
"multiple": false,
|
|
1219
|
+
"type": "option"
|
|
1220
|
+
}
|
|
1221
|
+
},
|
|
1222
|
+
"hasDynamicHelp": false,
|
|
1223
|
+
"hiddenAliases": [],
|
|
1224
|
+
"id": "validate:user",
|
|
1225
|
+
"pluginAlias": "@flowcore/cli-plugin-iam",
|
|
1226
|
+
"pluginName": "@flowcore/cli-plugin-iam",
|
|
1227
|
+
"pluginType": "core",
|
|
1228
|
+
"strict": true,
|
|
1229
|
+
"enableJsonFlag": false,
|
|
1230
|
+
"isESM": true,
|
|
1231
|
+
"relativePath": [
|
|
1232
|
+
"dist",
|
|
1233
|
+
"commands",
|
|
1234
|
+
"validate",
|
|
1235
|
+
"user.js"
|
|
1236
|
+
]
|
|
342
1237
|
}
|
|
343
1238
|
},
|
|
344
|
-
"version": "1.
|
|
1239
|
+
"version": "1.8.1"
|
|
345
1240
|
}
|