Skip to content

Commit

Permalink
Update installer job RBAC to grant approver permission
Browse files Browse the repository at this point in the history
As of Kubernetes 1.18, explicit RBAC authorization is needed for the
installer to approve a CSR (ie. to execute the "kubectl certificate
approve" command).
  • Loading branch information
carstenkoester committed May 14, 2020
1 parent caaf9b5 commit 51cff5f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
18 changes: 16 additions & 2 deletions integration/install/0danm-installer-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,26 @@ rules:
- "certificates.k8s.io"
resources:
- certificatesigningrequests
- certificatesigningrequests/approval
verbs:
- delete
- get
- list
- watch
- create
- update
- apiGroups:
- "certificates.k8s.io"
resources:
- certificatesigningrequests/approval
verbs:
- update
- apiGroups:
- "certificates.k8s.io"
resources:
- signers
resourceNames:
- kubernetes.io/legacy-unknown
verbs:
- approve
- apiGroups:
- "admissionregistration.k8s.io"
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ spec:
groups:
- system:authenticated
request: $(cat ${tmpdir}/server.csr | base64 | tr -d '\n')
signerName: kubernetes.io/legacy-unknown
usages:
- digital signature
- key encipherment
Expand Down

0 comments on commit 51cff5f

Please sign in to comment.