All plugins

hermes-passbolt-secret-source

Passbolt secret source for Hermes: resolves passbolt:// references into env values at startup from a Passbolt vault. Sandbox forwarding uses terminal.env_passthrough. Requires Hermes >= 0.21.6. Disclosure — at Hermes startup this source sends your PASSBOLT_PASSWORD and private key (via env, never argv) to the go-passbolt-cli binary, which contacts the Passbolt server you configure and loads the resolved values (in bulk mode, every resource in the chosen folders) as environment variables; if the CLI is missing it installs v0.5.1 into the profile's bin/ folder with go install or by downloading the SHA-256-checked release asset from github.com; setting tls_skip_verify (off by default) disables certificate checks for the Passbolt server.

AndreasBBSGeneralv1.0.1Updated 2 hours ago

About

Passbolt secret source for Hermes: resolves passbolt:// references into env values at startup from a Passbolt vault. Sandbox forwarding uses terminal.env_passthrough. Requires Hermes >= 0.21.6. Disclosure — at Hermes startup this source sends your PASSBOLT_PASSWORD and private key (via env, never argv) to the go-passbolt-cli binary, which contacts the Passbolt server you configure and loads the resolved values (in bulk mode, every resource in the chosen folders) as environment variables; if the CLI is missing it installs v0.5.1 into the profile's bin/ folder with go install or by downloading the SHA-256-checked release asset from github.com; setting tls_skip_verify (off by default) disables certificate checks for the Passbolt server.

hermes-passbolt-secret-source

License: MIT

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

ValueBehaviour
file:///abs/key.ascPass path to go-passbolt-cli --userPrivateKeyFile
file:rel/key.ascResolve 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.ascRejected — prefix with file://

Do not commit real data: payloads into git.

Field selectors

ReferenceField returned
passbolt://<uuid>password (default)
passbolt://<uuid>#passwordpassword
passbolt://<uuid>#usernameusername (#user alias)
passbolt://<uuid>#uriuri (#url alias)
passbolt://<uuid>#descriptiondescription (#note / #notes)
passbolt://<uuid>#namename

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

  1. Hermes starts up, loads the plugin via hermes_agent.plugins entry point
  2. Plugin reads PASSBOLT_PASSWORD / PASSBOLT_KEY from the active profile's secret environment
  3. For each passbolt://<uuid>[#field] reference, calls passbolt get resource --id <uuid> -j
  4. Extracts the selected field from JSON output (default password) → sets env var
  5. 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

ComponentShapeAuth
interface_type: cli (current)mapped or bulkGPGAuth via go-passbolt-cli
interface_type: rest-api (planned)mappedJWT / Server-to-Server

See open issues
for planned features: REST API interface, lazy CLI install.

License

MIT

README from the reviewed commit 058f4da; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section