Page MenuHomeDevCentral

create-vault-approle.sh
No OneTemporary

create-vault-approle.sh

#!/bin/sh
# -------------------------------------------------------------
# Vault AppRole creator
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Project: Nasqueron
# License: Trivial work, not eligible to copyright
# Source file: roles/devserver/userland-software/files/create-vault-approle.sh
# -------------------------------------------------------------
#
# <auto-generated>
# This file is managed by our rOPS SaltStack repository.
#
# Changes to this file may cause incorrect behavior
# and will be lost if the state is redeployed.
# </auto-generated>
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
Sat, Nov 7, 06:17 (7 h, 53 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4093389
Default Alt Text
create-vault-approle.sh (878 B)

Event Timeline