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

Extend LokiStack authorization to support OTel Semantics

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • Logging 6.2.0
    • Logging 6.2.0
    • Log Storage
    • None
    • Log Storage - Sprint 265, Log Storage - Sprint 266

      The authorization components included in LokiStack are currently not prepared to deal with queries only using OTel semantics stream labels. This only affects the "fine-grained logs access", so it currently only limits the queries of non-admin users in the application tenant.

      Currently the authorization code only uses the "kubernetes_namespace_name" stream label to enforce the fine-grained authorization scheme. The OTel data model uses a different label, "k8s_namespace_name" to store the same information. The authorization code needs to be extended to support queries targeting either of the two stream labels.

      Acceptance Criteria

      • It's possible to query logs using the ViaQ namespace label "kubernetes_namespace_name" as a non-admin user
      • It's possible to query logs using the OTel namespace label "k8s_namespace_name" as a non-admin user
      • Authorization is correctly evaluated for RecordingRules / AlertingRules using "kubernetes_namespace_name"
      • Authorization is correctly evaluated for RecordingRules / AlertingRules using "k8s_namespace_name"

      Optional Criteria

      • Queries using a mixture of ViaQ and OTel label matchers are handled correctly

              jmarcal@redhat.com Joao Marcal
              rojacob@redhat.com Robert Jacob
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: