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

Update HBI code to call MF v1beta2 endpoints (minimal)

XMLWordPrintable

      It should be possible to implement a minimal version of Kessel compatibility in HBI by modifying the rbac middleware to (potentially behind an unleash flag):

      • Send a lookup-resources request to Kessel to get workspaces where the user has the given permission
      • If none are returned, this is equivalent to the user not having the permission in v1: return false, no filter
      • If some are returned, and the default workspace is one of them, this is equivalent to the user having the permission in v1 without a filter: return true, no filter
      • If some are returned, but the default workspace is not one of them, this is equivalent to the user having the permission in v1 with a filter: return true and the filter

      It will also be necessary to (also likely behind a flag):

      • Call ReportResource when a new host is stored or a property that's kept in inventory (like the assigned workspace) changes
      • Call DeleteResource when a host is deleted or culled (ex: by Reaper)

      ..doing so will allow for end-to-end demos of HBI + Kessel with minimal upfront development

          There are no Sub-Tasks for this issue.

              wscalf@redhat.com William Scalf
              sgunta@redhat.com Sneha Gunta
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: