Catalog PyPI
PACKAGE EXPLORERView in registry

agenticstack-guard-secrets

PyPI

Secrets detection and redaction guard plugin for AgenticStack

agenticstackguardpluginredactionsecrets
Versions collected1
Direct dependencies1From release 0.1.0
Last observed20 Oct, 22:22 UTC

README

Version 0.1.0 documentation

agenticstack-guard-secrets

Secrets detection and redaction guard plugin for AgenticStack.

Scans agent input and output for credentials and replaces each with a [REDACTED:<kind>] placeholder (or blocks the content entirely).

Detected secret kinds:

KindPattern
openai-keysk-... API keys
github-tokenghp_ / gho_ / ghu_ / ghs_ / ghr_ tokens
aws-access-key-idAKIA... access key ids
slack-tokenxoxb- / xoxa- / xoxp- / xoxr- / xoxs- tokens
bearer-tokenBearer <token> authorization headers
hex-secret32+ hex chars preceded by key/token/secret context words

Install

pip install agenticstack-guard-secrets

Use

from agenticstack import Agent
from agenticstack_guard_secrets import SecretsGuard

# Redact mode (default): secrets are replaced before they reach the
# model or the conversation history.
agent = Agent(name="Helper", guards=[SecretsGuard()])

# Block mode: refuse content containing secrets outright.
agent = Agent(name="Strict", guards=[SecretsGuard(block_instead_of_redact=True)])

Or resolve it by name once the plugin is activated:

from agenticstack import get_runtime

# Auto-discovered via the `agenticstack.plugins` entry point:
await get_runtime().activate("agenticstack.guard-secrets")

agent = Agent(name="Helper", guards=["secrets"])

SecretsGuard subclasses the plain Guard ABC, so it runs on both agent input and output.

Permissions

None — pure-Python regex scanning with no network, filesystem, shell, or environment access.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.02 Aug 20261

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:22 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:bb583f33c48e47e711b75e1511d702afcf62710675380c6e63330b67f870145c