-
Notifications
You must be signed in to change notification settings - Fork 44
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
Add support for CLI-based MFA recovery #458
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will defer to your judgment on the comment.
pkg/cmd/mfa-recovery.go
Outdated
) | ||
|
||
var mfaRecoveryCmd = &cobra.Command{ | ||
Use: "mfa-recovery", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make the command doppler mfa recovery
for more symmetry with the other options? (And in case we want to do other things with mfa in the future, e.g. allow the CLI to itself be an mfa option).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could also potentially nest it under doppler login
(i.e. doppler login mfa-recovery
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like both of these options! I'll go with doppler mfa recovery
as I like the idea of having more MFA commands in the future
aa018ee
to
a381ab5
Compare
a381ab5
to
9470fb8
Compare
bc3f94c
to
6622694
Compare
9302308
to
34c9047
Compare
e98bb90
to
bbbba91
Compare
We're seeing an issue with our Windows install.sh test in that the response code of the download request is coming back "000" with an error code from curl. It's pretty easy to test with:
Thanks to @watsonian for finding this issue: curl/curl#13845 which appears to be the same problem. I've removed the Windows test as a required check for now and I'll monitor the curl issue for updates. |
This PR adds a CLI command which simply calls
POST /v3/me/mfa_recovery
.This depends on https://github.com/DopplerHQ/server/pull/6727