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 Documentation #10

Closed PacoDw closed 5 years ago

PacoDw commented 5 years ago
$ vault write atlas/roles/test \
    credential_type=project_programmatic_api_key \
    project_id=5cf5a45a9ccf6400e60981b6 \
    programmatic_key_roles=GROUP_DATA_ACCESS_READ_ONLY \
    ttl=2h \
    max_ttl=5h
$ vault read atlas/creds/test

    Key                Value
    ---                -----
    lease_id           atlas/creds/test/0fLBv1c2YDzPlJB1PwsRRKHR
    lease_duration     2h
    lease_renewable    true
    description        vault-test-1563980947-1318
    private_key        905ae89e-6ee8-40rd-ab12-613t8e3fe836
    public_key         klpruxce
$ vault read atlas/roles/test   
    Key                       Value
    ---                       -----
    credential_type           org_programmatic_api_key
    database_name             n/a
    max_ttl                   5h0m0s
    organization_id           5b71ff2f96e82120d0aaec14
    programmatic_key_roles    [GROUP_DATA_ACCESS_READ_ONLY]
    project_id                5cf5a45a9ccf6400e60981b6
    roles                     n/a
    ttl                       2h0m0s

closes #8