Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 765 Bytes

Vault使用示例.md

File metadata and controls

30 lines (22 loc) · 765 Bytes

Vault 使用示例

服务启动之后,就可以来运行一些示例了。

$ vault secrets list
$ vault write cubbyhole/one foo1=bar1 foo2=bar2
$ vault kv list cubbyhole/
$ vault list cubbyhole/

hashicorp/vault#8531 这里找到的:

$ vault secrets enable -version=2 kv
$ vault kv put kv/landscape-master-password landscape-master-password=evenmoresecret
$ vim managelmp.cnf
path "kv/data/landscape-master-password" {
  capabilities = ["create", "read", "update", "delete", "list"]
}
$ vault policy write managelmp managelmp.cnf 

$ vault auth enable -path=authtest userpass
$ vault auth list
$ vault write auth/authtest/users/engler password=verysecret policies=managelmp

$ vault auth enable oidc