HashiCorp Vault Server of dev
install
以下のページに記載しているようにしてインストール
just follow the below guide
https://www.vaultproject.io/intro/getting-started/install.html
- make directory to install vault server.
serverをインストールするためにdirectoryを作成
mkdir valut-server
download zip from Download Vault - Vault by HashiCorp and unzip
vaultを上記サイトよりダウンロードして、上記の作成したvault-server directoryにunzip
cd vault-server unzip vault_0.9.1_darwin_amd64.zip
- set path for vault and see where vault is
vaultにパスを通して、パスを確認
export PATH=$PATH:/Users/tomo/vault-server source $PATH which vault vault version
- start vault server for development
vault server を開始 (開発用モード)
vault server -dev
- vault client on another shell
vault clientをサーバとは、別のシェルで開始
export VAULT_ADDR='http://127.0.0.1:8200' vault status
- write secret
vault write secret/hello value=world
- read secret
vault read secret/hello
- read secret for json
vault read -format=json secret/hello