Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
sw:vault [2024/07/08 18:01]
tomas
sw:vault [2024/09/10 19:54] (current)
tomas [CLI]
Line 10: Line 10:
 **[[https://developer.hashicorp.com/vault/docs/commands|Proměnné prostředí]]** **[[https://developer.hashicorp.com/vault/docs/commands|Proměnné prostředí]]**
 VAULT_TOKEN ... token pro autorizaci\\ VAULT_TOKEN ... token pro autorizaci\\
-VAULT_SKIP_VERIFY ... ignoruje nevalidní certifikát\\+VAULT_SKIP_VERIFY=true ... ignoruje nevalidní certifikát\\
 VAULT_ADDR=https://aaa.bbb.ccc ... nastavení URL pro vault server\\ VAULT_ADDR=https://aaa.bbb.ccc ... nastavení URL pro vault server\\
  
Line 27: Line 27:
 vault write -format=json identity/entity name="bob-smith" policies="base" metadata=organization="ACME Inc."  metadata=team="QA" ... vatvoří entitu\\ vault write -format=json identity/entity name="bob-smith" policies="base" metadata=organization="ACME Inc."  metadata=team="QA" ... vatvoří entitu\\
 vault write identity/entity-alias name="bob" canonical_id=$(cat entity_id.txt)  mount_accessor=$(cat accessor_test.txt)  custom_metadata=account="Tester Account" ... vytvoří entity alias\\ vault write identity/entity-alias name="bob" canonical_id=$(cat entity_id.txt)  mount_accessor=$(cat accessor_test.txt)  custom_metadata=account="Tester Account" ... vytvoří entity alias\\
 +vault audit enable file file_path=/var/log/vault.txt ... zapne auditing\\
 +vault event subscribe kv-v2/data-write\\
 +wss://VAULT:8200/v1/sys/events/subscribe/kv-v2/data-write\\
 +wscat -H "X-Vault-Token: $(vault print token)" --connect 'ws://127.0.0.1:8200/v1/sys/events/subscribe/kv-v2/data-write?json=true'\\