This is the web-based offline key vault (a.k.a. "wallet").
Some Browser plugins / extensions have full access over all your personal data when you visit any website or webapp. Recent attacks like Meltdown and Spectre remind us that security is a chain that depends on every layer of a user device (hardware, firmware, operating system, driver, apps, plugins). As all webapps (including this one) depends on the basic safety of your browser, please take precautions by removing all untrustworthy browser plugins.
To run the vault/wallet in offline mode on your computer, follow the instructions below:
Download and install executables from the official caddy website: https://caddyserver.com/download
On MacOS or Ubuntu you may try the installation command below in a terminal:
sudo apt install caddy || sudo yum install caddy || brew install caddy
npx lerna bootstrap --scope=keyhub-vault-web
cd ./keyhub-vault-web
caddy
Note: If "can not download /js/openpgp.worker.js" error appears, perform shift+refresh to ignore the cache
Note: after every change, run
npx lerna bootstrap --scope=keyhub-vault-web
You are now ready to use the offline wallet/vault.
- Go to project directory
- Run this command to run "prepare" script and build the project
npx lerna bootstrap --scope=keyhub-vault-web
/dist folder will appear inside the keyhub-vault-web directory
- configure the AWS configure twith the key and secret key
- Deploy /dist to S3 by deploying the files to S3, this action will produce /cloudfront/stack.ap-southeast-1.yaml which will be used by cloudfront to point to this specific S3
for sandbox
environment
sls deploy
for prod
environment
sls deploy --stage=prod
- Check whether the files has been uploaded through aws S3 terminal
- Check whether index.html can be accessed (no access denied)
- Deploy cloudfront by going to /cloudfront then run
for sandbox
environment
sls deploy
for prod
environment
sls deploy --stage=prod
- go to vault.keyhub.app to check the deployment