Skip to content

Commit

Permalink
Added the disallow-privilege-escalation policy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nsathyaseelan committed Feb 21, 2024
1 parent d2a3b07 commit ead7213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
file: enforce-policy-assert.yaml
- script:
content: |
if kubectl debug -it goodpod02-registry --image=busybox:1.35 --target=k8s-nginx -n ir-pods-namespace; then exit 1; else exit 0; fi;
if kubectl debug -it goodpod02-registry --image=busybox:1.35 --target=k8s-nginx -n ir-pods-namespace; then exit 1; else exit 0; fi;
- apply:
expect:
- check:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,12 @@ spec:
containers:
- (name): "{{ element.name }}"
securityContext:
(allowPrivilegeEscalation): true
allowPrivilegeEscalation: false
initContainers:
- (name): "{{ element.name }}"
securityContext:
(allowPrivilegeEscalation): true
allowPrivilegeEscalation: false
ephemeralContainers:
- (name): "{{ element.name }}"
securityContext:
(allowPrivilegeEscalation): true
allowPrivilegeEscalation: false
allowPrivilegeEscalation: false

0 comments on commit ead7213

Please sign in to comment.