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

refactor prompts to mfa-token-providers #533

Closed
wants to merge 5 commits into from

Conversation

j0hnsmith
Copy link
Contributor

Prompts were simple prompts, mfa token providers have the mfa_serial
that the token is being requested for. It may simply be used to display
to the user, or could be passed to the store in order to lookup the
correct creds. This enables the interfacing of apps/stores that manage
multiple mfa creds/secrets, examples of such stores may be bitwarden,
ykman.

The --prompt flag becomes --mfa-token-provider and AWS_VAULT_PROMPT is
changed to AWS_VAULT_MFA_TOKEN_PROVIDER.

Prompts were simple prompts, mfa token providers have the `mfa_serial`
that the token is being requested for. It may simply be used to display
to the user, or could be passed to the store in order to lookup the
correct creds. This enables the interfacing of apps/stores that manage
multiple mfa creds/secrets, examples of such stores may be bitwarden,
ykman.

The --prompt flag becomes --mfa-token-provider and AWS_VAULT_PROMPT is
changed to AWS_VAULT_MFA_TOKEN_PROVIDER.
USAGE.md Outdated Show resolved Hide resolved
USAGE.md Outdated Show resolved Hide resolved
cli/global.go Outdated
PassPrefix string
Debug bool
Backend string
MfaTokenProvider string
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
MfaTokenProvider string
MFATokenProvider string

cli/global.go Outdated Show resolved Hide resolved
j0hnsmith and others added 4 commits February 27, 2020 16:24
Co-Authored-By: Steven E. Harris <[email protected]>
Co-Authored-By: Steven E. Harris <[email protected]>
Co-Authored-By: Steven E. Harris <[email protected]>
@j0hnsmith
Copy link
Contributor Author

@seh thanks for review, changes made 👍

@jtopper
Copy link

jtopper commented Apr 16, 2020

Hi, I came across this PR in my journey to find a nicer way to use my Yubikey with aws-vault. Is there anything I can do to help here?

@mtibben mtibben mentioned this pull request Apr 20, 2020
@mtibben
Copy link
Member

mtibben commented Apr 21, 2020

Fixed in #558

@mtibben mtibben closed this Apr 21, 2020
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.

4 participants