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

Create a tool to query Relation API in production in read-only mode

XMLWordPrintable

    • 3
    • Access & Management Sprint 105, A&M Tech Debt Sprint Q1 2025, Access & Management Sprint 106, Access & Management Sprint 107, Access & Management Sprint 108, Access & Management Sprint 109, Access & Management Sprint 110, Access & Management Sprint 111, A&M Tech Debt Sprint Q2 2025, Access & Management Sprint 112, Access & Management Sprint 113, Access & Management Sprint 114

      This is tool needs to be to used for random checks for troubleshooting and QE testing purposes.

      Possible solution is via turnpike as internal endpoint in RBAC with direct calls to Relations API.

      Despite Relations API supports mainly gRPC, this endpoint can be API REST.

      Is authorization required? Check with Raj

      NOTE: This implementation most likely required existence of python client for Relation API which currently exists but can be re-implemented.

       

      Acceptance Criteria

      1. check_relation Internal Endpoint

      • Returns status code 200 when a relation is found with the correct response.
      • Returns status code 204 when no relation is found.
      • Returns status code 500 on gRPC errors.
      • Returns status code 500 on generic exceptions.

      2. lookup_resource Internal Endpoint

      • Returns status code 200 when a resource is found with the correct response.
      • Returns status code 204 when no resource is found.
      • Returns status code 500 on gRPC errors.
      • Returns status code 500 on generic exceptions.

      3. JWTProvider Token Generation

      • Raises an exception with status code 500 if client_id or client_secret is missing.

      4. JWTManager Token Retrieval

      • Retrieves the token if it exists.
      • Generates a new token through JWTProvider if one does not exist.

              rh-ee-ecasey Evan Casey
              lpichler@redhat.com Libor Pichler
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: