Vault: Difference between revisions
Jump to navigation
Jump to search
| Line 151: | Line 151: | ||
* [https://developer.hashicorp.com/vault/tutorials/secrets-management Vault » Docs » Secrets management] | * [https://developer.hashicorp.com/vault/tutorials/secrets-management Vault » Docs » Secrets management] | ||
* [https://developer.hashicorp.com/vault/tutorials/pki/pki-engine Vault » Docs » Build your CA] | * [https://developer.hashicorp.com/vault/tutorials/pki/pki-engine Vault » Docs » Build your CA] | ||
* [https://medium.com/@jagunathan22/hashicorp-vault-cheatsheet-8f13dc6a95a9 Vault » Docs » Cheatsheet] | |||
* [https://developer.hashicorp.com/vault/tutorials/monitoring Vault » Docs » Monitoring] | * [https://developer.hashicorp.com/vault/tutorials/monitoring Vault » Docs » Monitoring] | ||
* [https://developer.hashicorp.com/vault/tutorials/get-started/learn-ui Vault » Docs » How] | * [https://developer.hashicorp.com/vault/tutorials/get-started/learn-ui Vault » Docs » How] | ||
Revision as of 00:42, 21 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
|
Engine » KV
|
Engine » KV | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||
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 | ||
|---|---|---|
|
|
||