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

Add auth to /metrics path #3412

Open
sadath-12 opened this issue May 4, 2024 · 2 comments
Open

Add auth to /metrics path #3412

sadath-12 opened this issue May 4, 2024 · 2 comments

Comments

@sadath-12
Copy link

Which OpenObserve functionalities are relevant/related to the feature request?

metrics

Description

Add auth to /metrics path so our system information can't be exploited

Proposed solution

Auth in similar way you did for logs

Alternatives considered

Not yet considered

@prabhatsharma
Copy link
Contributor

For now, you can use the following annotation in nginx ingress:

nginx.ingress.kubernetes.io/configuration-snippet: |
        location ~* ^/metrics {
          return 404;
        }

@gaby
Copy link
Contributor

gaby commented May 5, 2024

@prabhatsharma That will block access to the endpoint though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants