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

Expose pprof without auth when enabled for httpd #1520

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

desa
Copy link
Contributor

@desa desa commented Aug 9, 2017

Fixes #1517

By default pprof routes are exposed independent of their configuration in the kapacitor config. If authentication was enabled, this would block pprof routes.

This PR introduces a bypass based on the pprof-enabled section of the configuration. Now, if both pprof-enabled and auth-enabled are true, the pprof routes will be exposed. This behavior is backwards compatible with the previous behavior of Kapacitor while introducing new functionality that mimics what is done in InfluxDB.

@desa desa requested a review from timraymond August 10, 2017 17:41
Copy link
Contributor

@timraymond timraymond left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@desa desa merged commit ee29d1a into v1.3 Aug 11, 2017
@desa desa deleted the md-expose-pprof branch August 11, 2017 18:59
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