Uh oh!
There was an error while loading. Please reload this page.
[cravex2-reachability] Integrate triage rules in CRAVEX API #365 - #564
Merged
Conversation
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
Signed-off-by: tdruez <tdruez@aboutcode.org>
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 freeto 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.
Issues
Vulnerability Triage REST API
Usage
1. List a product's active triage recommendations
Returns one entry per vulnerability, from the highest-precedence ruleset currently assigned to the product:
[ { "advisory_id": "CVE-2024-1234", "ruleset": "Active Exploit", "recommended_action": "upgrade", "matched_rules": ["exploited_vulnerability"], "request": null, "detected_date": "2026-08-01T10:00:00Z", "last_checked": "2026-08-18T09:00:00Z" } ]2. Manage triage rulesets and analysis presets
Standard list/create/retrieve/update/delete endpoints:
3. Assign or unassign a ruleset on a product
Lists every enabled ruleset in the product's dataspace, flagged with whether it's currently assigned:
[ {"uuid": "...", "name": "Active Exploit", "recommended_action": "upgrade", "precedence": 600, "assigned": true}, {"uuid": "...", "name": "Stale Vulnerability", "recommended_action": "apply_patch", "precedence": 300, "assigned": false} ]Assigns or unassigns that single ruleset for the product and re-evaluates it immediately, same behavior as the UI panel.
4. Vulnerability analysis update
The existing
/api/v2/vulnerability_analyses/endpoint now includes:applied_by_preset: the preset name, ornullif the analysis is user-ownedcreated_by/last_modified_by:nullwhen the analysis has never been touched by a user?applied_by_preset__isnull=true, to list only user-reviewed analyses (orfalsefor auto-triaged ones)