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

Vault - Support default TTLs #2

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

kppullin
Copy link

@kppullin kppullin commented Dec 6, 2021

Vault's KV2 engine does not return the lease_duration TTL value
that is provided by the original KV1 engine. When this value is 0
or missing it effectively disables the caching support of the
VaultSecretProvider.

This commit adds support for configuring an optional default TTL to apply
when the lease_duration value is 0.

To maintain backwards compatibility the default value remains 0.

Fixes lensesio#4

Ref: hashicorp/vault#6274

Vault's KV2 engine does not return the `lease_duration` TTL value
that is provided by the original KV1 engine. When this value is 0
or missing it effectively disables the caching support of the
`VaultSecretProvider`.

This commit adds support for configuring an optional default TTL to apply
when the `lease_duration` value is 0.

To maintain backwards compatibility the default value remains 0.

Fixes lensesio#4

Ref: hashicorp/vault#6274
@kppullin kppullin merged commit 0639fb7 into NextDeveloperTeam:master Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants