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

Backport of CLI to take days as a unit of time into release/1.12.x #20513

Conversation

hc-github-team-secure-vault-core
Copy link
Collaborator

Backport

This PR is auto-generated from #20477 to be assessed for backporting due to the inclusion of the label backport/1.12.x.

The below text is copied from the body of the original PR.


For an example: vault token create -policy=mypolicy -ttl=1d
fails with error:
invalid value "1d" for flag -ttl: time: unknown unit "ds" in duration "1ds"

Currently, the CLI uses time.ParseDuration(appendDurationSuffix(s)) instead of parseutil.ParseDurationSecond(s). The fix is to use the latter instead.

Addresses #19815


Overview of commits

@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/fix-ttl-flad-for-day-durations/globally-robust-gazelle branch from 346f25e to aa1209b Compare May 4, 2023 15:04
@hc-github-team-secure-vault-core hc-github-team-secure-vault-core force-pushed the backport/fix-ttl-flad-for-day-durations/globally-robust-gazelle branch from b3af465 to faae86a Compare May 4, 2023 15:04
@hghaf099 hghaf099 merged commit 4374e60 into release/1.12.x May 4, 2023
@hghaf099 hghaf099 deleted the backport/fix-ttl-flad-for-day-durations/globally-robust-gazelle branch May 4, 2023 15:37
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