blob: 0dc1846f6e83ada361ac8e8bd504c922d009e402 (
plain)
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
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
|
- check_str: ''
deprecated_reason: null
deprecated_rule:
check_str: role:admin
name: default
deprecated_since: null
description: Defines the default rule used for policies that historically had an
empty policy in the supplied policy.json file.
name: default
operations: []
scope_types: null
- check_str: role:admin
description: Defines the rule for the is_admin:True check.
name: context_is_admin
operations: []
scope_types: null
- check_str: role:admin or (role:member and project_id:%(project_id)s and project_id:%(owner)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: add_image
deprecated_since: null
description: Create new image
name: add_image
operations:
- method: POST
path: /v2/images
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: delete_image
deprecated_since: null
description: Deletes the image
name: delete_image
operations:
- method: DELETE
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or project_id:%(member_id)s
or 'community':%(visibility)s or 'public':%(visibility)s or 'shared':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_image
deprecated_since: null
description: Get specified image
name: get_image
operations:
- method: GET
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_images
deprecated_since: null
description: Get all available images
name: get_images
operations:
- method: GET
path: /v2/images
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: modify_image
deprecated_since: null
description: Updates given image
name: modify_image
operations:
- method: PATCH
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin
description: Publicize given image
name: publicize_image
operations:
- method: PATCH
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: communitize_image
deprecated_since: null
description: Communitize given image
name: communitize_image
operations:
- method: PATCH
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:member and (project_id:%(project_id)s or project_id:%(member_id)s
or 'community':%(visibility)s or 'public':%(visibility)s or 'shared':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: download_image
deprecated_since: null
description: Downloads given image
name: download_image
operations:
- method: GET
path: /v2/images/{image_id}/file
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: upload_image
deprecated_since: null
description: Uploads data to specified image
name: upload_image
operations:
- method: PUT
path: /v2/images/{image_id}/file
scope_types:
- system
- project
- check_str: role:admin
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: delete_image_location
deprecated_since: null
description: Deletes the location of given image
name: delete_image_location
operations:
- method: PATCH
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_image_location
deprecated_since: null
description: Reads the location of the image
name: get_image_location
operations:
- method: GET
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: set_image_location
deprecated_since: null
description: Sets location URI to given image
name: set_image_location
operations:
- method: PATCH
path: /v2/images/{image_id}
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: add_member
deprecated_since: null
description: Create image member
name: add_member
operations:
- method: POST
path: /v2/images/{image_id}/members
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: delete_member
deprecated_since: null
description: Delete image member
name: delete_member
operations:
- method: DELETE
path: /v2/images/{image_id}/members/{member_id}
scope_types:
- system
- project
- check_str: role:admin or role:reader and (project_id:%(project_id)s or project_id:%(member_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_member
deprecated_since: null
description: Show image member details
name: get_member
operations:
- method: GET
path: /v2/images/{image_id}/members/{member_id}
scope_types:
- system
- project
- check_str: role:admin or role:reader and (project_id:%(project_id)s or project_id:%(member_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_members
deprecated_since: null
description: List image members
name: get_members
operations:
- method: GET
path: /v2/images/{image_id}/members
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(member_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: modify_member
deprecated_since: null
description: Update image member
name: modify_member
operations:
- method: PUT
path: /v2/images/{image_id}/members/{member_id}
scope_types:
- system
- project
- check_str: role:admin
description: Manage image cache
name: manage_image_cache
operations: []
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: deactivate
deprecated_since: null
description: Deactivate image
name: deactivate
operations:
- method: POST
path: /v2/images/{image_id}/actions/deactivate
scope_types:
- system
- project
- check_str: role:admin or (role:member and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: reactivate
deprecated_since: null
description: Reactivate image
name: reactivate
operations:
- method: POST
path: /v2/images/{image_id}/actions/reactivate
scope_types:
- system
- project
- check_str: role:admin
description: Copy existing image to other stores
name: copy_image
operations:
- method: POST
path: /v2/images/{image_id}/import
scope_types:
- system
- project
- check_str: rule:default
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_task
deprecated_since: null
description: 'Get an image task.
This granular policy controls access to tasks, both from the tasks API as well
as internal locations in Glance that use tasks (like import). Practically this
cannot be more restrictive than the policy that controls import or things will
break, and changing it from the default is almost certainly not what you want.
Access to the external tasks API should be restricted as desired by the
tasks_api_access policy. This may change in the future.
'
name: get_task
operations:
- method: GET
path: /v2/tasks/{task_id}
scope_types:
- system
- project
- check_str: rule:default
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: get_tasks
deprecated_since: null
description: 'List tasks for all images.
This granular policy controls access to tasks, both from the tasks API as well
as internal locations in Glance that use tasks (like import). Practically this
cannot be more restrictive than the policy that controls import or things will
break, and changing it from the default is almost certainly not what you want.
Access to the external tasks API should be restricted as desired by the
tasks_api_access policy. This may change in the future.
'
name: get_tasks
operations:
- method: GET
path: /v2/tasks
scope_types:
- system
- project
- check_str: rule:default
deprecated_reason: null
deprecated_rule:
check_str: rule:default
name: add_task
deprecated_since: null
description: 'List tasks for all images.
This granular policy controls access to tasks, both from the tasks API as well
as internal locations in Glance that use tasks (like import). Practically this
cannot be more restrictive than the policy that controls import or things will
break, and changing it from the default is almost certainly not what you want.
Access to the external tasks API should be restricted as desired by the
tasks_api_access policy. This may change in the future.
'
name: add_task
operations:
- method: POST
path: /v2/tasks
scope_types:
- system
- project
- check_str: rule:default
deprecated_for_removal: true
deprecated_reason: '
This policy check has never been honored by the API. It will be removed in a
future release.
'
deprecated_since: W
description: This policy is not used.
name: modify_task
operations:
- method: DELETE
path: /v2/tasks/{task_id}
scope_types:
- system
- project
- check_str: role:admin
description: '
This is a generic blanket policy for protecting all task APIs. It is not
granular and will not allow you to separate writable and readable task
operations into different roles.
'
name: tasks_api_access
operations:
- method: GET
path: /v2/tasks/{task_id}
- method: GET
path: /v2/tasks
- method: POST
path: /v2/tasks
- method: DELETE
path: /v2/tasks/{task_id}
scope_types:
- system
- project
- check_str: ''
description: null
name: metadef_default
operations: []
scope_types: null
- check_str: role:admin
description: null
name: metadef_admin
operations: []
scope_types: null
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_namespace
deprecated_since: null
description: Get a specific namespace.
name: get_metadef_namespace
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and project_id:%(project_id)s)
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_namespaces
deprecated_since: null
description: List namespace.
name: get_metadef_namespaces
operations:
- method: GET
path: /v2/metadefs/namespaces
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Modify an existing namespace.
name: modify_metadef_namespace
operations:
- method: PUT
path: /v2/metadefs/namespaces/{namespace_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Create a namespace.
name: add_metadef_namespace
operations:
- method: POST
path: /v2/metadefs/namespaces
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete a namespace.
name: delete_metadef_namespace
operations:
- method: DELETE
path: /v2/metadefs/namespaces/{namespace_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_object
deprecated_since: null
description: Get a specific object from a namespace.
name: get_metadef_object
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/objects/{object_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_objects
deprecated_since: null
description: Get objects from a namespace.
name: get_metadef_objects
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/objects
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Update an object within a namespace.
name: modify_metadef_object
operations:
- method: PUT
path: /v2/metadefs/namespaces/{namespace_name}/objects/{object_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Create an object within a namespace.
name: add_metadef_object
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/objects
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete an object within a namespace.
name: delete_metadef_object
operations:
- method: DELETE
path: /v2/metadefs/namespaces/{namespace_name}/objects/{object_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: list_metadef_resource_types
deprecated_since: null
description: List meta definition resource types.
name: list_metadef_resource_types
operations:
- method: GET
path: /v2/metadefs/resource_types
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_resource_type
deprecated_since: null
description: Get meta definition resource types associations.
name: get_metadef_resource_type
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/resource_types
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Create meta definition resource types association.
name: add_metadef_resource_type_association
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/resource_types
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete meta definition resource types association.
name: remove_metadef_resource_type_association
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/resource_types/{name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_property
deprecated_since: null
description: Get a specific meta definition property.
name: get_metadef_property
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/properties/{property_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_properties
deprecated_since: null
description: List meta definition properties.
name: get_metadef_properties
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/properties
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Update meta definition property.
name: modify_metadef_property
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/properties/{property_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Create meta definition property.
name: add_metadef_property
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/properties
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete meta definition property.
name: remove_metadef_property
operations:
- method: DELETE
path: /v2/metadefs/namespaces/{namespace_name}/properties/{property_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_tag
deprecated_since: null
description: Get tag definition.
name: get_metadef_tag
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/tags/{tag_name}
scope_types:
- system
- project
- check_str: role:admin or (role:reader and (project_id:%(project_id)s or 'public':%(visibility)s))
deprecated_reason: null
deprecated_rule:
check_str: rule:metadef_default
name: get_metadef_tags
deprecated_since: null
description: List tag definitions.
name: get_metadef_tags
operations:
- method: GET
path: /v2/metadefs/namespaces/{namespace_name}/tags
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Update tag definition.
name: modify_metadef_tag
operations:
- method: PUT
path: /v2/metadefs/namespaces/{namespace_name}/tags/{tag_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Add tag definition.
name: add_metadef_tag
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/tags/{tag_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Create tag definitions.
name: add_metadef_tags
operations:
- method: POST
path: /v2/metadefs/namespaces/{namespace_name}/tags
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete tag definition.
name: delete_metadef_tag
operations:
- method: DELETE
path: /v2/metadefs/namespaces/{namespace_name}/tags/{tag_name}
scope_types:
- system
- project
- check_str: rule:metadef_admin
description: Delete tag definitions.
name: delete_metadef_tags
operations:
- method: DELETE
path: /v2/metadefs/namespaces/{namespace_name}/tags
scope_types:
- system
- project
- check_str: role:admin
deprecated_reason: null
deprecated_rule:
check_str: rule:manage_image_cache
name: cache_image
deprecated_since: null
description: Queue image for caching
name: cache_image
operations:
- method: PUT
path: /v2/cache/{image_id}
scope_types:
- project
- check_str: role:admin
deprecated_reason: null
deprecated_rule:
check_str: rule:manage_image_cache
name: cache_list
deprecated_since: null
description: List cache status
name: cache_list
operations:
- method: GET
path: /v2/cache
scope_types:
- project
- check_str: role:admin
deprecated_reason: null
deprecated_rule:
check_str: rule:manage_image_cache
name: cache_delete
deprecated_since: null
description: Delete image(s) from cache and/or queue
name: cache_delete
operations:
- method: DELETE
path: /v2/cache
- method: DELETE
path: /v2/cache/{image_id}
scope_types:
- project
- check_str: role:admin
description: Expose store specific information
name: stores_info_detail
operations:
- method: GET
path: /v2/info/stores/detail
scope_types:
- system
- project
|