Goal
Produce a unique CVE list (CSV matching RHDH CVE Management exports) for dependency/CVE fixes on a release branch since a revision, scoped to generally-available plugin workspaces.
Primary repo: rhdh-plugin-export-overlays.
Prerequisites
- Node 18+,
git,gh - For Jira enrich (default): Cursor Atlassian MCP (
plugin-atlassian-atlassian) — runcursor-mcp-authfirst - Optional local
--rhdh-repofor--sincedate fallback
Do not reimplement parsing — run the bundled script. The CLI does not call Jira; the agent enriches via MCP.
Run (extract)
SKILL=skills/compute-plugin-package-overlay-cve-list # under 1-rhdh-skill checkout
node "${SKILL}/scripts/compute-plugin-package-overlay-cve-list.mjs" \
--since 1.10.2 \
--regex 'orchestrator|lightspeed' \
--repo /home/nboldt/1/1-overlays
# Default: /tmp/1.10/RHDH CVE Management - 1.10.3-plugins.csv
# /tmp/1.10/RHDH CVE Management - 1.10.3-plugins.rows.json
--since 1.10.2 alone implies --branch release-1.10. Omit --repo to clone overlays into /tmp/rhdh-plugin-export-overlays-<timestamp>.
Agent enrich (default)
Unless --no-metadata:
- Load
cursor-mcp-auth→ok:mcp(atlassianUserInfo). cloudId:2b9e35e3-6bd3-4cec-b838-f4249ee02432orhttps://redhat.atlassian.net.- For each unique JIRA key (or bulk JQL) → MCP
getJiraIssue/searchJiraIssuesUsingJqlwith fields:summary,status,resolution,duedate,customfield_10859(ProdSec CVSS vector; take leading score, e.g.7.5from7.5 CVSS:3.1/...). UseissueFieldsToEnrichfrom the script. - For CVEs with no JIRA → MCP
searchJiraIssuesUsingJql:project IN (RHIDP,RHDHBUGS,RHDHPLAN) AND summary ~ "CVE-…" AND (<jql>)
--jqlis an inclusion rule. DefaultResolution != null→ MCPresolution is not EMPTY. - Write enrich JSON, then apply (same
--jqlkeeps matching rows in the CSV):
# enrich.json shape:
# { "issues": { "RHIDP-123": { "status","resolution","dueDate","cvss","summary" } },
# "cveJiras": { "CVE-2026-1": ["RHIDP-456"] } }
node "${SKILL}/scripts/compute-plugin-package-overlay-cve-list.mjs" \
--apply-enrich /tmp/1.10/enrich.json \
--rows-json "/tmp/1.10/RHDH CVE Management - 1.10.3-plugins.rows.json" \
-o "/tmp/1.10/RHDH CVE Management - 1.10.3-plugins.csv"
Never invent CVSS — only use the leading score from customfield_10859 (or another explicit CVSS field). Never paste OAuth secrets into chat.
Flags
| Flag | Behavior |
|---|---|
--repo |
Optional overlays checkout; else clone to /tmp/rhdh-plugin-export-overlays-<timestamp> |
--branch |
Optional; from --since X.Y.Z → release-X.Y |
--since |
Required (unless --apply-enrich). Tag / SHA / X.Y.Z |
--regex |
Optional workspace name filter; always intersected with GA |
--rhdh-repo |
Optional local rhdh checkout for since-date fallback |
--no-metadata |
Skip agent MCP enrich (no .rows.json unless --rows-json) |
--jira-projects |
Default RHIDP,RHDHBUGS,RHDHPLAN (PR body scan) |
--jql |
Keep enriched rows matching EXPR (default Resolution != null) |
--no-jql |
Disable JQL filtering (keep all) |
-o |
Output CSV path; default /tmp/<stream>/RHDH CVE Management - <nextz>-plugins.csv |
--rows-json |
Write/read row JSON for MCP enrich |
--apply-enrich |
Merge MCP enrich JSON into CSV |
--json |
Summary on stderr |
References
Gotchas
- Overlays may lack version tags —
--since X.Y.Zuses the tip-most branch commit mentioning that version (release message orresolve X.Y.Z CVEs), not an earlier release-message alone - CVE tracking is GA-only (
spec.support: generally-available) - Skip test-only commits (
e2e-tests/,smoke-tests/) - One CSV row per CVE × plugins-list package (Container = GA
dynamicArtifactorworkspaces/<ws>/<pluginPath>); multi-workspace CVEs expand - Enrich via Atlassian MCP after extract (
--apply-enrich) - If no JIRA for a CVE, JIRA Issue column gets the overlays commit URL
- Unchanged / prior-release backport CVEs → Resolution
Done <since>, StatusClosed <since>(e.g.Done 1.10.2/Closed 1.10.2); JIRA from introduce commit PR