Skip to content

Commit 01f57f2

Browse files
committed
fix: tweak glance policy to allow for intra-service image download
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
1 parent 21d095f commit 01f57f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

base-helm-configs/glance/glance-helm-overrides.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ conf:
123123
"default": "role:admin or role:glance_admin"
124124
"context_is_admin": "role:admin or role:glance_admin"
125125
"publicize_image": "role:glance_admin"
126-
"download_image": rule:context_is_admin or (role:member and (project_id:%(project_id)s or project_id:%(member_id)s))
126+
"communitize_image": "role:glance_admin"
127+
"download_image": "role:service or role:glance_admin or rule:context_is_admin or rule:service_api 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))"
128+
"get_image": "role:service or role:glance_admin or rule:context_is_admin or rule:service_api 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))"
127129
logging:
128130
logger_root:
129131
level: INFO

0 commit comments

Comments
 (0)