Skip to main content

Passbolt secret source plugin for Hermes Agent

Project description

hermes-passbolt-secret-source

License: MIT PyPI

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 PyPI (recommended)

pip install hermes-passbolt-secret-source

Option 2: pip from GitLab

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

Option 3: local development

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

Option 4: manual plugin

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 ≥ 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

See CONTRIBUTING.md for setup, testing, and commit conventions.

All tests run inside Docker — no local dependencies required.

# Unit tests (mocked CLI)
docker build -t hermes-passbolt-unit -f tests/unit/Dockerfile . && docker run --rm hermes-passbolt-unit

# Integration tests (live Passbolt)
cd tests/integration && bash run.sh

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.

License

MIT

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

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.18-py3-none-any.whl.

File metadata

File hashes

Hashes for hermes_passbolt_secret_source-1.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 883c33bfd102a6900c66c96b0cfa0f83667afbba866cec4becaf656ec076d75c
MD5 d5d3e665a86948eb5b8c64371266d8e6
BLAKE2b-256 97a0b886a3a84e8b3f4263f6322ea6df3b92647e64a66a15f5cb3abd7e29bef4

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