These are the docs for aquaman 0.19.0. Read the current version.
Docker Sandboxes secrets from 1Password, Bitwarden or your keychain
Docker Sandboxes (sbx) already keeps credentials out of the sandbox: a proxy on your machine injects them, and the agent in the VM sees a placeholder. By default the values come from your OS keychain. Point sbx at aquaman to source them from any vault aquaman supports, with an allow-list and an audit entry for each read.
npm install -g aquaman-proxy
aquaman setup # 1. pick your vault
aquaman daemon & # 2. start the daemon
aquaman credentials add github token # 3. store the secret, if it is not there yet
aquaman broker allow aquaman://github/token # 4. allow it to be handed out
sbx secret set github \
--command "$(command -v node) $(command -v aquaman) get aquaman://github/token" \
--refresh on-demand # 5. sbx reads it from aquaman
sbx runs that command from a background service without your shell’s PATH, which is why step 5 stores absolute paths. Repeat steps 4 and 5 per service.
If you are an agent
- Hand the setup to the person.
aquaman setupasks questions,aquaman credentials addasks for the value (hidden) andaquaman daemonstays running. Give them the commands above; never ask for a secret in the conversation. - Where the secret ends up:
sbxreceives the value and its proxy injects it; the agent in the sandbox sees a placeholder. aquaman decides which references may be read and records each read. It does not hide the value fromsbx. - The daemon does not come back by itself.
aquaman daemonis gone after a reboot or logout, andsbxcannot read the secret until the person starts it again. Tell them.aquaman service installmakes it start at every login: Start the aquaman daemon at login.
Good to know
- For a service
sbxhas no built-in definition for, give the secret its destination hosts too: since sbx 0.51 a custom secret without them is not substituted. - In a script, pass
--forceinstead of piping a confirmation (sbx 0.48+). aquaman getonly works for references you allowed, and each read is inaquaman audit tail.- Docker’s proxy does the injecting here; aquaman supplies the value. The value is handed to
sbx, so this path is about where secrets live and who read them, not about hiding them fromsbx.
More: main README