Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-45041

Add root/default workspace helper to the kessel access check SDK

XMLWordPrintable

    • Product / Portfolio Work
    • 2
    • False
    • Hide

      None

      Show
      None
    • 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.

              kwalsh@redhat.com Keith Walsh
              bflorkie@redhat.com Bryan Florkiewicz
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: