feat(RHINENG-23947): Add Kessel perms#1521
Draft
mtclinton wants to merge 1 commit intoRedHatInsights:masterfrom
Draft
feat(RHINENG-23947): Add Kessel perms#1521mtclinton wants to merge 1 commit intoRedHatInsights:masterfrom
mtclinton wants to merge 1 commit intoRedHatInsights:masterfrom
Conversation
7e9aad4 to
9f0ff68
Compare
Integrate Kessel permission checks behind the patch-frontend.kessel-enabled feature flag. When Kessel is enabled, permission checks use the Kessel SDK (useSelfAccessCheck) against workspace resources instead of RBAC v1. When disabled, behavior is unchanged. Permission mapping (from patch.ksl): - patch:*:read -> patch_system_view - patch:*:* -> patch_system_edit - patch:template:write -> patch_template_edit Changes: - Add AccessCheck.Provider and QueryClientProvider to App.js - Create usePermissionCheck hook that toggles between RBAC v1 and Kessel based on feature flag - Create useKesselWorkspaces hook to fetch default workspace ID from /api/rbac/v2/workspaces - Replace direct usePermissionsWithContext calls in Routes, SystemsTable, PatchSet, PatchSetDetail, and WithPermission with usePermissionCheck - Update @project-kessel/react-kessel-access-check to ^0.3.1 and add @tanstack/react-query - Add KESSEL_API_BASE_URL and RBAC_API_BASE_V2 constants Co-authored-by: Cursor <cursoragent@cursor.com>
9f0ff68 to
f8fd928
Compare
mtclinton
commented
Feb 23, 2026
| "@redhat-cloud-services/host-inventory-client": "^4.1.7", | ||
| "@redhat-cloud-services/javascript-clients-shared": "^2.0.0", | ||
| "@scalprum/react-core": "^0.7.1", | ||
| "@tanstack/react-query": "^5.90.5", |
Contributor
Author
There was a problem hiding this comment.
I just used the compliance frontend version, package lock is set to latest: 5.90.21
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #1521 +/- ##
==========================================
- Coverage 62.53% 61.57% -0.97%
==========================================
Files 127 129 +2
Lines 3310 3365 +55
Branches 899 909 +10
==========================================
+ Hits 2070 2072 +2
- Misses 1120 1160 +40
- Partials 120 133 +13 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Integrate Kessel permission checks behind the
patch-frontend.kessel-enabled feature flag.
When Kessel is enabled, permission checks use the
Kessel SDK (useSelfAccessCheck) against workspace
resources instead of RBAC v1. When disabled,
behavior is unchanged.
Permission mapping (from patch.ksl):
Description
RHINENG-23947
Please include a summary of the change, what this fixes/creates/improves.
How to test the PR
Please include steps to test your PR.
Before the change
After the change
Dependent work link
Checklist: