summaryrefslogtreecommitdiff
path: root/plugins/code-modernization/README.md
diff options
context:
space:
mode:
authorMorgan Lunt <morganl@anthropic.com>2026-06-09 08:49:47 -0700
committerGitHub <noreply@github.com>2026-06-09 08:49:47 -0700
commit746c982737e3ce684dc45844f703d5b40389ed78 (patch)
tree7d3127a7d7c34f4f0dcbbc0ef2c1f6f40dd7d0aa /plugins/code-modernization/README.md
parent88233b24ba89bcfb04d28444b32b60ad2d4cac01 (diff)
parent4f49895abd8e59eb019780b87531d3ffd3f38765 (diff)
Merge pull request #2467 from anthropics/morganl/code-mod-secrets-redaction
code-modernization: never write discovered credential values into findings
Diffstat (limited to 'plugins/code-modernization/README.md')
-rw-r--r--plugins/code-modernization/README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/code-modernization/README.md b/plugins/code-modernization/README.md
index 1de150cb..44b93dac 100644
--- a/plugins/code-modernization/README.md
+++ b/plugins/code-modernization/README.md
@@ -29,6 +29,10 @@ The commands degrade gracefully, but each of these makes the output meaningfully
- **The whole system in the tree**: deployment descriptors (JCL, CICS definitions, route configs), copybooks/includes, and DDL/schemas. Entry-point detection and data lineage in `/modernize-map` are guesswork without them.
- **Production telemetry** (optional): an observability MCP server or batch job logs enable the runtime overlay in `/modernize-assess` and timing annotations on critical paths.
+## Secret handling
+
+Legacy systems routinely contain live credentials, and assessment artifacts get committed and shared. **Every agent in this plugin masks credential values** — findings, rule-card parameters, architecture notes, and test fixtures cite `file:line` with a masked preview (`AKIA****`), never the value. When credentials are found, a per-credential inventory (type, location, blast radius, rotation recommendation) is written to `analysis/<system>/SECRETS.local.md`, which the commands gitignore before writing; on non-git projects the quarantine file goes to `~/.modernize/<system>/` instead. `/modernize-harden` splits its remediation diff so credential-removal hunks (which necessarily contain the raw value) land in a gitignored `security_remediation.local.patch`, never the shareable patch. Pass `--show-secrets` to include raw values in the quarantine file (and only there). If you ran an earlier version of this plugin on a real system, check whether `analysis/` artifacts containing credentials were committed or shared, and rotate anything that was.
+
## Commands
The commands are designed to be run in order, but each produces a standalone artifact so you can stop, review, and resume.