Skip to content

security hardening#219

Open
pranavcracker wants to merge 1 commit into
mainfrom
security-harderning
Open

security hardening#219
pranavcracker wants to merge 1 commit into
mainfrom
security-harderning

Conversation

@pranavcracker

@pranavcracker pranavcracker commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

Description

  • Apply Kubernetes container security hardening to site-manager Helm chart

Solution

  • Hardens container securityContext across site-manager, paas-geo-monitor, and sm-dummy deployments
  • Adds mandatory /tmp emptyDir mount to every pod
  • Hardens docker-compose test stack with read-only root filesystem

Changes

  • _helpers.tpl — replaced OpenShift capability detection with PAAS_PLATFORM == KUBERNETES, fixed runAsUser: 10001 → 1001, added runAsGroup: 1001
  • deployment.yaml + paas-geo-monitor-deployment.yaml — added full container securityContext, added /tmp emptyDir
  • values.yaml — removed overridable containerSecurityContext block
  • sm-dummy chart — same hardening + PYTHONDONTWRITEBYTECODE=1
  • docker-compose.yaml — read_only: true + tmpfs: /tmp on all services
  • sm-dummy/values.yaml — removed containerSecurityContext block (same as main chart)

@pranavcracker pranavcracker marked this pull request as ready for review June 4, 2026 06:41

# Container Security Context to be set on the controller component container
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
containerSecurityContext:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case there is no way to change that options, because they are hardcoded in the deployment template

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's true.
Is it really required to provide the option to override/change these values ?

Comment thread charts/site-manager/templates/deployment.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants