Conversation
Reviewer's GuideAdds the foundational, feature-flagged API contract and handler for system/CVE affected-package results, including authentication and authorization controls; the implementation currently returns an empty result because package retrieval is not yet wired in. Sequence diagram for the feature-flagged affected packages APIsequenceDiagram
participant Client
participant GetSystemCvePackages
participant RBAC
participant RBACv2
participant UNLEASH
Client->>GetSystemCvePackages: GET /v1/systems/{inventory_id}/cves/{cve_id}
GetSystemCvePackages->>RBAC: need_permissions(VULNERABILITY_RESULTS)
GetSystemCvePackages->>RBACv2: enforce_workspace_permission(VULNERABILITY_RESULTS)
GetSystemCvePackages->>UNLEASH: is_enabled(API_AFFECTED_PACKAGES_FEATURE)
alt feature disabled
GetSystemCvePackages-->>Client: 403 format_exception(...)
else feature enabled
GetSystemCvePackages-->>Client: 200 {data: [], meta: {}}
end
Flow diagram for the affected packages API responseflowchart TD
A[GET system CVE packages] --> B{Authorization succeeds}
B -->|No| C[Reject request]
B -->|Yes| D{API_AFFECTED_PACKAGES_FEATURE enabled}
D -->|No| E[Return 403]
D -->|Yes| F[Return empty data and meta]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
RHINENG-28514
jdobes
force-pushed
the
affected_packages_api
branch
from
September 15, 2026 09:49
a5b9039 to
c3ef72a
Compare
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.
RHINENG-28514
Secure Coding Practices Checklist GitHub Link
Secure Coding Checklist
Summary by Sourcery
Introduce a feature-flagged API for reporting affected and fixed packages for a CVE on an individual system.
New Features:
Enhancements:
Documentation:
Chores: