Skip to content

feat: add toggle for securitycontext and podsecuritycontext#1546

Merged
oliverbaehler merged 1 commit into
projectcapsule:mainfrom
sandert-k8s:add-toggle-for-securitycontexts
Jul 18, 2025
Merged

feat: add toggle for securitycontext and podsecuritycontext#1546
oliverbaehler merged 1 commit into
projectcapsule:mainfrom
sandert-k8s:add-toggle-for-securitycontexts

Conversation

@sandert-k8s

Copy link
Copy Markdown
Contributor

Added toggles for enabling/disabling securityContext and PodSecurityContext. If you have other security measurements in place (for example Openshift SCC's), the default SecurityContexts are not needed. In the past, we provided an empty string for the securityContext, which always worked. But suddenly, ArgoCD does not accept this anymore. So, adding a toggle for this.

(This is the same change as added in the sops-operator and capsule-proxy )

@sandert-k8s sandert-k8s marked this pull request as draft July 16, 2025 11:40
@sandert-k8s sandert-k8s force-pushed the add-toggle-for-securitycontexts branch from 739e843 to df0a1a2 Compare July 16, 2025 11:47
@sandert-k8s sandert-k8s changed the title feat: Add toggle for securityContext and PodSecurityContext feat: add toggle for securityContext and PodSecurityContext Jul 16, 2025
@sandert-k8s sandert-k8s force-pushed the add-toggle-for-securitycontexts branch from df0a1a2 to 9e0f2a7 Compare July 16, 2025 11:49
@sandert-k8s sandert-k8s marked this pull request as ready for review July 16, 2025 11:50
Signed-off-by: sandert-k8s <sandert98@gmail.com>
@sandert-k8s sandert-k8s force-pushed the add-toggle-for-securitycontexts branch from 9e0f2a7 to 5c26803 Compare July 18, 2025 09:18
@sandert-k8s sandert-k8s changed the title feat: add toggle for securityContext and PodSecurityContext feat: add toggle for securitycontext and podsecuritycontext Jul 18, 2025

@prometherion prometherion 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, asking @oliverbaehler for a further review.

@prometherion

Copy link
Copy Markdown
Member

Just saw projectcapsule/capsule-proxy#796, which is pretty similar: I think it's safe to get merged, it also maintains a backward compatibility in terms of previous behaviour.

@sandert-k8s

sandert-k8s commented Jul 18, 2025

Copy link
Copy Markdown
Contributor Author

Just saw projectcapsule/capsule-proxy#796, which is pretty similar: I think it's safe to get merged, it also maintains a backward compatibility in terms of previous behaviour.

Yes, I've linked the other PR's in the opening post; they are all the same. I think this one isn't merged yet because there was a pipeline failing, which I fixed after that.

@oliverbaehler oliverbaehler merged commit 49f0ae0 into projectcapsule:main Jul 18, 2025
13 of 14 checks 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.

3 participants