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

Make /metrics available without authentication or give the option for metrics-only usernames #116

Open
strayer opened this issue Aug 12, 2020 · 2 comments

Comments

@strayer
Copy link

strayer commented Aug 12, 2020

Output of rest-server --version

rest-server manually compiled with go1.14.7 on linux/amd64
84b6955

What should rest-server do differently?

A possible solution could be a parameter making /metrics completely public even when authentication is enabled. Another solution would be a parameter that specifies a username that should only be allowed to access /metrics and not store/read backups.

What are you trying to do? What is your use case?

I want to give a service read-only access to the metrics endpoint and avoid giving it more permissions than it needs to have for its purpose.

@strayer strayer changed the title Make available /metrics without authentication or give the option for metrics-only usernames Make /metrics available without authentication or give the option for metrics-only usernames Aug 12, 2020
@wojas
Copy link
Contributor

wojas commented Aug 12, 2020

PR #112 already changes how /metrics permission handling works. I actually want to optionally move the /metrics to a different port so that you can manage access and bind addresses independently.

@micah
Copy link

micah commented Mar 23, 2021

A different port makes a lot of sense for metrics

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

No branches or pull requests

3 participants