Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get the kubernetes default config, freeze pip dependencies #3

Merged
merged 3 commits into from
Nov 8, 2021

Conversation

arska
Copy link
Member

@arska arska commented Nov 3, 2021

fixes the missing api_key of #2, which might be from an upstream Kubernetes module change?

@arska arska requested a review from dtschan November 3, 2021 14:41
@arska arska self-assigned this Nov 3, 2021
app.py Outdated
@@ -163,5 +163,5 @@ def log_message(self, format, *args):


if __name__ == '__main__':
httpd = ProxyHTTPServer(('127.0.0.1', 8080), partial(ProxyMetricsHandler, ProxyConfig()))
httpd = ProxyHTTPServer(('0.0.0.0', 8080), partial(ProxyMetricsHandler, ProxyConfig()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx for the pull request. openshift-prometheus-proxy deliberately binds to localhost only, so that it's only reachable via OAuth Proxy. This should still work on OCP 4 as the same configuration is used by the OCP 4 monitoring stack. Have you seen issues with this code on OCP 4?

@arska
Copy link
Member Author

arska commented Nov 7, 2021 via email

@dtschan
Copy link
Contributor

dtschan commented Nov 7, 2021

Yes, I deployed it using source-to-image to OCP4 and it was not reachable using 127.0.0.1. I did not test it on OCP4 using the provided config.

I see. openshift-prometheus-proxy requires OAuth proxy to provide security and isn't designed to be used without it. Can you please remove the change on line 166. The rest of the pull request looks good.

@arska
Copy link
Member Author

arska commented Nov 8, 2021

@dtschan Reverted change and added a comment 👍🏻

@dtschan dtschan merged commit a8502ba into master Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants