Skip to content
GitHub

GuideSupply chain

Secret reports

In the panel: Supply chain › Secret reports/supply/secret-reportsNeeds credentials:read

Agents connected over MCP report secrets of the organization (API keys, tokens, passwords, private keys, connection strings, webhook URLs) that showed up in their sessions, so administrators rotate them before anyone misuses them. A report never holds the value: only the name of the variable, a mask and, optionally, a fingerprint. Each person decides per token whether their agent reports under their name, anonymously or not at all.

In the panel · Supply chain › Secret reports
Secret reports
2 new1 acknowledged9 rotated3 false positive
Secret Mask Service / repository Where Reported Status
api-key WIDGET_API_KEY wk_l…(40) api.example.com command-output Dana Novak · 14:02 new
password widgets.db.password …(12) gitlab:acme/widget-service chat anonymous · ≈ Nov 14, 10:42 new
webhook-url GADGET_HOOK_URL · reported twice http…(77) hooks.example.com file-read anonymous · ≈ Nov 12, 16:05 acknowledged

Open reports first; anonymous ones show an approximate time.

  • Anything in a chat has already left. A secret that was pasted, printed or read in an agent session has reached the model provider. Treat it as compromised, even if nothing else happened.
  • Earlier rotation, shorter window. A report arrives the moment the agent sees the value, not when someone remembers it days later.
  • Agents notice what people miss. A key in a printed .env, a token in a log line, a connection string in a stack trace: the agent reads all of it.
  • Leaks happen to everyone. Reports exist to close holes, never to find someone to blame. That is why they name no one in their text, can be anonymous, and why the license forbids using them against anyone.

Nobody has to add anything to AGENTS.md: the tool’s description asks agents to report on their own, masked, without naming people, and then to tell the user the secret needs rotating.

Every MCP token has its own choice under Account › Connect agents, in the token’s Report exposed secrets menu. Only you see it, administrators can neither read nor set it, and changing it is not written to the audit log.

Choice What happens
Under my name (default) The agent gets report_secret_exposure; reports show your name and the exact time, and are logged as secret_report.create in the audit log.
Anonymously The agent gets the tool; reports store nothing about you. See below for what that does and does not cover.
Off The tool is not offered to that token at all.

The choice sits next to a link to the license and its Use Condition. See Connect agents.

Holtkeeper guarantees for an anonymous report:

  • It stores no name, id or token. Its time is moved back by up to 10 minutes at random, so the page shows it as approximate (≈). Reports are not stored in arrival order.
  • The call is not counted in MCP usage statistics, not even in totals, and writes no audit event or log line.

What Holtkeeper cannot hide:

  • The token’s Last used time, updated at most once an hour.
  • Access logs of proxies and load balancers in front of Holtkeeper.
  • Context: in a small team, only one person may have known the secret.

The panel says the same next to the choice. Pick Off if these limits matter to you.

Field Holds
kind api-key, token, password, private-key, certificate, connection-string, webhook-url or other.
identifier The variable, key or setting that holds the secret, e.g. WIDGET_API_KEY or widgets.db.password; unknown when it has none.
masked At most the first 4 characters, … and the length: wk_l…(40). Never more than a quarter of the value, and nothing of a password: …(12).
fingerprint Optional, never for passwords: the first 16 hex characters of the SHA-256 of the exact value.
channel Where it showed up: chat, command-output, file-read, commit, log, issue-or-merge-request or other.
service, repo What the secret opens (a host or a name) and the repository as forge:path; at least one of them.
circumstances How it got exposed, in a few sentences without names, roles or teams of people.

Before anything reaches the server the tool refuses, and stores nothing for, a report whose text fields look like a secret value (well-known key and token shapes, long random-looking strings), whose mask shows too much, or whose fingerprint is malformed. The refusal names the field and never repeats its content. Agents also skip placeholders, test fixtures, public keys and personal keys for services the organization does not use.

The server accepts a report only when it is about the organization:

  • repo names a fleet repository the token may read, or
  • service matches one of the services of the security.secretReports setting or the host of a connected forge.

Everything else is refused with a reason for the agent and never stored. A report that repeats an open one (same kind, identifier, service, mask and fingerprint) raises its repeats count instead of adding a row.

The security.secretReports setting lives under Settings › Integrations and applies to the whole instance.

Field Meaning
services The organization’s services besides forge hosts. example.com covers the host and its subdomains, *.example.com only subdomains, widgets-db exactly that name. Case, scheme, port and path are ignored.
channels Slack channel ids, e.g. C0123ABCD, told about every new report. Invite the Slack app first; it needs chat:write.
security.secretReports
{ "services": ["example.com", "widgets-db"], "channels": ["C0123ABCD"] }

A Slack post carries kind, variable name, mask, service, repository and a link to the report, never who sent it.

People with credentials:read on everything see the page; changing a status or a note needs credentials:write on everything. Changes are logged as secret_report.update.

Status Meaning
new Nobody has looked yet. Open.
acknowledged Someone is on it. Open.
rotated The secret was replaced and the old one revoked. Closed.
false-positive Not a real secret of the organization. Closed.
  1. Find the secret from its identifier, service or repository; when the report has a fingerprint, confirm it against your secret store.
  2. Set Acknowledged and leave a note on what you are doing.
  3. Rotate the secret, revoke the old value, then set Rotated.

Notes are about the secret, not about people. The instance keeps the last 1000 reports; beyond that the oldest closed ones go first.

A fingerprint lets you find which stored secret was exposed without anyone sending the value. Agents add one when they can run a local command: from where the value lives, or, for a value that is only in the chat, from the value itself, since hashing it locally sends nothing new anywhere. Agents without a shell send none; then the name, service, repository and mask (first characters and length) are what identify the secret. Compute one yourself the same way:

Terminal window
printf %s "$WIDGET_API_KEY" | holtkeeper secrets fingerprint
# same as: printf %s "$WIDGET_API_KEY" | shasum -a 256 | cut -c1-16

To search an OpenBao or Vault KV v2 engine for one or more fingerprints, run holtkeeper secrets match with a token in BAO_TOKEN or VAULT_TOKEN:

Terminal window
export BAO_TOKEN=…
holtkeeper secrets match 3f9a0c1d2e4b5a67 --address https://bao.example.com --mount kv --prefix widgets/

It walks the latest version of every secret under the mount (and --prefix), hashes each value in memory and prints the path, field and version of every match. Values never leave the process; paths the token may not list or read are skipped. See CLI.

The @holtkeeper/secret-reports package and the parts of Holtkeeper that serve its reports (the report_secret_exposure tool, the server’s secret report routes and the panel pages that show reports or the reporting choice) are under the Holtkeeper Secret Reports License: the MIT License plus a Use Condition. The rest of Holtkeeper stays MIT. Read the full text in packages/secret-reports/LICENSE.

An organization may keep the feature on, in a deployment people other than its own administrators use, only while all of this holds:

  • Voluntary use. Every person decides for themselves whether their agents report and whether reports carry their name. Nobody is required, asked as a condition of employment, contract or access, or pressured to turn it on or to report under their name, and nobody is disadvantaged for turning it off or reporting anonymously.
  • No sanctions. Reports, their content, their absence and a person’s reporting choice are never grounds for dismissal, discipline, performance or pay decisions or any other adverse action: not against the reporter, not against whoever caused the exposure, not against anyone. Reports serve one purpose: finding and rotating exposed secrets.
  • No identification. Nobody tries to find out who sent an anonymous report or who caused an exposure, whether by correlating logs, access records or timestamps or by asking people.
  • Notice. People who use the deployment can read the Use Condition. The panel shows it next to the reporting choice; removing or hiding that notice is not permitted.

An organization that cannot meet the condition must turn the feature off or stop using the software.

The feature is on by default. Set server.secretReports: false in holtkeeper.config.ts and restart: no token is offered report_secret_exposure anymore and the report routes answer 404. See Configuration.

holtkeeper.config.ts
export default defineConfig({
server: {
// …
secretReports: false,
},
})