occlum/demos/golang/vault/README.md
Kailun Qin 0f23ddb14e Add the HashiCorp Vault demo
Signed-off-by: Kailun Qin <kailun.qin@intel.com>
2021-04-16 18:32:51 +08:00

20 lines
670 B
Markdown

# Run HashiCorp Vault with Occlum
This project demonstrates how Occlum enables [HashiCorp Vault](https://github.com/hashicorp/vault) in SGX enclaves.
Step 1: Download Vault source code and build the Vault executable
```
./prepare_vault.sh
```
Once completed, the resulting Vault source code can be found in the `source_code` directory with the built binary located in `./source_code/bin`.
Step 2: Run Vault server in `dev` mode with a custom initial root token inside SGX enclave with Occlum
```
./run_occlum_vault_server.sh
```
Step 3: In another terminal, run Vault `kv` CLI for interacting with Vault's key/value secrets engine
```
./run_occlum_vault_test.sh
```