Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support loading auth token via environment on the cli #19897

Closed
ctrlaltf24 opened this issue Sep 12, 2024 · 0 comments · Fixed by #19898
Closed

Support loading auth token via environment on the cli #19897

ctrlaltf24 opened this issue Sep 12, 2024 · 0 comments · Fixed by #19898
Labels
component:auth component:cli Affects the Argo CD CLI enhancement New feature or request

Comments

@ctrlaltf24
Copy link
Contributor

Summary

Support loading auth token from environment variables in addition to the cli

Motivation

Would allow users to avoid having their auth token in the command string

Proposal

When the arguments are parsed, if there is no auth token specified, try to read the value from environment before defaulting to an empty string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:auth component:cli Affects the Argo CD CLI enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants