Vault: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 46: | Line 46: | ||
Playground | Playground | ||
|- | |- | ||
|valign='top' style='width:50%'| | |||
<syntaxhighlight lang='bash'> | |||
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 40)" | |||
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 20)" | |||
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 16)" | |||
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 8)" | |||
</syntaxhighlight> | |||
|valign='top' style='width:50%'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
| Line 53: | Line 61: | ||
vault status | vault status | ||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 08:15, 20 January 2026
curl -fsSL https://apt.releases.hashicorp.com/gpg\
| sudo tee /etc/apt/keyrings/hashicorp.asc >/dev/null
DISTRIBUTION=$(. /etc/os-release && echo "${VERSION_CODENAME}")
cat << SRC | sudo tee /etc/apt/sources.list.d/hashicorp.list >/dev/null
deb [arch=$(dpkg --print-architecture)\
signed-by=/etc/apt/keyrings/hashicorp.asc]\
https://apt.releases.hashicorp.com ${DISTRIBUTION} main
SRC
|
cat <<'EXE' | sudo bash
apt-get update && apt-get install -y vault
systemctl disable --now vault.service
systemctl stop vault.service
systemctl mask vault.service
systemctl status vault.service
vault version
which vault
EXE
|
export VAULT_TOKEN='hvs.b613hrNQ25fJEkWqGB2KCWgl'
export VAULT_ADDR='https://vault.shahed.biz.ops'
vault status
|
export VAULT_SKIP_VERIFY=true
export VAULT_FORMAT=yaml
vault login
|
Playground
|
Playground | |
|---|---|
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 40)"
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 20)"
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 16)"
echo "$(cat /dev/urandom|tr -dc 'A-Za-z0-9'|head -c 8)"
|
vault token lookup
vault policy list
vault secrets list
vault status
|
References
|
References | ||
|---|---|---|
|
|
||