zarf
zarf copied to clipboard
Zarf overwrites namespace labels required when deploying to env with restricted pod security standard
Environment
Device and OS: RHEL 9 App version: 0.38.3 Kubernetes distro being used: rke2 Other:
Steps to reproduce
- Create zarf namespace with labels that allow it to run in an environment that enforces the restricted pod security standard
- Deploy Zarf with zarf init command (we use a custom package that only has the zarf agent based on iron bank images)
Expected result
- Zarf leaves the existing NS labels alone
Actual Result
Zarf removes the labels and fails to deploy due to non compliance
Visual Proof (screenshots, videos, text, etc)
Severity/Priority
medium
Additional Context
Add any other context or screenshots about the technical debt here.
Instead of requiring users to apply exceptions Zarf should natively comply with the Kubernetes restricted pod security standard. Especially when building it for a government use case.
Please see
https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted