Restrict labels in Loki in OCP 4

Solution Verified - Updated -

Issue

  • A normal user is able to see the labels from resources (namespaces, pods) where has no access when accessing an external tool connected to Loki
  • A normal user should be only able to see the labels for the resources from OpenShift that has access when accessing the logs stored in Loki from an external tool connected to Loki
  • Needed to restrict the labels that a user can see from an external tool connected to LokiStack

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4
  • Red Hat OpenShift Logging (RHOL)
    • 5.6
    • 5.7
    • 5.8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content