-
Story
-
Resolution: Done
-
Major
-
None
-
Product / Portfolio Work
-
2
-
False
-
-
False
-
None
-
Unset
-
None
-
-
-
-
HCC Framework Sprint 53
In our other SDKs (python, for example) we have helpers which call out to RBAC to retrieve the default or root workspace for clients. This is helpful for those who are not host-based (or any other resource-based) where they'd normally already have the IDs they need to query against.
Take remediations for example, where everything is granted at the default workspace, which means their calls to kessel require something like:
const { data, loading, error } = useSelfAccessCheck({ relation: 'remediations_view_remediation', resource: { id: [default-workspace-id], type: 'workspace', reporter: { type: 'rbac' } } });
Where the workspace ID is unknown.
See discussion in slack: https://redhat-internal.slack.com/archives/C064X43CMLK/p1770762153831209
Request
Add similar support for root/default workspace retrieval in the JavaScript/TypeScript SDK, matching the pattern available in the Python SDK.