Skip to content

Conversation

@dan-fernandes
Copy link
Contributor

Add security context to init containe.

Recently when updating P4X to v1.11.2 the following error is produced by the init-container: error: failed to create directory /.cache/uv: Permission denied (os error 13) (I no longer have access to the full stack trace.)

Best guess is that UV attempts to cache at ($HOME)/.cache/uv where $HOME is not set due to the user not "existing". By defining a security context we force the init container to use a specific UID (by default 1000) which should have a real home dir.

@dan-fernandes dan-fernandes requested a review from a team as a code owner December 11, 2025 10:26
@codecov
Copy link

codecov bot commented Dec 11, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.74%. Comparing base (ec820af) to head (eb48628).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1300   +/-   ##
=======================================
  Coverage   94.74%   94.74%           
=======================================
  Files          42       42           
  Lines        2741     2741           
=======================================
  Hits         2597     2597           
  Misses        144      144           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dan-fernandes dan-fernandes changed the title Add security contect to init container Fix: Add security contect to init container Dec 11, 2025
@dan-fernandes dan-fernandes changed the title Fix: Add security contect to init container Fix: Add security context to init container Dec 11, 2025
@dan-fernandes dan-fernandes changed the title Fix: Add security context to init container fix: Add security context to init container Dec 11, 2025
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.

2 participants