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

persist secrets #393

Merged
merged 8 commits into from
Oct 21, 2024
Merged

persist secrets #393

merged 8 commits into from
Oct 21, 2024

Conversation

wildemat
Copy link
Contributor

@wildemat wildemat commented Oct 14, 2024

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.

@wildemat wildemat marked this pull request as ready for review October 21, 2024 18:22
Comment on lines +118 to +122
// Whether authNZ middleware should run. Better way of doing this?
authRequired: {
hidden: true,
default: false,
},
Copy link
Contributor

@echo-bravo-yahoo echo-bravo-yahoo Oct 21, 2024

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?

Comment on lines +30 to +31
console.log("got account key", accountKey);
console.log("got db secret", dbSecret);
Copy link
Contributor

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)

Comment on lines +29 to +31
if (e instanceof InvalidCredsError) {
promptLogin(profile);
} else {
Copy link
Contributor

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

Copy link
Contributor

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");
Copy link
Contributor

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?

@echo-bravo-yahoo echo-bravo-yahoo merged commit d4ce8d3 into v3 Oct 21, 2024
1 check passed
@echo-bravo-yahoo echo-bravo-yahoo deleted the persist-secrets branch October 21, 2024 18:38
@wildemat wildemat mentioned this pull request Nov 19, 2024
@cleve-fauna cleve-fauna mentioned this pull request Nov 22, 2024
@cleve-fauna cleve-fauna mentioned this pull request Dec 5, 2024
This was referenced Dec 6, 2024
@cleve-fauna cleve-fauna mentioned this pull request Dec 13, 2024
@wildemat wildemat mentioned this pull request Dec 18, 2024
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.

2 participants