hermes-passbolt-secret-source
Passbolt secret source plugin for Hermes Agent.
Resolves provider API keys from Passbolt at process startup instead of storing
them in plaintext inside ~/.hermes/.env.
Install
Option 1: Git via hermes plugins (recommended)
hermes plugins install https://gitlab.com/AndreasBBS/hermes-passbolt-secret-source
Option 2: Manual plugin directory
cd ~/.hermes/plugins
git clone https://gitlab.com/AndreasBBS/hermes-passbolt-secret-source.git
Then enable:
hermes plugins enable hermes-passbolt-secret-source
Prerequisites
- Hermes Agent ≥ 0.21.6 — enforced via
requires_hermes; Hermes skips the
plugin on older versions. Use an older plugin release for older Hermes. - Passbolt instance with GPGAuth enabled
Configuration
Add to ~/.hermes/config.yaml (or a Hermes profile config.yaml):
secrets:
sources: [passbolt]
passbolt:
enabled: true
server_url: "https://passbolt.example.com"
# Keep certificate verification on unless the server has a trusted self-signed cert.
tls_skip_verify: false
# private_key_file MUST be a URI (breaking in 0.x — bare paths are rejected):
# file:///absolute/path.asc
# file:relative/path.asc # resolved against Hermes home
# data:application/pgp-keys;base64,<base64-of-armored-key>
private_key_file: "file:///home/user/.passbolt/private-key.asc"
env:
OPENROUTER_API_KEY: "passbolt://<resource_uuid>"
ANTHROPIC_API_KEY: "passbolt://<resource_uuid>"
# Optional field selectors (default: password)
SERVICE_USER: "passbolt://<resource_uuid>#username"
SERVICE_URL: "passbolt://<resource_uuid>#uri"
SERVICE_NOTE: "passbolt://<resource_uuid>#description"
Add PASSBOLT_PASSWORD (your GPG passphrase) to ~/.hermes/.env.
The passphrase and any inline private-key armor are handed to
go-passbolt-cli via the USERPASSWORD / USERPRIVATEKEY environment
variables, never argv, so they do not appear in ps or systemctl status.
Private key URI forms
| Value | Behaviour |
|---|---|
file:///abs/key.asc | Pass path to go-passbolt-cli --userPrivateKeyFile |
file:rel/key.asc | Resolve relative to Hermes home, then --userPrivateKeyFile |
data:;base64,… / data:<media>;base64,… | Decode and pass via USERPRIVATEKEY env (no temp file, never argv) |
bare /path/key.asc | Rejected — prefix with file:// |
Do not commit real data: payloads into git.
Field selectors
| Reference | Field returned |
|---|---|
passbolt://<uuid> | password (default) |
passbolt://<uuid>#password | password |
passbolt://<uuid>#username | username (#user alias) |
passbolt://<uuid>#uri | uri (#url alias) |
passbolt://<uuid>#description | description (#note / #notes) |
passbolt://<uuid>#name | name |
Unknown selectors produce a per-mapping warning and skip that env var.
Sandbox forwarding
The catalog build does not auto-forward secrets. Declare the names the agent
needs in terminal.env_passthrough (or a skill's
required_environment_variables); Hermes resolves each value from the owning
profile's .env or secret scope.
auto_passthrough — the Passbolt-sharing-as-allowlist policy — is parked on
the feat/auto-passthrough branch pending a public per-profile Hermes seam. It
is not part of this catalog release.
How it works
- Hermes starts up, loads the plugin via
hermes_agent.pluginsentry point - Plugin reads
PASSBOLT_PASSWORD/PASSBOLT_KEYfrom the active profile's secret environment - For each
passbolt://<uuid>[#field]reference, callspassbolt get resource --id <uuid> -j - Extracts the selected field from JSON output (default
password) → sets env var - Agent sees resolved secrets in environment, never touches Passbolt directly
Development
See CONTRIBUTING.md for setup, testing, and commit conventions.
All tests run inside Docker — no local dependencies required.
# Unit tests
docker build -t hermes-passbolt-unit -f tests/unit/Dockerfile . && docker run --rm hermes-passbolt-unit
# Integration tests
cd tests/integration && bash run.sh
Architecture
| Component | Shape | Auth |
|---|---|---|
interface_type: cli (current) | mapped or bulk | GPGAuth via go-passbolt-cli |
interface_type: rest-api (planned) | mapped | JWT / Server-to-Server |
See open issues
for planned features: REST API interface, lazy CLI install.
License
README from the reviewed commit 058f4da; it updates when the author re-pins.