argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.01k stars 5.49k forks source link

feat: Add generic JWT auth #20928

Open wrmedford opened 17 hours ago

wrmedford commented 17 hours ago

Closes https://github.com/argoproj/argo-cd/issues/14250

This allows for generic JWTs to be used for authentication that are minted outside of Argo. Argo currently mints its own JWTs for auth outside of Dex, and this extends its capabilities to utilize JWTs that originate from Identity Aware Proxies.

Checklist:

bunnyshell[bot] commented 17 hours ago

:white_check_mark: Preview Environment deployed on Bunnyshell

Component Endpoints
argocd https://argocd-327urm.bunnyenv.com/
argocd-ttyd https://argocd-web-cli-327urm.bunnyenv.com/

See: Environment Details | Pipeline Logs

Available commands (reply to this comment):

codecov[bot] commented 14 hours ago

Codecov Report

Attention: Patch coverage is 36.53846% with 66 lines in your changes missing coverage. Please review.

Project coverage is 54.97%. Comparing base (e8d5265) to head (a463c2b). Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
util/oidc/provider.go 45.45% 28 Missing and 14 partials :warning:
util/session/sessionmanager.go 5.88% 13 Missing and 3 partials :warning:
util/settings/settings.go 20.00% 7 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #20928 +/- ## ========================================== - Coverage 55.02% 54.97% -0.05% ========================================== Files 324 324 Lines 55456 55560 +104 ========================================== + Hits 30512 30546 +34 - Misses 22323 22367 +44 - Partials 2621 2647 +26 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.