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

fix: access key extension and deadline no longer optional #1386

Merged
merged 4 commits into from
Mar 29, 2022

Conversation

BruceMacD
Copy link
Collaborator

Summary

In the process of migrating to a standard time format the extension deadline and time to live of access keys created through the API became required fields. Update to set defaults in the CLI rather than the API.

Checklist

  • Wrote appropriate unit tests
  • Considered security implications of the change
  • Updated associated docs where necessary
  • Updated associated configuration where necessary
  • Change is backwards compatible if it needs to be (user can upgrade without manual steps?)
  • Nothing sensitive logged
  • Commit message conforms to Conventional Commit
  • GitHub Actions are passing
  • Considered data migrations for smooth upgrades

Related Issues

Resolves #1385

- add default value to access key ttl and extension deadline in the CLI
- fix keys add command flags to be optional
- fix destinations add command to have a default extension deadline
if err != nil {
return err
deadline := 1 * time.Hour
if options.ExtensionDeadline != "" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These are flags so they should be optional, set some safe defaults

Copy link
Collaborator

@mxyng mxyng left a comment

Choose a reason for hiding this comment

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

Since Deadline and TTL have defaults, should update the cmd help as well to communicate those defaults

- add note about the default ttl and deadline values
@BruceMacD BruceMacD merged commit 7d593c4 into main Mar 29, 2022
@BruceMacD BruceMacD deleted the fix_access_keys branch March 29, 2022 19:39
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.

Access key extension no longer optional
3 participants