Skip to content

Add Restricted-compatible security contexts - #139

Closed
unixfg wants to merge 1 commit into
puzzle:masterfrom
unixfg:codex/restricted-security-context
Closed

Add Restricted-compatible security contexts#139
unixfg wants to merge 1 commit into
puzzle:masterfrom
unixfg:codex/restricted-security-context

Conversation

@unixfg

@unixfg unixfg commented Aug 28, 2026

Copy link
Copy Markdown

Summary

  • expose pod and container security-context values in the Helm chart
  • default the webhook pod to UID 65532 with RuntimeDefault seccomp
  • default the container to disallow privilege escalation and drop all Linux capabilities
  • document both new chart values

Rationale

The webhook already supports the unprivileged 8443 listener. These defaults make that deployment satisfy Kubernetes Pod Security Restricted while preserving the image's existing non-root UID. Both maps remain configurable, and setting either value to null omits that security context for installations with a different runtime contract.

Files changed

  • README.md: documents podSecurityContext and securityContext
  • charts/cert-manager-webhook-dnsimple/values.yaml: adds Restricted-compatible defaults
  • charts/cert-manager-webhook-dnsimple/templates/deployment.yaml: renders both maps

Validation

  • helm lint
  • default and null-override helm template renders
  • kubeconform strict: 10 valid, 0 invalid/errors, 4 custom-resource schemas skipped
  • Kyverno CLI 1.18.2 Pod Security Restricted evaluation: 1 pass, 0 fail/warn/error
  • Kubernetes 1.36 server-side dry-run of the full rendered chart
  • git diff --check

No DNSimple credentials or Kubernetes Secret contents were accessed or changed while preparing this contribution. A chart version bump is intentionally left to the repository's release workflow.

@unixfg unixfg closed this Aug 29, 2026
@unixfg
unixfg deleted the codex/restricted-security-context branch August 29, 2026 06:29
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