Skip to content

Latest commit

 

History

History

vault

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Hashicorp Vault sample

This sample shows how to port an existing Go application to Edgeless RT.

Also check out EGo, which further simplifies porting Go apps.

To build Vault for the enclave, first compile the (unmodified) Vault project to a static library using the Edgeless Go compiler:

git clone https://github.com/hashicorp/vault
cp invokemain.go vault
cd vault
ertgo build -buildmode=c-archive main.go invokemain.go
cd ..

This will produce main.a.

Now you can build the enclave:

mkdir build
cd build
cmake -DGOLIB=../vault/main.a ..
make

Run the Vault enclave:

erthost enclave.signed server -dev