Skip to content

feat(helm): add pod-level securityContext support for certificate mounting #19041

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

ausbru87
Copy link

@ausbru87 ausbru87 commented Jul 24, 2025

Add pod-level securityContext support to Coder Helm chart

Adds coder.podSecurityContext field to enable pod-level security settings, primarily to solve TLS certificate mounting permission issues.

Problem: When mounting TLS certificates from Kubernetes secrets, the Coder process (UID 1000) cannot read the files due to restrictive permissions.

Solution: Setting podSecurityContext.fsGroup: 1000 ensures Kubernetes sets group ownership of mounted volumes to GID 1000, allowing the Coder process to read certificate files.

Changes:

  • Added podSecurityContext field to values.yaml with documentation
  • Updated _coder.yaml template to include pod-level security context
  • Added test case and golden files
  • Maintains backward compatibility (opt-in feature)

Usage:

coder:
  podSecurityContext:
    fsGroup: 1000  # Enables TLS cert access

Fixes #19038

Copy link

github-actions bot commented Jul 24, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@ausbru87
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

cdrci2 added a commit to coder/cla that referenced this pull request Jul 24, 2025
@ausbru87 ausbru87 changed the title [WIP] feat(helm): Add pod-level securityContext support - Fixes #19038 [WIP] feat(helm): add pod-level securityContext support for certificate mounting Jul 24, 2025
@ausbru87 ausbru87 changed the title [WIP] feat(helm): add pod-level securityContext support for certificate mounting feat(helm): add pod-level securityContext support for certificate mounting Jul 24, 2025
@ausbru87 ausbru87 added the customer-requested Features requested by enterprise customers. Only humans may set this. label Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-requested Features requested by enterprise customers. Only humans may set this.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(helm): Add pod-level securityContext support for certificate mounting
1 participant