Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add securitycontext for PSS PoC (rootless Kubeflow) #2939

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
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
8 changes: 8 additions & 0 deletions common/dex/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
ports:
- name: http
containerPort: 5556
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop:
- ALL
volumeMounts:
- name: config
mountPath: /etc/dex/cfg
Expand All @@ -35,7 +43,7 @@
valueFrom:
fieldRef:
fieldPath: metadata.namespace
#readinessProbe:

Check warning on line 46 in common/dex/base/deployment.yaml

View workflow job for this annotation

GitHub Actions / format_YAML_files

46:10 [comments] missing starting space in comment

Check warning on line 46 in common/dex/base/deployment.yaml

View workflow job for this annotation

GitHub Actions / format_YAML_files

46:9 [comments-indentation] comment not indented like content
# httpGet:
# path: /healthz
# port: 5556
Expand Down
8 changes: 8 additions & 0 deletions common/oauth2-proxy/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ spec:
configMapKeyRef:
name: oauth2-proxy-parameters
key: EXTRA_JWT_ISSUERS
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop:
- ALL
volumeMounts:
- name: oauth2-proxy-config
mountPath: /etc/oauth2_proxy/oauth2_proxy.cfg
Expand Down
Loading