Install Valt0 beside your app
--version pins the release that is installed:
RUN wget -qO- https://dl.valt0.com/v1/latest/install.sh | sh -s -- --version 0.0.50-pre--version pins the release that is installed:
RUN wget -qO- https://dl.valt0.com/v1/latest/install.sh | sh -s -- --version 0.0.50-prevalt0 deploy. Run valt0 deploy generate-keys once, on your own machine, to make the two keys for a vault. The prime key is printed as text; the unlock key is always a file.
valt0 deploy generate-keys secrets.valt0 valt0 deploy prime, runs when your application is built. It takes the vault’s path and the prime key.
RUN valt0 deploy prime secrets.valt0 VLT0-PRIME-KEY-...VALT0_UNLOCK_KEYS_DIR is the path to that directory, which is where Valt0 picks up the unlock keys to unlock the primed vaults. VALT0_MODE is set to deploy, which tells Valt0 it is running in deployment mode.
--preserve.
--preserve keeps them on disk.
valt0 deploy prime secrets.valt0 VLT0-PRIME-KEY-... --preserve