Closed David-Lang closed 1 year ago
Kudos, SonarCloud Quality Gate passed!
There's more to this than meets the eye. I'm going to have to add on to this PR. I need to come up with a better logic for handling fallback authentication strategies.
If CONJUR_AUTHN_API_KEY environment variable is missing and .conjurrc file is missing from the user's home, it can be assumed an authenticator is being used (which is just authn-iam for now).
If all environment variables exist, it's going to be environment variable authn.
If neither of those are true and .conjurrc exists, it's going to use that.
I need to decide on an order and pull that logic into separate local functions and then deal with it that way.
It'll be way cleaner in the end but may take some time.
Spoke with @David-Lang at GKO... requested optional flags for --username
and --password
to be provided in-line with the command to override need for environment variables.
This is being completed in PR #184. Please reference that going forward.