Bug 1768977 - Grafana and prometheus oauth-proxy don't respect proxy CAs
Summary: Grafana and prometheus oauth-proxy don't respect proxy CAs
Keywords:
Status: CLOSED DUPLICATE of bug 1766181
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.2.z
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Frederic Branczyk
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-11-05 17:18 UTC by Pablo Alonso Rodriguez
Modified: 2023-03-24 15:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-05 17:51:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1712525 0 high CLOSED [DOCS] Console cannot use oauth endpoint after configuring ingress (wildcard) certificates from custom PKI - users canno... 2024-01-06 04:26:19 UTC

Description Pablo Alonso Rodriguez 2019-11-05 17:18:29 UTC
Description of problem:

If I setup a proxy CA (trustedCA field at "proxy.config" CRD), it is not trusted by oauth-proxy containers of prometheus and grafana. So, when I try for example to login to grafana, login fails with 500 error.

Version-Release number of selected component (if applicable):

4.2

How reproducible:

Always

Steps to Reproduce:
1. Set trustedCA at "proxy.config"
2. Make oauth endpoints present that CA. This can be achieved either by requiring the oauth route to go through proxy or by setting a custom certificate in default ingress controller.

Actual results:

Login does not work

Expected results:

Login should work

Additional info:

Posible way to fix this would be to create a configmap with "config.openshift.io/inject-trusted-cabundle=true" label so it gets populated with "trusted-ca-bundle" contents and make oauth endpoints trust it.

Discovered while validating this: https://bugzilla.redhat.com/show_bug.cgi?id=1712525#c39

Comment 1 Pablo Alonso Rodriguez 2019-11-05 17:19:47 UTC
Just for reference: openshift-console pods already do something similar to what I am suggesting and, hence, they don't face this issue

Comment 2 Pawel Krupa 2019-11-05 17:51:54 UTC
We are aware of this issue and actively working on a fix. It was previously reported in https://bugzilla.redhat.com/show_bug.cgi?id=1766181 so I am closing this BZ as a duplicate.

*** This bug has been marked as a duplicate of bug 1766181 ***


Note You need to log in before you can comment on or make changes to this bug.