Skip to main content

Passbolt secret source plugin for Hermes Agent

Project description

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: pip from GitHub (recommended)

pip install git+https://github.com/AndreasBBS/hermes-passbolt-secret-source.git

Option 2: pip from local clone

git clone https://github.com/AndreasBBS/hermes-passbolt-secret-source.git
pip install -e hermes-passbolt-secret-source/

Option 3: manual plugin

cd ~/.hermes/plugins
git clone https://github.com/AndreasBBS/hermes-passbolt-secret-source.git

Then enable:

hermes plugins enable hermes-passbolt-secret-source

Prerequisites

  • Hermes Agent ≥ v0.18.2 (SecretSource ABC)
  • go-passbolt-cli installed and authenticated (passbolt --version)
  • Passbolt instance with GPGAuth enabled

Configuration

Add to ~/.hermes/config.yaml:

secrets:
  sources: [passbolt]
  passbolt:
    enabled: true
    server_url: "https://passbolt.example.com"
    private_key_file: "/home/user/.passbolt/private-key.asc"
    env:
      OPENROUTER_API_KEY: "passbolt://<resource_uuid>"
      ANTHROPIC_API_KEY: "passbolt://<resource_uuid>"

Add PASSBOLT_PASSWORD (your GPG passphrase) to ~/.hermes/.env.

How it works

  1. Hermes starts up, loads the plugin via hermes_agent.plugins entry point
  2. Plugin reads PASSBOLT_PASSWORD from environment
  3. For each passbolt://<uuid> reference, calls passbolt get resource --id <uuid> -j
  4. Extracts the password field from JSON output → sets env var
  5. Agent sees resolved secrets in environment, never touches Passbolt directly

Development

git clone https://github.com/AndreasBBS/hermes-passbolt-secret-source.git
cd hermes-passbolt-secret-source
uv sync --extra test

# Run tests (requires Hermes checkout):
PYTHONPATH=~/.hermes/hermes-agent uv run pytest tests/

Architecture

Component Shape Auth
interface_type: cli (current) mapped GPGAuth via go-passbolt-cli
interface_type: rest-api (planned) mapped JWT / Server-to-Server

See open issues for planned features: bulk mode, REST API interface, lazy CLI install, integration tests.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hermes_passbolt_secret_source-1.0.11.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file hermes_passbolt_secret_source-1.0.11.tar.gz.

File metadata

File hashes

Hashes for hermes_passbolt_secret_source-1.0.11.tar.gz
Algorithm Hash digest
SHA256 a62c493fd7224c71a3256799c39307267d9a05936bd3a9f62ae1f2466e5fdd04
MD5 8a7b9f0f145f35a8a940b3731ca1265a
BLAKE2b-256 2e440ccfd6ed3d1fb7816f967a9d4a31a8248eba7031c7a8d9459d93d4b629ad

See more details on using hashes here.

File details

Details for the file hermes_passbolt_secret_source-1.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_passbolt_secret_source-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 9aa9dba9c7fee0413cd0fb0ccd03416ac4ab4244c916f64aebb3994f51f2d554
MD5 10693a77fe70c9e6c7fd17043c84ed0e
BLAKE2b-256 5f0edb5940fa16f05e19751f1a771c75a1560a4526a5319992c28b068726d70b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page