Keep versioned keys indefinitely

Based on KV - Secrets Engines - HTTP API | Vault by HashiCorp , you have to specify max_versions to keep at a time inside Vault. Is it possible to remove the limit? so that I do not accidentally lose a key.

The max number of versions you can specify, per the GUI, is 1,874,919,424.

Setting the max revisions on the secret itself to 0 will default to using the value configured on the engine (default 10). Setting the revisions kept on the engine to 0 will use the default of 10.

2 Likes

I guess I go with 1,874,919,424!