Skip to content

security.redact_secrets redacts values before passing to tools, breaking Bitwarden CLI workflows #16700

@davidmarqu3s

Description

@davidmarqu3s

Bug

When security.redact_secrets is enabled, Hermes redacts secret-looking values not just in UI output but before passing them to tools (e.g. the terminal tool). This breaks workflows where Hermes retrieves a secret from Bitwarden CLI and passes it directly to a script or environment variable.

Expected behaviour

security.redact_secrets should only redact values in the displayed response — what the user sees in the TUI, WhatsApp, etc. The actual value should be passed through unmodified when used internally (tool calls, env vars, script arguments).

Actual behaviour

Hermes retrieves a secret from Bitwarden (e.g. an API key stored as a plain text field, type 0), but the redacted display value (AIzaSy...TcVk) is what gets passed to terminal commands, making the secret unusable.

Workaround

hermes config set security.redact_secrets false — but this removes all redaction protection.

Steps to reproduce

  1. Store an API key in Bitwarden as a custom field (type 0 / plain text)
  2. Enable security.redact_secrets (default)
  3. Ask Hermes to retrieve the key from Bitwarden and pass it to a script
  4. The script receives the truncated/redacted string instead of the real value

Impact

Makes Bitwarden-based secret management (the recommended alternative to .env files) non-functional when redaction is enabled. Users are forced to disable redaction entirely to use secrets in automations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High — major feature broken, no workaroundarea/configConfig system, migrations, profilescomp/agentCore agent loop, run_agent.py, prompt buildertype/securitySecurity vulnerability or hardening

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions