ConfigHub · Durable config for coding agents
Docs / docs/security.md Source on GitHub →

For a security review: what the Claude plugin does on a computer

This page is for a platform or security team deciding whether people may install the ConfigHub plugin for Claude Code on work computers. It says what the plugin reads, what it writes, what it sends and to where, what it can change in an agent's behavior, and how to turn each part off. For the ConfigHub hub server itself (local confighub mini or self-hosted in your cluster), see For a security review: the ConfigHub hub. Each setting below is an environment variable. To set one for every session, put it in the env block of Claude Code's settings.json, for example { "env": { "CUB_MINI_RECORD": "0" } }.

If you want to see what the plugin's program does before anyone installs it, run the inventory without installing the plugin. That is one program, checked against its published checksum, run on one of your repositories with no hooks and nothing installed.

Evaluator quick summary (forward this section to Security)

What the plugin is

The plugin has three parts:

What it reads

What it writes

What it sends, and to where

In an ordinary session, it sends nothing. The record stays on the computer. It sends something only in these cases.

Without being turned on, but only after a step the person or the agent took:

When the person types a command:

Only when you turn it on:

SettingWhat is sent, and to where
CUB_MINI_OTEL=1The record, to the OpenTelemetry endpoint you name
CUB_MINI_PULL_REQUEST=1A table of changed values and reasons, written into the pull request on GitHub with gh
CUB_MINI_READ_CLUSTER=1A kubectl get against the current cluster, before an apply
CUB_MINI_KEEP_IN_HUB=1Each change, to a hub running on this computer
CUB_MINI_NOTIFYEach notice, to the command you give

Through Claude Code itself. What a command prints, and what the hooks add to the agent's context, becomes part of the conversation. Claude Code sends the conversation to the model, as it does with every file the agent reads.

What it can change in the agent's behavior

Programs it runs

The words you type after a slash command are passed to the plugin's program as you typed them. Only a person can type those commands, so this is your own text.

Checking the program and proving zero network traffic

Each plugin release publishes the four reproducible programs and a SHA256SUMS file. The same file is in the plugin's bin folder, and bin/confighub verifies the compressed archive against SHA256SUMS before unpacking (failing closed if SHA256SUMS or shasum/sha256sum is absent unless CONFIGHUB_SKIP_CHECKSUM=1 is set; if the plugin folder is read-only, the unpacked cache under ~/.confighub/plugin-programs is keyed by SHA-256). Note that hooks.json appends || true so a hook error never blocks normal Claude Code sessions — to verify checksum enforcement directly, run ./plugins/confighub/bin/confighub mini changes --help (which exits non-zero on mismatch). Source-to-binary SLSA build provenance runs at compile time in confighubai/confighub-mini/.github/workflows/build-plugin-attest.yml, and release asset verification plus opt-in stable tag promotion run in .github/workflows/release-attest.yml (actions pinned by commit SHA, least-privilege split jobs).

Prove it sends zero bytes (30-second offline test on macOS): Run the hook and query under macOS sandbox-exec with all network access denied (on Linux, prefix with unshare -rn):

sandbox-exec -p '(version 1)(allow default)(deny network*)' \
  ./plugins/confighub/bin/confighub mini changes --why CACHE --dir /path/to/app

Every local hook (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse) and query (mini changes, mini why, mini lock, mini undo, mini inventory) succeeds with zero network access.

Turning it all off (and one-switch Team Mode)

CUB_MINI_MODE=team is a single policy switch for teams: it turns off earlier-session transcript reading, turns off flow counting, enforces strict production holds on every attempt, and sets autoAllowBashIfSandboxed: false in .claude/settings.local.json. Drop this into your managed Claude Code settings.json:

{
  "env": {
    "CUB_MINI_MODE": "team"
  }
}

CUB_MINI_RECORD=0 makes every hook return at once. Nothing is recorded, no earlier session is read, nothing is added to what the agent sees, and nothing is downloaded or started in the background. The commands still work, on what was recorded before. The halt file still stops agents. To remove the plugin and its record, see going back.

SettingWhat it controls
CUB_MINI_MODE=teamBundle: EARLIER_SESSIONS=0, COUNT=0, HOLD_PRODUCTION=strict, AUTO_ALLOW_BASH=0 (explicit individual env vars override)
CUB_MINI_RECORD=0Turns off everything the hooks do
CUB_MINI_EARLIER_SESSIONS=lazy / 0lazy: skip eager SessionStart scan and backfill only on demand; 0: never read earlier Claude Code sessions
CUB_MINI_HISTORY=0Turns off telling the agent what earlier sessions changed
CUB_MINI_STOP_BEFORE_UNDO=0Turns off refusing an undo once
CUB_MINI_HOLD_PRODUCTION=strict / 0strict: refuse direct production commands on every attempt; 0: turn the hold off (default outside Team Mode: refuse once)
CUB_MINI_AUTO_ALLOW_BASH=0Keeps Claude Code Bash confirmation prompts enabled (autoAllowBashIfSandboxed: false) when /confighub:staging configures the sandbox
CUB_MINI_USAGE=0Turns off adding token counts to a hub the agent changed
CUB_MINI_TELL=0Turns off reading back a change the agent proposed on a hub
CUB_MINI_TIPS=0Turns off the offer to install the local hub, and the lines about it
CUB_MINI_COUNT=0Turns off counting which commands were used
CUB_MINI_SIGN=0Turns off signing the record

Redaction rules and concrete stack examples

Redaction is pattern-based (internal/journal/values.go and scrub.go): any value matching a secret key name (password, passwd, pwd, secret, token, api_key, private_key, credential, auth, bearer, or ending in _key / .key), any Kubernetes Secret data/stringData, any URL containing embedded credentials (scheme://user:pass@host), any password=.../secret=.../token=... connection-string field, or any known token format (ghp_/gho_/github_pat_, glpat-, sk-, xox*, AKIA..., JWT eyJ...) is redacted to (credential) / [REDACTED].

Example key / valueRedacted?Why
DATABASE_URL=postgres://user:pass@db/appYesEmbedded URL password (scheme://user:pass@host)
DATABASE_URL=postgres://db.internal:5432/appNoHost-only URL with no password and non-secret key name
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ...YesKey name ends in _KEY and value is a JWT (eyJ...)
STRIPE_WEBHOOK_SECRET=whsec_...YesKey name contains SECRET
STRIPE_SECRET_KEY=sk_live_...YesKey name contains SECRET/_KEY
Unnamed raw secret pasted in chat with no known prefixNoKept as written — avoid pasting unnamed raw secrets in prompts

Claude Code vs. Codex CLI protection summary

SafeguardClaude CodeCodex CLI
Record config edits + reasonsYes (Edit, Write, Bash, MCP)Yes (apply_patch recorded after edit, Bash, local MCP; macOS tested, Linux not yet tested)
Hold direct prod secret/env CLI commandsYes (first attempt by default; every attempt with CUB_MINI_MODE=team or CUB_MINI_HOLD_PRODUCTION=strict)Yes for Bash / local MCP commands (CUB_MINI_MODE=team expands in bin/confighub); apply_patch is recorded post-edit and not held before execution
Emergency stop (~/.confighub/halt)Yes (wildcard * PreToolUse refuses every tool call)Enforced on hooked tools (^(Bash|apply_patch|mcp__.*)$) via codex-hooks.json
Full matrixClient capabilitiesCodex setup

Team rollout: pinning versions and enforcing off switches

For a team or enterprise rollout in Claude Code, set "CUB_MINI_MODE": "team" (or any individual switches above) centrally via your organization's managed Claude Code env settings or shell profile, and pin a specific release tag (such as v0.99.37, or the rolling stable tag) of confighub-mini-plugin as your internal marketplace source.

Where secrets live, retention, and reporting vulnerabilities