davsclaus commented on PR #1890:
URL: https://github.com/apache/camel-website/pull/1890#issuecomment-7258112158
cc @oscerd: this PR changes `/security/` and the release notes, so here's
what it means for publishing advisories.
**Publishing an advisory works as today.** Add `content/security/CVE-*.md`
plus the signed `.txt.asc`, then push. There is no extra step, script or data
file to update.
- The build (`yarn build:hugo` / `yarn preview:hugo`) runs
`scripts/security-advisory-data.js` before Hugo. It reads each advisory's
`affected`, `fixed` and `summary` text and generates the data for the new
filters on `/security/` (project, component, "my version") and for the
"Security fixes in this release" section on release notes.
- The advisory `.md` files are not touched, so the signatures stay valid.
- **Components** come from a `Camel-Xxx:` prefix in the summary, e.g.
`Camel-AWS2-S3: ...` or `Camel-CXF and Camel-Knative: ...`. If a summary has no
such prefix, the advisory still shows up but without components in the
component filter.
- **Versions** are read from the usual phrasings: "From 4.0.0 before 4.18.5,
from 4.19.0 before 4.22.1." for `affected`, and "4.18.5, 4.22.1 and 4.23.0."
for `fixed`.
- **Text the parser can't read** only logs a `WARN security advisories: ...`
line in the build; nothing fails. The advisory is still listed, and the version
filter keeps it visible instead of hiding it.
- **Corrections** go in `data/security-advisory-overrides.yaml`, field by
field. It currently holds the hand-picked components for 32 older advisories,
plus two fixes:
- **CVE-2018-8041:** the `fixed` field says 2.21.1, but the mitigation
says 2.21.2.
- **CVE-2026-47323:** the text ends with the empty range "from 4.19.0
before 4.19.0".
When you have a moment, could you skim the components in that file? Please
also confirm that the two corrections above are right.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]