fix(auth): add missing sbomGroup permissions to auth config#96
Open
mrrajan wants to merge 1 commit into
Open
Conversation
Add create.sbomGroup, read.sbomGroup, update.sbomGroup, and delete.sbomGroup to Keycloak and Cognito scope/group mappings in _auth.tpl to match the backend's default scope mappings. Without these, /api/v3/group/sbom endpoints return 403 Forbidden. Implements TC-5039
Reviewer's guide (collapsed on small PRs)Reviewer's GuideAligns auth scope/group mappings for SBOM groups with backend defaults by adding create/read/update/delete.sbomGroup permissions to Cognito group mappings and Keycloak scope mappings, fixing 403s on /api/v3/group/sbom endpoints. Sequence diagram for sbomGroup authorization flow with updated scopessequenceDiagram
actor User
participant Frontend
participant OIDCProvider
participant Backend
User->>Frontend: Request SBOM groups
Frontend->>OIDCProvider: OAuth2 authorize read:document
OIDCProvider-->>Frontend: access_token with read.sbomGroup
Frontend->>Backend: GET /api/v3/group/sbom
Backend->>Backend: [token has read.sbomGroup]
Backend-->>Frontend: 200 OK SBOM group list
Frontend-->>User: Display SBOM groups
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
ctron
approved these changes
Jul 3, 2026
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.
Add create.sbomGroup, read.sbomGroup, update.sbomGroup, and delete.sbomGroup to Keycloak and Cognito scope/group mappings in _auth.tpl to match the backend's default scope mappings.
Without these, /api/v3/group/sbom endpoints return 403 Forbidden.
Implements TC-5039
Summary by Sourcery
Bug Fixes: