-
Bootstrapping flux with git subcommand using credentials requires the user to provide password over CLI.
This is a bad pattern. I find it weird flux doesn't support provide credentials over environment variables or from a file. Couple of problems with such pattern:
Why does the flux CLI doesn't support variables from the environment? Is that something worth opening a PR for? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There are some ways you can configure your shell to avoid keeping sensitive history, but that doesn't really get at the meat of what you're asking... The I'm sure this is just an oversight in the I'm not sure what git providers still permit password authentication and don't require SSH authorization (it's not permitted anymore on GitHub, afaik), but the generic git bootstrap should work with everything including GitHub and GitLab as well as others, and I believe the lack of elaborate password entry capacity here is not an intentional slight or design decision, just an oversight/missing feature. |
Beta Was this translation helpful? Give feedback.
There are some ways you can configure your shell to avoid keeping sensitive history, but that doesn't really get at the meat of what you're asking...
The
flux bootstrap github
andflux bootstrap gitlab
commands can both take their credential (the GITHUB_TOKEN or GITLAB_TOKEN) from either: an environment variable, an input at runtime (hidden / using a password prompt that does not echo characters)I'm sure this is just an oversight in the
flux bootstrap git
command. If you want to submit a PR that follows the example in other bootstraps, where a missing password gets an interactive prompt presented, and hides the terminal echo for password input, I'm sure that's something we'd be intereste…