Possibility adjust default max_versions=num under all secrets/metadata

For every newly created secrets I set up a max_versions,
because by default it is 0
for example:

#cat secret_metadata.json`
"max_versions": "5"
#vault write secrets/metadata/adv/secret - < secret_metadata.json

Is there any possibility to setup default “max_versions: number” for all newly created secrets/* metadata ?

There is no need to do this, because in this context, 0 means “use the value configured globally for the whole secrets engine, at the config endpoint”.

1 Like