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

fix: configure security context in containers to mitigate weaknesses #36

Merged
merged 1 commit into from
Feb 3, 2024
Merged
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
9 changes: 9 additions & 0 deletions kubernetes/manifests/discord/bot/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ spec:
envFrom:
- secretRef:
name: bot-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
readOnlyRootFilesystem: true
9 changes: 9 additions & 0 deletions kubernetes/manifests/dragonfly/client/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ spec:
envFrom:
- secretRef:
name: dragonfly-client-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
readOnlyRootFilesystem: true
20 changes: 20 additions & 0 deletions kubernetes/manifests/dragonfly/loader/cronjob.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: batch/v1
kind: CronJob
metadata:
namespace: dragonfly
name: dragonfly-loader
spec:
schedule: '* * * * *'
concurrencyPolicy: Forbid
jobTemplate:
spec:
template:
spec:
containers:
- name: dragonfly-loader
image: ghcr.io/vipyrsec/dragonfly-loader:v1.0.1
imagePullPolicy: Always
envFrom:
- secretRef:
name: dragonfly-loader-env
restartPolicy: Never
20 changes: 0 additions & 20 deletions kubernetes/manifests/dragonfly/loader/deployment.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions kubernetes/manifests/dragonfly/mainframe/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,12 @@ spec:
envFrom:
- secretRef:
name: dragonfly-mainframe-env
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 10000
runAsGroup: 10000
readOnlyRootFilesystem: true
Loading