Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/authz/templates/rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
{{- . | nindent 4 }}
{{- end }}
rules:
- apiGroups: ["greenhouse.sap"]
- apiGroups: ["greenhouse.sap", "shoot-grafter.cloudoperators.dev"]
resources: ["*"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
Expand Down
2 changes: 1 addition & 1 deletion dev-env/webhook/structured-authz-insecure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ authorizers:
matchConditions:
- expression: has(request.resourceAttributes) # only resource requests
- expression: request.resourceAttributes.namespace != ""
- expression: request.resourceAttributes.group == "greenhouse.sap"
- expression: request.resourceAttributes.group in ["greenhouse.sap", "shoot-grafter.cloudoperators.dev"]
# Note on verbs: get is needed for kubectl edit; watch is still needed for kubectl wait triggered after kubectl delete.
# List is intentionally not matched here and should be handled via RBAC instead.
- expression: request.resourceAttributes.verb in ["get","watch","update","patch","delete"]
Expand Down
2 changes: 1 addition & 1 deletion dev-env/webhook/structured-authz-secure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ authorizers:
matchConditions:
- expression: has(request.resourceAttributes) # only resource requests
- expression: request.resourceAttributes.namespace != ""
- expression: request.resourceAttributes.group == "greenhouse.sap"
- expression: request.resourceAttributes.group in ["greenhouse.sap", "shoot-grafter.cloudoperators.dev"]
# Note on verbs: get is needed for kubectl edit; watch is still needed for kubectl wait triggered after kubectl delete.
# List is intentionally not matched here and should be handled via RBAC instead.
- expression: request.resourceAttributes.verb in ["get","watch","update","patch","delete"]
Expand Down
Loading