Skip to content

Commit

Permalink
NIT-1181 adding security context to pods for fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pbasumatary committed Apr 4, 2024
1 parent 10b2580 commit 2e4141a
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cloud-platform-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ jobs:
matrix:
include:
## PoC environment temporarily removed from the pipeline while we try to fix a configuration bug
# - environment: poc
# values: values_poc.yaml
- environment: poc
values: values_poc.yaml
- environment: dev
values: values_dev.yaml
- environment: test
Expand Down
92 changes: 92 additions & 0 deletions alfresco-content-services/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ repository:
-Dmetadata-keystore.aliases=metadata
-Dmetadata-keystore.metadata.algorithm=DESede
-Dsystem.workflow.engine.activiti.enabled=false
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33000
Expand Down Expand Up @@ -240,6 +248,14 @@ transformrouter:
initialDelaySeconds: 140
periodSeconds: 120
timeoutSeconds: 60
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33016
Expand All @@ -264,6 +280,14 @@ pdfrenderer:
name: pdfrenderer
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33001
Expand Down Expand Up @@ -304,6 +328,14 @@ imagemagick:
name: imagemagick
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33002
Expand Down Expand Up @@ -351,6 +383,14 @@ libreoffice:
limits:
cpu: "4"
memory: "1000Mi"
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33003
Expand Down Expand Up @@ -384,6 +424,14 @@ tika:
name: tika
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33004
Expand Down Expand Up @@ -425,6 +473,14 @@ transformmisc:
name: transformmisc
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsNonRoot: true
runAsUser: 33006
Expand Down Expand Up @@ -463,6 +519,14 @@ aiTransformer:
name: ai-transformer
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsUser: 33015
resources:
Expand Down Expand Up @@ -511,6 +575,14 @@ filestore:
name: filestore
type: ClusterIP
externalPort: 80
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsUser: 33030
runAsGroup: 1000
Expand Down Expand Up @@ -574,10 +646,14 @@ share:
# hosts:
# - chart-example.local
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- NET_RAW
- ALL
seccompProfile:
type: RuntimeDefault
podSecurityContext:
runAsUser: 65534
resources:
Expand Down Expand Up @@ -616,6 +692,14 @@ activemq:
# -- Default password for the embedded broker admin user
password: admin
# -- external activemq connection setting when activemq.enabled=false
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
messageBroker: &acs_messageBroker
url: null
user: null
Expand Down Expand Up @@ -652,6 +736,14 @@ alfresco-search:
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
securityContext:
allowPrivilegeEscalation: false
runAsNonRoot: true
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
database:
# -- Enable using an external database for Alfresco Content Services. Must disable `postgresql.enabled` when true.
external: true
Expand Down

0 comments on commit 2e4141a

Please sign in to comment.