-
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
persist secrets #393
persist secrets #393
Conversation
// Whether authNZ middleware should run. Better way of doing this? | ||
authRequired: { | ||
hidden: true, | ||
default: false, | ||
}, |
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.
what's the intent here / why would you change it?
ah, does this indicate which commands "need" auth?
console.log("got account key", accountKey); | ||
console.log("got db secret", dbSecret); |
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.
use verbosity-based logging (logger.debug etc)
if (e instanceof InvalidCredsError) { | ||
promptLogin(profile); | ||
} else { |
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 skip prompt (and fail) if argv.noInput
is set
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.
ah, i see that prompt just bails. this is ok with noInput
set or unset.
secret: dbKey, | ||
endpoint: url, | ||
}); | ||
const result = await client.query("0"); |
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.
is there any advantage to pre-checking instead of trying to do the work? is it that we can do it still in the middleware before reaching the handler?
Ticket(s): FE-###
Problem
Explain the context and why you're making that change. What is the problem you're trying to solve? In some cases there is not a problem and this can be thought of being the motivation for your change.
Solution
Describe the modifications you've done.
Result
What will change as a result of your pull request? Note that sometimes this section is unnecessary because it is self-explanatory based on the solution.
Testing
Describe the manual and automated tests you completed to verify the change is working as expected.