A simple, secure self-destructing message service, using HashiCorp Vault product as a backend.
Read more about the reasoning behind this project in the relevant blog post.
-
run hashicorp vault server
docker run -ti --cap-add=IPC_LOCK -ti -p 8200:8200 --name vault vault
-
set vault environment variable
export VAULT_ADDR=http://localhost:8200 export VAULT_TOKEN=$(docker logs vault | grep Token | awk '{print $NF}')
-
run the secretMsg service
git clone https://github.com/algolia/sup3rS3cretMes5age.git go get go run *.go
-
try it!
http://localhost:1234/msg
You should always run this behind SSL/TLS; otherwise, a message will be sent unencrypted!
Pull requests are very welcome!