Public | Automated Build

Last pushed: 6 months ago
Short Description
vault conatiner for dev-team
Full Description

download client:

download: https://www.vaultproject.io/downloads.html

start server:

docker-compose up -d

status:

vault status или http://127.0.0.1:8200/v1/sys/status

Init

vault init -key-shares=1 -key-threshold=1 > vault-secret.txt

Key 1: 4cdc4cccb9e2ddda8a2163e8d1a1b94522e6e9c6d25d6a5a12e9677262547c1401 (unseal key)
Initial Root Token: 8a5dbab4-43cc-8b8d-e6a6-04d5e458dca9 (root token)

unseal

vault unseal

authenticate

vault auth 8a5dbab4-43cc-8b8d-e6a6-04d5e458dca9

read, write, policy-write, token-create

vault read secret/mysecret
vault write secret/mysecret value=@secret.json
vault write secret/mysecret value=-
[ctrl+D ctrl+D]
vault policy-write service_name_read service_name_read.hcl
vault token-create -policy=service_name_read

env for Linux:

export VAULT_ADDR=http://127.0.0.1:8200
export VAULT_TOKEN=8a5dbab4-43cc-8b8d-e6a6-04d5e458dca9

env for Windows:

SET VAULT_ADDR=http://127.0.0.1:8200
SET VAULT_TOKEN=8a5dbab4-43cc-8b8d-e6a6-04d5e458dca9
Docker Pull Command
Owner
giftery
Source Repository