Uploaded image for project: 'OpenShift Logging'
  1. OpenShift Logging
  2. LOG-6966

Refactor loki-gateway to remove the need for cluster-wide RBAC

XMLWordPrintable

    • 5
    • Log Storage - Sprint 269, Log Storage - Sprint 270, Log Storage - Sprint 271, Log Storage - Sprint 272, Log Storage - Sprint 273, Logging - Sprint 274, Logging - Sprint 275, Logging - Sprint 276, Logging - Sprint 277, Logging - Sprint 278, Logging - Sprint 279, Logging - Sprint 281

      Context

      The loki-gateway which depends on observatorium/api & observatorium/opa-openshift issues TokenReviews to get user info from kube-api (observatorium/api) and preforms SubjectAccessReview to know if a user can access a given resource, namely namespaces (observatorium/opa-openshift). However to issue both these requests to kube-api the loki-gateway SA needs RBAC. In this issue our goal is to replace TokenReview with SelfSubjectReview and SubjectAccessReview with SelfSubjectAccessReview

      Acceptance criteria

      • In observatorium/api replace TokenReview with SelfSubjectReview
      • In observatorium/opa-openshift replace SubjectAccessReview with SelfSubjectAccessReview
      • In loki-operator enable both feature flags in both api & opa-openshift

              jmarcal@redhat.com Joao Marcal
              jmarcal@redhat.com Joao Marcal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: