-
Notifications
You must be signed in to change notification settings - Fork 551
Expose pprof endpoint if tls is not configured #2422
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
Expose pprof endpoint if tls is not configured #2422
Conversation
0319de7
to
c16b9fd
Compare
CC @benluddy for his thoughts on this. |
I think this behavior is much more intuitive for debugging purposes and brings profiling in line with the behavior of the The alternative (as @benluddy pointed out in other channels) is to add some sort of edit: @benluddy suggested we could also use the existing |
cc7a217
to
1643cb5
Compare
This commit introduces a change that allows requests to the pprof endpoint to be made without a client certificate when OLM is not configured to use certificates and is ran with the --debug flag.
1643cb5
to
a5e9247
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: awgreene, njhale The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
Holding to avoid the bot spam. /hold |
/hold cancel |
Problem: Currently, if OLM is not configured to use TLS it is not
possible to reach the pprof endpoint. This limitation makes it
difficult to debug complex performance problems on clusters where
OLM is not configured to use tls.
Solution: If OLM is not configured to use tls, do not require a
tls certificate to access the pprof endpoint.