mongodb / vault-plugin-secrets-mongodbatlas

ARCHIVED - Hashicorp Vault MongoDB Atlas Secrets Engine - Now hosted at https://github.com/hashicorp/vault-plugin-secrets-mongodbatlas/
Mozilla Public License 2.0
15 stars 11 forks source link

TTL setting - must make sure supported #8

Closed themantissa closed 5 years ago

themantissa commented 5 years ago

So far I see no where to set a default and max ttl? The lease should be settable like the general MongoDB Vault Secrets Engine, for example:

vault write database/roles/my-role
db_name=my-mongodb-database
creation_statements='{ "db": "admin", "roles": [{ "role": "readWrite" }, {"role": "read", "db": "foo"}] }'
default_ttl="1h"
max_ttl="24h"
Success! Data written to: database/roles/my-role

I also noticed this missing from the docs and noted as such in that PR.