Skip to content

Commit

Permalink
Adjust auth proxy SAR to be more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
csibbitt committed Dec 11, 2023
1 parent ade9cb4 commit 6d9195b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,6 @@ spec:
- update
- patch
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down Expand Up @@ -341,14 +333,6 @@ spec:
- rolebindings
verbs:
- create
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
16 changes: 0 additions & 16 deletions deploy/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,6 @@ rules:
- update
- patch
- watch
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down Expand Up @@ -159,14 +151,6 @@ rules:
- rolebindings
verbs:
- create
- apiGroups:
- ""
resources:
- namespaces
verbs:
- get
- list
- watch
- apiGroups:
- rbac.authorization.k8s.io
resources:
Expand Down
2 changes: 1 addition & 1 deletion roles/smartgateway/templates/deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
- -cookie-secret-file=/etc/proxy/secrets/session_secret
- -openshift-service-account={{ service_account_name }}
- -upstream=http://localhost:8081/
- '-openshift-delegate-urls={"/": {"resource": "namespaces", "verb": "get"}}'
- '-openshift-delegate-urls={"/": {"namespace": "{{ ansible_operator_meta.namespace }}", "resource": "smartgateways", "group": "smartgateway.infra.watch", "verb": "get"}}'
ports:
- containerPort: 8083
name: https
Expand Down

0 comments on commit 6d9195b

Please sign in to comment.