-
Notifications
You must be signed in to change notification settings - Fork 15
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
handle accountKey arg with user and secret #500
Conversation
keySource = "--secret"; | ||
keySource = "user"; |
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.
So this is this describing that the source of the key is a user-provided value? Not that specifically the --user
arg was provided, correct?
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.
correct
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.
Looks good. Thanks!
src/lib/auth/credentials.mjs
Outdated
|
||
if (argv.user && argv.accountKey) { | ||
logger.debug( | ||
"Both 'user' and 'account-key' arguments were specified. 'account-key' will be used to mint database secrets. 'user' will be ignored.", |
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.
We use --accountKey
in the help, but it looks like we accept both. I'll update the docs, but it may be good if our help hints output both or just the kebab-case version if that's preferred.
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.
put it back to camelcase for simplicity
Co-authored-by: James Rodewig <[email protected]>
Ticket(s): FE-6231
Problem
user
,secret
, andaccount-key
arguments together without any messaging as to what is happening. This isn't clear on what is being used.Solution
secret
andaccount-key
. Make it clear that if they specify an account key, they are buying in to using the automatic short term database secrets we generate.user
andaccount-key
, but provide a debug log that we will ignoreuser
.user
always gets a value of at leastdefault
, so we don't want to yell about that.account-key
descriptionResult
Testing