update readme
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 5m11s
Some checks failed
Deployment Verification / deploy-and-test (push) Failing after 5m11s
This commit is contained in:
37
README.md
37
README.md
@ -37,12 +37,47 @@ Modification des labels pour traefik
|
||||
docker compose logs -f
|
||||
~~~
|
||||
|
||||
On se connecte sur le docker
|
||||
~~~bash
|
||||
docker exec -it vault-app /bin/sh
|
||||
~~~
|
||||
|
||||
Nous ajoutons les paquets manquant
|
||||
~~~bash
|
||||
vault operator init
|
||||
apk add jq curl
|
||||
~~~
|
||||
|
||||
Nous lancons initialitation
|
||||
~~~bash
|
||||
vault operator init -key-shares=5 -key-threshold=3 -format=json > /vault/file/unseal.json
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault operator unseal $(jq -r '.unseal_keys_b64[0]' /vault/file/unseal.json)
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
export VAULT_TOKEN=$(jq -r '.root_token' /vault/file/unseal.json)
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault secrets enable -version=2 -path=secret kv
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault policy write readwrite /vault/policy/secrets-readwrite.hcl
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault policy write readonly /vault/policy/secrets-read.hcl
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault policy write terraform /vault/policy/secrets-terraform.hcl
|
||||
~~~
|
||||
|
||||
~~~bash
|
||||
vault write auth/approle/role/terraform secret_id_ttl=10m token_num_uses=10 token_ttl=20m token_max_ttl=30m secret_id_num_uses=40 token_policies=terraform
|
||||
~~~
|
||||
|
||||
# Buy me a coffe
|
||||
|
Reference in New Issue
Block a user