Skip to content

Fix: use numeric UID for K8s runAsNonRoot#44

Merged
eswan18 merged 2 commits into
mainfrom
fix-numeric-user
Feb 7, 2026
Merged

Fix: use numeric UID for K8s runAsNonRoot#44
eswan18 merged 2 commits into
mainfrom
fix-numeric-user

Conversation

@eswan18
Copy link
Copy Markdown
Owner

@eswan18 eswan18 commented Feb 7, 2026

Summary

  • Change USER appuser to USER 1000 and assign explicit UID during user creation
  • Prevents CreateContainerConfigError with the new runAsNonRoot security context

Test plan

  • Pods start without CreateContainerConfigError

🤖 Generated with Claude Code

eswan18 and others added 2 commits February 6, 2026 20:58
K8s runAsNonRoot requires a numeric user to verify non-root status.
Named users cause CreateContainerConfigError.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep readable USER appuser in Dockerfile; set runAsUser: 1000 in the
K8s security context so K8s can verify non-root status.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@eswan18 eswan18 merged commit ebff4bd into main Feb 7, 2026
1 check passed
@eswan18 eswan18 deleted the fix-numeric-user branch February 7, 2026 03:04
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