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.13.x #20514

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.13.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/sadly-quick-dolphin branch from da7618a to 6087a38 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/sadly-quick-dolphin branch from d8aad86 to fb877fd Compare May 4, 2023 15:04
@hghaf099 hghaf099 merged commit 17e127d into release/1.13.x May 4, 2023
@hghaf099 hghaf099 deleted the backport/fix-ttl-flad-for-day-durations/sadly-quick-dolphin 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