Skip to content

fix(dev): run the local Dex container as the invoking user (cherry-pick #31246 for 3.4) - #31251

Open
crenshaw-dev wants to merge 1 commit into
argoproj:release-3.4from
crenshaw-dev:fix/dex-procfile-user-3.4
Open

crenshaw-dev wants to merge 1 commit into
argoproj:release-3.4from
crenshaw-dev:fix/dex-procfile-user-3.4

Conversation

@crenshaw-dev

Copy link
Copy Markdown
Member

Backport of #31246 to release-3.4. Applied by hand: this branch pins ghcr.io/dexidp/dex:v2.46.0 on the same Procfile line, so the cherry-pick conflicts on context only. That image also runs as UID 1001.

gendexcfg writes dist/dex.yaml with mode 0600 on 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:

  • This is a bug fix.
  • I have signed off all my commits as required by DCO
  • I have added a brief description of why this PR is necessary and/or what this PR solves.

🤖 Generated with Claude Code

https://claude.ai/code/session_01BmNNrhr1ppk6BGLiqt6YdC

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>
@crenshaw-dev
crenshaw-dev requested a review from a team as a code owner November 24, 2026 16:32
@coderabbitai

coderabbitai Bot commented Nov 24, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c0dad64b-7a55-4e64-afb8-ab6b83ece866

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@codecov

codecov Bot commented Nov 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.61%. Comparing base (b75e2a5) to head (7e25e9d).

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.
📢 Have feedback on the report? Share it here.

This branch has not been deployed

No deployments
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