Skip to content

Commit

Permalink
Merge pull request #36 from hectorj2f/hectorj2f/fix_sa_perms
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato authored Nov 12, 2021
2 parents ff6751b + 8b2fd97 commit 8d265cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/cosigned/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ sources:
type: application

name: cosigned
version: v0.1.2
version: v0.1.3
appVersion: v1.3.1

maintainers:
Expand Down
8 changes: 8 additions & 0 deletions charts/cosigned/templates/webhook/clusterrole_webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,11 @@ rules:
# The webhook configured the namespace as the OwnerRef on various cluster-scoped resources,
# which requires we can Get the system namespace.
resourceNames: [ "{{ .Release.Namespace }}" ]

# This is needed by k8schain to support fetching pull secrets attached to pod specs
# or their service accounts. If pull secrets aren't used, the "secrets" below can
# be safely dropped, but the logic will fetch the service account to check for pull
# secrets.
- apiGroups: [""]
resources: ["serviceaccounts", "secrets"]
verbs: ["get"]

0 comments on commit 8d265cd

Please sign in to comment.