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

/metrics is accessible open wide #343

Closed
reynico opened this issue Feb 21, 2022 · 2 comments
Closed

/metrics is accessible open wide #343

reynico opened this issue Feb 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@reynico
Copy link
Contributor

reynico commented Feb 21, 2022

Hi!

The /metrics endpoint is accessible open wide to the Internet with the default configuration:

server_url: https://tailscale.dev:8080

# Address to listen to / bind to on the server
#
listen_addr: 0.0.0.0:8080

Note that listen_addr should be listening on 0.0.0.0 so the clients can authenticate to the server, but I think /metrics should be available only for the local network, either by listening on a different port or by a blocking rule.

Bonus points to make /metrics a toggleable endpoint!

@reynico reynico added the bug Something isn't working label Feb 21, 2022
@kradalby
Copy link
Collaborator

Hi, we would happily take a PR with a flag to make it localhost / a specific network only.

Turning off metrics would be an anti-pattern, so we will refrain for adding that.

Otherwise, this ticket will be put on the backlog.

For people arriving at this issue, one alternative is to lock it down with Nginx or another reverse proxy.

@reynico
Copy link
Contributor Author

reynico commented Feb 21, 2022

Hi @kradalby, PR is ready for review.

@kradalby kradalby closed this as completed Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants