Page MenuHomeDevCentral

create-vault-approle.sh
No OneTemporary

create-vault-approle.sh

#!/bin/sh
VAULT_POLICY=$1
vault write "auth/approle/role/$VAULT_POLICY" token_policies="$VAULT_POLICY" \
token_ttl=1h token_max_ttl=4h
vault read "auth/approle/role/$VAULT_POLICY/role-id"
vault write -force "auth/approle/role/$VAULT_POLICY/secret-id"

File Metadata

Mime Type
text/x-shellscript
Expires
Mon, Sep 14, 16:20 (1 d, 17 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3948768
Default Alt Text
create-vault-approle.sh (258 B)

Event Timeline