fix(chart): enforce non-root security context and resource limits #8
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/chart-security"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Fixes the
lint-and-check-kubernetesPR job for good. With the node/checkout problem solved in #6, the job now actually runs kube-linter — and fails on 4 legitimate findings that were hidden behind the earlier tooling failure (verified locally with kube-linter 0.8.3, same asbuilder-kube):run-as-non-root— containerawcdoes not enforcerunAsNonRootno-read-only-root-fs— noreadOnlyRootFilesystemunset-cpu-requirements— no CPU requestunset-memory-requirements— no memory limitThe
run-as-non-rootfinding even contradicted the project's own constraint C5 ("must run as a non-root user") — the image is distrolessnonroot, but nothing enforced it at the cluster level.Changes
chart/acidwaifu/templates/acidwaifu-cronjob.yaml— container-levelsecurityContext:/var/log, a writable emptyDir mount3.7.0→3.7.1docs/arc42-architecture.md— §7.4 documents the enforced security context and resources, and the relationship to constraint C5 and the kube-linter gate..forgejo/workflows/on_pr.yaml— clone step now runs withGIT_TERMINAL_PROMPT=0, so an auth problem produces a clean non-zero error instead of hanging on a credential prompt with no TTY.Verification
helm lintpasseshelm templaterender checked — securityContext/resources presentkube-linter lint .on this branch: No lint errors found, exit 0 (was: 4 errors, exit 1)