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 UI shows all versions as deleted if delete_version_after is configured #7644

Closed
recrsn opened this issue Oct 14, 2019 · 1 comment · Fixed by #7685 or #7714
Closed

Vault UI shows all versions as deleted if delete_version_after is configured #7644

recrsn opened this issue Oct 14, 2019 · 1 comment · Fixed by #7685 or #7714
Milestone

Comments

@recrsn
Copy link
Contributor

recrsn commented Oct 14, 2019

In a kv2 storage backend, Vault UI shows all versions to be deleted if delete_version_after is configured.

To Reproduce
Steps to reproduce the behavior:

  1. Configure delete_version_after. Run vault kv metadata put -delete-version-after=300s secret/test
  2. Add some new versions of the secret. Run vault kv put secret/test message="data1"
  3. Open the secret in the UI

Expected behavior
Latest version of the secret should be visible

Actual behavior
Version is shown to be deleted

Environment:

  • Vault Server Version (retrieve with vault status): Vault v1.2.3
  • Vault CLI Version (retrieve with vault version): Vault v1.2.3
  • Server Operating System/Architecture: MacOS 10.15 Catalina

The same error is also present in Vault compiled from master

@con-f-use
Copy link

There seems to be a regression. I'm on Vault v1.15.4, I set delete_version_after=1s in the UI, secret doesn't get deleted. Or am I missing some extra prerequisites or configuration I have to make?


image
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants