Repository navigation
feat(cve-tool-vulnogram): authenticate with a /users/token Bearer token - #1387
Merged
Merged
Conversation
The Vulnogram API helpers no longer take the browser's connect.sid session cookie. The operator logs in (MFA included) in their own browser, copies a token from https://cveprocess.apache.org/users/token, and vulnogram-api-setup stores that instead. The tool never handles the password, the MFA factor, or the full-power session cookie. The PMC-scoped `write` token is the recommended pick: the server accepts it only on /cve5/CVE-* and /cve5/json/CVE-*. Bearer-authenticated requests are exempt from CSRF, so updates are a single POST with no CSRF-token scrape. The probe moves to /cve5/json/CVE-0000-00000, because /cve5/new is not on the token allowlist. A session file written by the old cookie flow is refused with a pointer to /users/token. Generated-by: Claude Opus 5
10 of 11 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/cve-tool-vulnogram/oauth-api) no longer take the browser'sconnect.sidsession cookie.The operator logs in (MFA included) in their own browser, copies a token from
https://cveprocess.apache.org/users/token, andvulnogram-api-setupstores that.The tool never handles the password, the MFA factor, or the full-power session cookie.
writetoken is the recommended pick: the server accepts it only on/cve5/CVE-*and/cve5/json/CVE-*, and refuses it on/allocatecveand everything else.The probe moves to
/cve5/json/CVE-0000-00000, because/cve5/newis not on the token allowlist./users/token.Server-side behaviour follows
ensureAuthenticatedinapache/security-vulnogram@app.jsand the/users/tokenroute incustom/asf.js(apache/security-vulnogram#211, #212, #228, #252).Type of change
.claude/skills/<name>/) — eval fixtures updated belowtools/<system>/*.md)tools/*/withpyproject.toml)docs/,README.md,CONTRIBUTING.md)projects/_template/)prek, workflows, validators)Test plan
prek run --all-filespassesuv run pytest/ruff check/mypypassescveprocess.apache.org— worth onevulnogram-api-setup+vulnogram-api-check+vulnogram-api-record-fetchround-trip with a realwritetoken before merge.The
issue-syncsubdoc edits are wording only (cookie → token, and exit code 4 dropped from the exit-code list), so no eval rerun.RFC-AI-0004 compliance
Linked issues
Notes for reviewers (optional)
vulnogram-api-record-update/-publishis retired; the other codes keep their meaning.allocatetoken on/allocatecveis not wired up here; the tool still only writes records.~/.config/apache-magpie/vulnogram-session.json) and theVULNOGRAM_SESSIONenv var.Generative AI disclosure: drafted with Claude Code (Claude Opus 5); reviewed and verified by the author.
🤖 Generated with Claude Code