For a security review: what the 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 or Codex CLI on work computers (see the Claude Code vs. Codex CLI protection summary below). 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)
- Cost, source & license: The public plugin repository (
confighubai/confighub-mini-plugin: hooks, skills, starters, docs, and launcher), self-hosted Helm chart (charts/confighub-hub, see self-hosted Helm guide), Web UI, and Go/JS SDKs are MIT open source; this public plugin repository ships precompiled local CLI/hub binaries verified againstbin/SHA256SUMSfor archive integrity (built from upstream repoconfighubai/confighub-mini, not currently public on GitHub); the precompiled local CLI/hub binaries and self-hosted Helm chart are free to run; commercial plans onconfighub.comcover hosted team hubs and Enterprise support. - Zero-network default: Nothing leaves the machine in ordinary sessions. Prove it yourself in 30 seconds under a network-denied sandbox below.
- Measured hook latency: Over 30 runs each on Apple Silicon (
confighub-darwin-arm64), hooks complete in 16–25 ms median (17–25 ms p95, < 30 ms max):PreToolUse (Read)16.2 ms,PostToolUse (Edit)17.6 ms,PreToolUse (Bash)21.6 ms,UserPromptSubmit24.9 ms. The 120-second value inhooks.jsonis an upper Claude Code safety timeout, not typical runtime. - One-switch Team Mode (
CUB_MINI_MODE=team): Disables 30-day transcript backfill, disables local flow counting, enforces strict production holds (refuses direct prod secret/env commands on every attempt), and setsautoAllowBashIfSandboxed: falsewhen/confighub:stagingwrites.claude/settings.local.json. - Two-week pilot: Install with
--scope projecton one non-production repo, pin a release tag (orstable), setCUB_MINI_MODE=team, and report any findings tosecurity@confighub.com.
What the plugin is
The plugin has three parts:
- Hooks. Claude Code runs the plugin's program at the start and end of each session and turn, and before and after each tool the agent uses (~16–25 ms per call). This is how the plugin keeps a record of what agents changed in configuration files, and why.
- Commands. The slash commands, such as
/confighub:changesand/confighub:inventory, run only when a person types them. An agent cannot start them. - One program. It is built for macOS and Linux, on Intel and ARM, and kept compressed in the plugin's
binfolder. On first use, the plugin's launcher script verifies the compressed archive againstbin/SHA256SUMS(failing closed ifSHA256SUMSorshasum/sha256sumis missing, unlessCONFIGHUB_SKIP_CHECKSUM=1is set explicitly) and unpacks it next to the compressed copy (or in~/.confighub/plugin-programsif the plugin directory is read-only).
What it reads
- The files the agent works on, in the folder Claude Code is open in. When the agent reads or edits a configuration file, the plugin reads that file to see which values changed.
Earlier Claude Code sessions in the same folder, once. By default, the first time the plugin works in a folder, it reads Claude Code's own transcripts of that folder's sessions from the last 30 days (
~/.claude/projects) to recover earlier config changes and their reasons.- Set
CUB_MINI_EARLIER_SESSIONS=lazyto skip scanning atSessionStartand backfill only on demand when you run/confighub:whyorcub mini changes. - Set
CUB_MINI_EARLIER_SESSIONS=0(orCUB_MINI_MODE=team) before first opening a folder to disable transcript reading completely.
- Set
- The current session's transcript, at the end of each turn, to count the tokens and note the model used.
- Claude Code's
settings.json, when a person types/confighub:permissions. That command reads earlier transcripts only after the person agrees. - The name of the current Kubernetes context, from the
current-context:line of your Kubernetes configuration, so the record can say which cluster akubectlcommand was aimed at. It does not read credentials from that file. It does not contact a cluster unless you turn that on (see the list below).
What it writes
The record, in
~/.confighub/agent-changes, with one folder for each project and session. It holds:- each value an agent changed, from what to what;
- the commands the agent ran, but not their output;
- the person's request, and the agent's last message of each turn, each cut to 1,500 characters.
- Credentials are redacted by pattern before writing. A value whose name looks like a credential, and every value in a Kubernetes Secret, is recorded only as "changed". Before a request or a command is stored, credentials are taken out of it: values written as
NAME=valueunder such a name, passwords inside URLs, and tokens known by their form (ghp_/gho_/github_pat_,glpat-,sk-,xox*,AKIA..., JWTeyJ...). A secret pasted with no name, in a form that is not known, is kept as it was written; avoid pasting unnamed raw secrets in prompts. - Retention. A session's records are removed once they are 30 days old, counted from their last change, the next time a session starts in that folder.
cub mini changes --forgetremoves a folder's whole record at once. - Small files beside the record. An error log, a count of which commands were used on which days (
CUB_MINI_COUNT=0turns this off), and a key that signs each turn's record (CUB_MINI_SIGN=0turns this off). Nothing in your repository by default. It writes there only when you turn on or invoke one of these:
- keeping the record in the repository (
CUB_MINI_RECORD_IN_REPO=1); /confighub:permissions --apply --yes, which writes.claude/settings.local.jsonand keeps a backup;/confighub:stagingor/confighub:start-from, which writes.claude/settings.local.json(auto-excluded via.git/info/exclude).
- keeping the record in the repository (
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 agent changes a ConfigHub hub with
cub, the plugin adds that turn's model name and token counts to the change, in the hubcubis signed in to. That can be a hub on another computer.CUB_MINI_USAGE=0turns this off. - After the agent proposes a change on a hub, the plugin reads that proposal back from the same hub, to tell the agent and the person where it stands.
CUB_MINI_TELL=0turns this off. - When the person answers yes to the plugin's offer to install the local hub, it downloads confighub mini from this repository's GitHub releases. The download is checked against checksums built into the program. If the person sets
CUB_MINI_TIPS=0, the offer is never made.
When the person types a command:
/confighub:stagingand/confighub:start-fromdownload confighub mini (~300 MB on disk) from GitHub if it is not installed, verify itsSHA256SUMS, and start a local hub on127.0.0.1. They also write.claude/settings.local.jsonin that folder (auto-excluded via.git/info/exclude) to bind the agent's staging-only key, enable Claude Code's sandbox withautoAllowBashIfSandboxed: true(setCUB_MINI_AUTO_ALLOW_BASH=0orCUB_MINI_MODE=teamto writeautoAllowBashIfSandboxed: falseand keep Bash confirmation prompts on), and add deny rules blocking agent access to~/.confighub/keys. For an app on Vercel, Fly.io, Heroku or Unikraft, they read the app's settings with that service's own command-line tool./confighub:to-hub --yessends the record to the hubcubis signed in to.
Only when you turn it on:
| Setting | What is sent, and to where |
|---|---|
CUB_MINI_OTEL=1 | The record, to the OpenTelemetry endpoint you name |
CUB_MINI_PULL_REQUEST=1 | A table of changed values and reasons, written into the pull request on GitHub with gh |
CUB_MINI_READ_CLUSTER=1 | A kubectl get against the current cluster, before an apply |
CUB_MINI_KEEP_IN_HUB=1 | Each change, to a hub running on this computer |
CUB_MINI_NOTIFY | Each 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
- It adds text to what the agent sees. When the agent reads a file that earlier sessions changed, it is told what they changed and why, including the requests, marked as quotes.
CUB_MINI_HISTORY=0turns this off. - It refuses some tool calls once. A command that would undo a change an earlier session made directly on a cluster is refused once, and the agent is told why. If it is still right, the agent runs it again.
CUB_MINI_STOP_BEFORE_UNDO=0turns this off. A command that changes production directly on a host, such asfly secrets seton the production app,heroku config:set,vercel env add NAME productionorunikraft instances run -e, is also refused once, and the agent is told to ask the person, or to propose the change to the hub where the app is kept in one. Run again, it goes ahead.CUB_MINI_HOLD_PRODUCTION=0turns this off. For calls to MCP servers, the default is to record them only. The stricter levels are described in how it works. - It stops all agents on request. While the file
~/.confighub/haltexists, every tool call is refused. - What it quotes comes from people who can commit. If a team keeps the record in the repository, anyone who can commit there can write text that agents are later shown as an earlier request. That text is marked as a quote, not as an instruction to follow now.
Programs it runs
git, for local commands only, such as finding the repository's top folder and itsorigin.kubectl kustomizeorkustomize build, for/confighub:inventory, to compare environments.cuband the program of confighub mini, when a hub is in use.gh, only withCUB_MINI_PULL_REQUEST=1.
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 precompiled programs and a SHA256SUMS file. The same file is in the plugin's bin folder, and bin/confighub checks the compressed archive against bin/SHA256SUMS before unpacking (failing closed for download integrity 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; compare against GitHub Releases for release provenance). Note that hooks.json appends || true so a hook error never blocks normal Claude Code sessions; to check hash enforcement directly, run ./plugins/confighub/bin/confighub mini changes --help from a checkout of confighub-mini-plugin (or "$HOME/.codex/confighub/bin/confighub" mini changes --help on Codex), which exits non-zero on mismatch. Build workflows run at compile time in the upstream build repository (confighubai/confighub-mini, not currently public on GitHub), and release asset checks plus opt-in stable promotion run in .github/workflows/release-attest.yml.
Verify offline operation (30-second network-denied check on macOS): Run a query in your current project folder under macOS sandbox-exec with all outbound and inbound network access blocked (on Linux, prefix with unshare -rn):
BIN="$HOME/.claude/plugins/marketplaces/confighub/plugins/confighub/bin/confighub"
[ -x "$BIN" ] || BIN="$HOME/.codex/confighub/bin/confighub"
sandbox-exec -p '(version 1)(allow default)(deny network*)' \
"$BIN" mini changes --why CACHE --dir "$PWD"Every local hook (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse) and query (mini changes, mini why, mini lock, mini undo, mini inventory) completes cleanly with network disabled. To check for sandbox network denials on macOS during the run, inspect unified logs with log show --last 1m --predicate 'eventMessage CONTAINS "deny"'.
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.
| Setting | What it controls |
|---|---|
CUB_MINI_MODE=team | Bundle: EARLIER_SESSIONS=0, COUNT=0, HOLD_PRODUCTION=strict, AUTO_ALLOW_BASH=0 (explicit individual env vars override) |
CUB_MINI_RECORD=0 | Turns off everything the hooks do |
CUB_MINI_EARLIER_SESSIONS=lazy / 0 | lazy: skip eager SessionStart scan and backfill only on demand; 0: never read earlier Claude Code sessions |
CUB_MINI_HISTORY=0 | Turns off telling the agent what earlier sessions changed |
CUB_MINI_STOP_BEFORE_UNDO=0 | Turns off refusing an undo once |
CUB_MINI_HOLD_PRODUCTION=strict / 0 | strict: refuse direct production commands on every attempt; 0: turn the hold off (default outside Team Mode: refuse once) |
CUB_MINI_AUTO_ALLOW_BASH=0 | Keeps Claude Code Bash confirmation prompts enabled (autoAllowBashIfSandboxed: false) when /confighub:staging configures the sandbox |
CUB_MINI_USAGE=0 | Turns off adding token counts to a hub the agent changed |
CUB_MINI_TELL=0 | Turns off reading back a change the agent proposed on a hub |
CUB_MINI_TIPS=0 | Turns off the offer to install the local hub, and the lines about it |
CUB_MINI_COUNT=0 | Turns off counting which commands were used |
CUB_MINI_SIGN=0 | Turns off signing the record |
Redaction rules and concrete stack examples
Redaction is pattern-based (matching secret keys and token formats below): 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 / value | Redacted? | Why |
|---|---|---|
DATABASE_URL=postgres://user:pass@db/app | Yes | Embedded URL password (scheme://user:pass@host) |
DATABASE_URL=postgres://db.internal:5432/app | No | Host-only URL with no password and non-secret key name |
NEXT_PUBLIC_SUPABASE_ANON_KEY=eyJ... | Yes | Key name ends in _KEY and value is a JWT (eyJ...) |
STRIPE_WEBHOOK_SECRET=whsec_... | Yes | Key name contains SECRET |
STRIPE_SECRET_KEY=sk_live_... | Yes | Key name contains SECRET/_KEY |
| Unnamed raw secret pasted in chat with no known prefix | No | Kept as written; avoid pasting unnamed raw secrets in prompts |
Claude Code vs. Codex CLI protection summary
| Safeguard | Claude Code | Codex CLI |
|---|---|---|
| Record config edits + reasons | Yes (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 commands | Yes (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 matrix | Client capabilities | Codex 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.38, or the rolling stable tag) of confighub-mini-plugin as your internal marketplace source.
Where secrets live, retention, and reporting vulnerabilities
- Where secrets live: Credentials stay out of plain config copies by default. Keep production secrets in your host/secret store (Vercel, Fly, Vault, 1Password), or store them via
cub mini secret setinto a separate hub Space (APP-V-secrets) in the hub's PostgreSQL database where scoped agent keys have no read permission (see Hub security review). - Pattern-based redaction note: Redaction catches named secret keys (including
fly secrets setvalues) and common token prefixes (ghp_,glpat-,sk-,AKIA,xox, JWTs), plus Stripe (sk_live_,whsec_) and Supabase service-role patterns when named. Never paste unnamed raw secrets in chat prompts, as an unnamed value can be kept as written. - Retention and telemetry: Local plugin records in
~/.confighub/agent-changesauto-expire after 30 days without use while the plugin is installed (delete immediately anytime withrm -rf ~/.confighub/agent-changes). Hub records persist durably in PostgreSQL until you delete them. No external telemetry is sent; when signed in to a hub, model names and token counts are attached to hub changes unless you setCUB_MINI_USAGE=0. - Private vulnerability disclosure: Please report security issues privately to
security@confighub.comrather than opening a public GitHub issue.