Skip to content

fix(helm): comply with the restricted PodSecurity profile - #26

Merged
NathaelB merged 1 commit into
mainfrom
fix/pod-security-restricted
Nov 9, 2026
Merged

NathaelB merged 1 commit into
mainfrom
fix/pod-security-restricted

Conversation

@NathaelB

@NathaelB NathaelB commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Pods were rejected by the restricted:latest PodSecurity profile.

  • run as the nginx user (101), runAsNonRoot, RuntimeDefault seccomp
  • drop all capabilities, no privilege escalation
  • read-only root filesystem, emptyDir on /var/cache/nginx and /run

The images have no USER, so runAsUser: 101 is required for runAsNonRoot to pass.

Checked with helm template only, not on a cluster.

Summary by CodeRabbit

  • Security
    • The application container now runs as a non-root user with restricted privileges and a read-only root filesystem.
    • Temporary storage is available for runtime and cache files.

@NathaelB
NathaelB force-pushed the fix/pod-security-restricted branch 2 times, most recently from 81108ad to de7c7e0 Compare November 9, 2026 10:41
@coderabbitai

coderabbitai Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Explain Change →

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Run as the nginx user (101), drop all capabilities, disable privilege
escalation, use the RuntimeDefault seccomp profile and a read-only root
filesystem with emptyDir mounts for the nginx cache and pid.

Signed-off-by: Nathael Bonnal <pro.nathaelbonnal@gmail.com>
@NathaelB
NathaelB force-pushed the fix/pod-security-restricted branch from de7c7e0 to 2671e4a Compare November 9, 2026 10:46
@NathaelB
NathaelB merged commit 671ab36 into main Nov 9, 2026
1 check passed
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