Skip to content

Add OpenShift support with ServiceAccount and Security Context#14

Open
phoenix-bjoern wants to merge 1 commit into
mainfrom
feature/openshift-support
Open

Add OpenShift support with ServiceAccount and Security Context#14
phoenix-bjoern wants to merge 1 commit into
mainfrom
feature/openshift-support

Conversation

@phoenix-bjoern
Copy link
Copy Markdown
Contributor

This PR adds native OpenShift support to the Helm chart, resolving issue #10.

Changes

  • ServiceAccount: Added template with configurable options (create, name, annotations, automount)
  • Security Context: Configured pod and container security contexts for non-root execution as UID 999 (httpd user)
  • Security Hardening:
    • Drop all Linux capabilities
    • Prevent privilege escalation
    • Enforce non-root execution
  • Documentation: Added comprehensive OpenShift deployment section to README.md with SCC binding instructions
  • Deployment Template: Updated to reference the ServiceAccount

OpenShift Compatibility

The chart now automatically creates a ServiceAccount and configures all security contexts to match the owasp/modsecurity-crs container requirements (runs as httpd user, UID 999).

Users only need to bind the ServiceAccount to a compatible SCC (e.g., nonroot-v2) after installation:

oc adm policy add-scc-to-user nonroot-v2 -z <serviceaccount-name> -n <namespace>

This commit addresses issue #10 by adding native OpenShift support to the Helm chart.

Changes:
- Add ServiceAccount template with configurable options
- Configure pod and container security contexts for non-root execution (UID 999)
- Add security hardening (drop capabilities, prevent privilege escalation)
- Add comprehensive OpenShift deployment documentation in README.md
- Update deployment template to reference ServiceAccount
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.

1 participant