Skip to content

feat(helm): add podSecurityContext - #175

Open
matlaj wants to merge 1 commit into
plexinc:masterfrom
matlaj:fix/pod-security-context
Open

feat(helm): add podSecurityContext#175
matlaj wants to merge 1 commit into
plexinc:masterfrom
matlaj:fix/pod-security-context

Conversation

@matlaj

@matlaj matlaj commented Aug 23, 2026

Copy link
Copy Markdown

pms.securityContext is documented as "Security context for PMS pods", but it renders into the container's securityContext, and the chart has no pod-level securityContext hook at all.

That mismatch silently discards pod-only fields. Setting fsGroup -- the documented way to make the config volume group-writable -- produces a manifest where fsGroup sits in a container securityContext, which the API server drops. The chart installs cleanly and the setting simply never takes effect.

Add pms.podSecurityContext, rendered on the pod spec, and correct both doc strings to say which level they apply to.

Backward compatible: pms.securityContext keeps rendering exactly where it did, and the new value defaults to {}, which emits nothing.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

@matlaj
matlaj requested a review from a team as a code owner August 23, 2026 21:00
@matlaj
matlaj requested review from MarshallAsch and cookandy and removed request for a team August 23, 2026 21:00
…curityContext

`pms.securityContext` is documented as "Security context for PMS pods", but it
renders into the container's securityContext, and the chart has no pod-level
securityContext hook at all.

That mismatch silently discards pod-only fields. Setting `fsGroup` -- the
documented way to make the config volume group-writable -- produces a manifest
where `fsGroup` sits in a container securityContext, which the API server drops.
The chart installs cleanly and the setting simply never takes effect.

Add `pms.podSecurityContext`, rendered on the pod spec, and correct both doc
strings to say which level they apply to.

Backward compatible: `pms.securityContext` keeps rendering exactly where it did,
and the new value defaults to `{}`, which emits nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@matlaj
matlaj force-pushed the fix/pod-security-context branch from 3316a65 to 07fadf4 Compare August 23, 2026 21:07
@cilindrox cilindrox self-assigned this Aug 24, 2026

@cilindrox cilindrox left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM 👍 - thanks @matlaj

Going to cherrypick this into the upcoming v1.7 of the chart.

@cilindrox cilindrox changed the title fix: render pms.securityContext at the container level, add pms.podSecurityContext feat(helm): add pod securityContext Aug 24, 2026
@cilindrox cilindrox changed the title feat(helm): add pod securityContext feat(helm): add podSecurityContext Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants