Skip to content

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

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

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

Conversation

@crenshaw-dev

Copy link
Copy Markdown
Member

Backport of #31246 to release-3.6. 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.6)

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 review from a team as code owners 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: da2ff502-914a-49a9-ae80-0f5b10a8d734

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

Bundle Report

Changes will increase total bundle size by 12.81kB (0.11%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
argo-cd-ui-array-push 12.04MB 12.81kB (0.11%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: argo-cd-ui-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
9394.*.chunk.js 1.88kB 480.22kB 0.39%
main.*.js 9.25kB 215.4kB 4.49%
settings.*.chunk.js 648 bytes 188.94kB 0.34%
applications.*.chunk.js 669 bytes 149.07kB 0.45%
app-create-panel.*.chunk.js 151 bytes 43.33kB 0.35%
pod-terminal.*.chunk.js 145 bytes 6.39kB 2.32%
index.html 74 bytes 926 bytes 8.69% ⚠️

@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 72.94%. Comparing base (b4accc4) to head (8befeba).

Additional details and impacted files
@@               Coverage Diff               @@
##           release-3.6   #31249      +/-   ##
===============================================
- Coverage        72.94%   72.94%   -0.01%     
===============================================
  Files              435      435              
  Lines            56447    56447              
===============================================
- Hits             41178    41176       -2     
- Misses           15269    15271       +2     
Flag Coverage Δ
e2e 30.79% <ø> (+<0.01%) ⬆️
unit-tests 69.12% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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