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

Create Key #468

Merged
merged 9 commits into from
Dec 5, 2024
Merged

Create Key #468

merged 9 commits into from
Dec 5, 2024

Conversation

cleve-fauna
Copy link
Contributor

@cleve-fauna cleve-fauna commented Dec 4, 2024

Ticket(s): FE-6128

Problem

Creating a key is needed for the CLI. It is also needed to establish a --local pattern that works for many commands.

Solution

In this PR do a basic create key implementation that uses the account API.

Result

We got it started.

Testing

Ran the full suite.

@cleve-fauna cleve-fauna changed the title WIP for create key Create Key Dec 5, 2024
@cleve-fauna cleve-fauna marked this pull request as ready for review December 5, 2024 20:18
@cleve-fauna cleve-fauna requested a review from a team as a code owner December 5, 2024 20:18
`Invalid ttl '${argv.ttl}'. Provide as an ISO 8601 date time string.`,
);
}
if (argv.database === undefined && argv.secret === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we have a validation helper that does this already. I think it's called validateDatabaseOrSecret

Copy link
Contributor Author

Choose a reason for hiding this comment

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

had to add this bc of tweaks i made in this command big dog.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

if you odon't have this it asks you to login, which is insufficient.

@cleve-fauna cleve-fauna merged commit a7227a3 into v3 Dec 5, 2024
4 checks passed
@cleve-fauna cleve-fauna deleted the v3_basicCreateKey branch December 5, 2024 22:04
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.

3 participants