Skip to content

Upgrading OCP from 4.16.44 to 4.16.46 removes cookie auth for Prometheus #30198

@a-roberts

Description

@a-roberts

To give more context, we have a container that is using a ServiceAccount token with sufficient privleges e.g. a ClusterRole with cluster-monitoring-view, that can talk to the Prometheus API using the value of the service account token which is automatically updated by OpenShift.
We use this to get monitoring data from the cluster and then we build our own charts and graphs off of this using Prometheus queries.

We now get 401s like this consistently

Received response 401 from GET call to https:/console-openshift-console.apps.somedomain.openshiftapps.com/api/prometheus/api/v1/query?query=(somequeryhere)

I suspect something in here has caused it (like it's now sending on the token redacted):

65d2ed0...334a53b#diff-cb149e746da7ca315f8c9b852dd6f407e04e16a7199587be3ae745fa57fe681eR486

but open to being mistaken.

We rely on this for delivering monitoring capabilities to our customers and we are now blocked from taking this version.

Might we be missing something, please? Everything works fine on older versions and has done since at least March 2024, thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions