Repository navigation
fix(dev): run the local Dex container as the invoking user (cherry-pick #31246 for 3.4) - #31251
crenshaw-dev wants to merge 1 commit into
Conversation
argoproj#31246 for 3.4) gendexcfg now writes dist/dex.yaml with mode 0600. The Dex image runs as UID 1001, so on hosts where the developer's UID differs (1000 on most Linux machines) the Procfile's Dex container cannot read the bind-mounted config and exits with "open dex.yaml: permission denied". Run the container as the invoking user so it owns the file it reads, and keep the config private. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BmNNrhr1ppk6BGLiqt6YdC Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## release-3.4 #31251 +/- ##
===============================================
- Coverage 64.63% 64.61% -0.02%
===============================================
Files 417 417
Lines 57320 57320
===============================================
- Hits 37049 37039 -10
- Misses 16777 16780 +3
- Partials 3494 3501 +7 ☔ View full report in Codecov by Harness. |
Backport of #31246 to release-3.4. Applied by hand: this branch pins
ghcr.io/dexidp/dex:v2.46.0on the same Procfile line, so the cherry-pick conflicts on context only. That image also runs as UID 1001.gendexcfgwritesdist/dex.yamlwith mode0600on this branch too, so the local Dex container can't read it when the developer's UID isn't 1001. This runs the container as the invoking user.Checklist:
🤖 Generated with Claude Code
https://claude.ai/code/session_01BmNNrhr1ppk6BGLiqt6YdC