Skip to content

Commit

Permalink
allow image-puller role to read image signatures
Browse files Browse the repository at this point in the history
  • Loading branch information
mfojtik committed Sep 14, 2017
1 parent 3fddedc commit fa7a498
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/server/bootstrappolicy/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ func GetOpenshiftBootstrapClusterRoles() []rbac.ClusterRole {
Rules: []rbac.PolicyRule{
// pull images
rbac.NewRule("get").Groups(imageGroup, legacyImageGroup).Resources("imagestreams/layers").RuleOrDie(),
// read signatures
rbac.NewRule("get").Groups(imageGroup, legacyImageGroup).Resources("imagesignatures").RuleOrDie(),
},
},
{
Expand Down
7 changes: 7 additions & 0 deletions test/testdata/bootstrappolicy/bootstrap_cluster_roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,13 @@ items:
- imagestreams/layers
verbs:
- get
- apiGroups:
- ""
- image.openshift.io
resources:
- imagesignatures
verbs:
- get
- apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
Expand Down

0 comments on commit fa7a498

Please sign in to comment.