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 pod security warnings #132

Merged
merged 6 commits into from
May 30, 2024
Merged
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
67 changes: 62 additions & 5 deletions helm_deploy/values-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ datahub-gms:
repository: acryldata/datahub-gms
securityContext:
runAsUser: 100
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
resources:
limits:
memory: 2Gi
Expand Down Expand Up @@ -34,7 +41,7 @@ datahub-frontend:
- name: datahub-users
secret:
defaultMode: 0444
secretName: datahub-users-secret
secretName: datahub-users-secret
extraVolumeMounts:
- name: datahub-users
mountPath: /datahub-frontend/conf/user.props
Expand All @@ -51,8 +58,7 @@ datahub-frontend:
type: ClusterIP
serviceMonitor:
create: true
lifecycle:
{}
lifecycle: {}
resources:
limits:
memory: 1400Mi
Expand All @@ -62,7 +68,14 @@ datahub-frontend:
podSecurityContext:
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 100
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
# Set up ingress to expose react front-end
ingress:
enabled: true
Expand Down Expand Up @@ -98,11 +111,18 @@ acryl-datahub-actions:
podSecurityContext:
fsGroup: 103
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 102
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
image:
repository: acryldata/datahub-actions
tag: v0.0.15
# mount the k8s secret as a volume in the container, each key name is mounted as a
# mount the k8s secret as a volume in the container, each key name is mounted as a
# file on the mount path /etc/datahub/ingestion-secret-files
# ingestionSecretFiles:
# name: ${K8S_SECRET_NAME}
Expand Down Expand Up @@ -130,6 +150,15 @@ elasticsearchSetupJob:
value: "true"
- name: OPENSEARCH_USE_AWS_IAM_AUTH
value: "true"
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsNonRoot: true
runAsUser: 1000
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]

kafkaSetupJob:
enabled: true
Expand All @@ -147,7 +176,15 @@ kafkaSetupJob:
podSecurityContext:
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 1000
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]

annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "-5"
Expand All @@ -174,7 +211,14 @@ postgresqlSetupJob:
podSecurityContext:
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 1000
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
annotations:
helm.sh/hook: pre-install,pre-upgrade
helm.sh/hook-weight: "-5"
Expand Down Expand Up @@ -205,7 +249,14 @@ datahubUpgrade:
podSecurityContext:
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 100
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
podAnnotations: {}
extraSidecars: []
cleanupJob:
Expand Down Expand Up @@ -268,7 +319,14 @@ datahubSystemUpdate:
podSecurityContext:
fsGroup: 101
securityContext:
allowPrivilegeEscalation: false
seccompProfile:
type: RuntimeDefault
runAsUser: 100
runAsNonRoot: true
capabilities:
drop: ["ALL"]
add: ["NET_BIND_SERVICE"]
podAnnotations: {}
resources:
limits:
Expand Down Expand Up @@ -420,7 +478,6 @@ global:
name: rds-postgresql-instance-output
key: database_name


datahub:
version: v0.13.2
gms:
Expand Down