Repository navigation
docs(secrets): generate secretref reference docs from target registry metadata - #91612
aniruddhaadak80 wants to merge 2 commits into
Conversation
Dependency graph guard clearedThis PR no longer has blocked dependency graph changes. A future dependency graph change requires a fresh
|
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds a generator/check script to keep SecretRef reference docs in sync with the credential matrix, wires it into the docs CI checks, and refreshes the published “credential surface” lists accordingly.
Changes:
- Added
scripts/generate-secretref-docs.tsto generate/update the matrix JSON and supported/unsupported surface lists. - Added
secretref:docs:*package scripts and integrated the check intocheck:docs. - Updated
docs/reference/secretref-credential-surface.mdlists to reflect the generated supported/unsupported credential surface.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.
| File | Description |
|---|---|
| scripts/generate-secretref-docs.ts | Implements the generation + drift check logic for SecretRef reference docs. |
| package.json | Adds scripts to run the generator/check and includes the check in check:docs. |
| docs/reference/secretref-credential-surface.md | Updates the supported/unsupported lists within the marker blocks. |
| const currentMatrix = fs.readFileSync(matrixPath, "utf8"); | ||
| const currentSurface = fs.readFileSync(surfacePath, "utf8").replace(/\r\n/g, "\n"); | ||
|
|
||
| let drift = false; | ||
| if (currentMatrix !== matrixJson) { | ||
| console.error("Drift detected in secretref-user-supplied-credentials-matrix.json"); | ||
| drift = true; |
| for (const line of originalSurface.split(/\r?\n/)) { | ||
| const match = line.match(/^- `([^`]+)`/); | ||
| if (match) { | ||
| lineMap.set(match[1], line); | ||
| } |
| const CHECK = process.argv.includes("--check"); | ||
| const WRITE = process.argv.includes("--write"); |
| if (WRITE) { | ||
| fs.writeFileSync(matrixPath, matrixJson, "utf8"); | ||
| fs.writeFileSync(surfacePath, newSurface, "utf8"); | ||
| console.log("SecretRef reference docs generated successfully."); | ||
| } else if (CHECK) { |
| } else { | ||
| console.error("Please specify --check or --write"); | ||
| process.exit(1); | ||
| } |
|
Codex review: needs real behavior proof before merge. Reviewed July 5, 2026, 8:06 PM ET / 00:06 UTC. Summary PR surface: Docs 0, Config +2, Other +99. Total +101 across 3 files. Reproducibility: yes. Source inspection on current main and Review metrics: 1 noteworthy metric.
Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Maintainer decision needed
Security Review findings
Review detailsBest possible solution: Land one canonical generator/check implementation that renders Markdown annotations from matrix metadata, preserves current docs checks, includes focused formatter/drift coverage, and has current-head terminal proof. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection on current main and Is this the best way to solve the issue? No for this PR as-is. Extending the existing generator is the right direction, but this patch still treats checked-in Markdown annotations as expected output instead of deriving them from registry metadata. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5199f55ebe64. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Docs 0, Config +2, Other +99. Total +101 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (2 earlier review cycles) |
1ec77ba to
c4e886d
Compare
|
Rebased onto main, consolidated the SecretRef matrix and surface documentation generators into generate-secretref-credential-matrix.ts, deleted the duplicate generate-secretref-docs.ts script, and restored the distinct structure for auth-profiles.json targets in docs/reference/secretref-credential-surface.md. Local unit tests pass. Ready for re-review. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing due to inactivity. |
This PR automates the generation of the secretref matrix JSON and reference markdown documentation from secret target registry metadata.
Details:
scripts/generate-secretref-credential-matrix.tsscript to compile the secretref credentials matrix and sync withdocs/reference/secretref-credential-surface.md.secretref:docs:checkandsecretref:docs:gennpm scripts topackage.json.secretref:docs:checkinto the docs checking suitepnpm check:docs.Closes #44289
Evidence
``console
$ pnpm run secretref:docs:gen
SecretRef reference docs and matrix generated successfully.
$ pnpm run secretref:docs:check
SecretRef reference docs are up to date.
``