The opa-openshift component is responsible for authorizing the requests going to the LokiStack through the gateway. Requests are authenticated using a token and authorization happens by, among other things, checking for an RBAC privilege. To reduce the number of SubjectAccessReviews the result of the authorization is cached in opa-openshift for a while. Currently, the key used for this caching is just the token, which is too broad and allows a user with a token valid for one action to execute other actions as long as the authorization allowing the original action is still cached.
This issue has been addressed in the following products: RHOL-5.7-RHEL-8 Via RHSA-2023:4933 https://access.redhat.com/errata/RHSA-2023:4933
This issue has been addressed in the following products: RHOL-5.5-RHEL-8 Via RHSA-2023:5096 https://access.redhat.com/errata/RHSA-2023:5096
This issue has been addressed in the following products: RHOL-5.6-RHEL-8 Via RHSA-2023:5095 https://access.redhat.com/errata/RHSA-2023:5095