Vault
Check out a service account
The LDAP secrets plugin lets clients check out service accounts from a previously configured LDAP library.
Use vault write with the -f flag and
{mount_path}/library/{set_name}/check-out
path to request a service account:
$ vault write -f <mount_path>/library/<set_name>/checkout
For example:
$ vault write -f devcreds/library/accounting-team/checkout
Key Value
--- -----
lease_id devcreds/library/accounting-team/check-out/EpuS8cX7uEsDzOwW9kkKOyGW
lease_duration 10h
lease_renewable true
password ?@09AZKh03hBORZPJcTDgLfntlHqxLy29tcQjPVThzuwWAx/Twx4a2ZcRQRqrZ1w
service_account_name fizz@example.com
Use vault write with the service account name and
{mount_path}/library/{set_name}/check-out
path to request a service account:
$ vault write <mount_path>/library/<set_name>/check-in \
service_account_names=[<account_list>]
For example:
$ vault write -f devcreds/library/accounting-team/check-in \
service_account_names=["fizz@example.com"]