Containers run as root; secrets mounted under /root
@pmachapman is already working on this.
Since Aug 19, 2026.
- Dominant language
- C#
- Stars
- 3
- Forks
- 2
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 3
Description
dockerfile has no USER directive (runs as root); the k8s deployment (deploy/serval/templates/serval-api-deployment.yaml) sets no securityContext and mounts DataProtection keys at /root/.aspnet/DataProtection-Keys. A code-exec bug runs as root with direct access to the key material.
Fix: Add a non-root USER in the Dockerfile and a pod securityContext (runAsNonRoot: true, allowPrivilegeEscalation: false, readOnlyRootFilesystem where feasible, drop capabilities). Relocate the DataProtection-Keys mount out of /root.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.