-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Drop /status endpoint #11113
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
Comments
@philwebb could I try to switch these endpoints? |
@pkostrzewa Thanks for the offer, but I've already got this one in hand. |
This is a feature of |
Agree with @snicoll, I quite liked the separate endpoint as it made it easier to think about security and addressing two different use cases: automated health checks and incident response. Now about the edge case side of this, I'd argue the other way around; unless you're deploying your app in an on-premise infrastructure and you can configure actuator on a separate port - any Spring Boot app serving public traffic would miss the health details. Comparing this with our other issue (re: renaming the health endpoint), I think it's easier to reconfigure the path your health check client sends requests to (like AWS ELB health checks) than configuring it to send authenticated requests. |
I guess I'm still not convinced that hitting a secured version of If you think about a monitoring system like Pingdom, the chances are that you want the full details payload to be returned. You want some history to be stored in Pingdom so that if the status changes back to healthy you still know what caused the problem. I really don't know which way to jump with this one. I still think having both |
We have another problem to deal with unfortunately. This change broke the CF integration as we don't show details by default anymore and I think we should as we deploy the endpoint in a separate space so that an administrator has full access regardless of how the app is configured. (I've just pushed an app with |
Separate endpoints for |
@dbacinski Do you currently rely on the existing Spring Boot 1.5 behavior where if you are authenticated you see more details? |
I'm going to close this one again for now. I'm not 100% convinced that removing |
I am using Spring Boot 2 M6 |
|
Hi. I was encouraged by @snicoll to describe my case here. We use docker swarm and sensu here to monitor our services. Both executing curl requests on So we secured actuator with basic auth. Un-authorized access from sensu / docker results in a handy http response code. Authorized requests from a developer showed the details. Perfect. But know with Spring Boot 2 this feature is gone. My Admins refuse to make different curl requests separating SB1.5 und SB2.0 services. Such a 'status' endpoint would solve my issue completely. update update2 |
Uh oh!
There was an error while loading. Please reload this page.
We've discussed the
/health
and/status
endpoints quite a bit and we were planning to switch them. After some more thought I'm thinking a simple property to enabled/disable the full details on/health
might be enough.The status and health endpoint are so similar in code and concept that I think having them both might actually be confusing. I think offering a single endpoint with a switch might be enough for most users.
If a user is running behind a firewall they can set the property to expose more details. If they are not running behind a firewall they can either stick with hidden details, or configure securirty.
The only use-case we've not covered very well is someone getting an alert from an insecure
/health
and then wanting to get more details about which specific aspect caused the problem. That seems like a fairly edge case so I'm tempted to see of people complain first.It's pretty easy for us to re-introduce a new endpoint later. It's much harder for us to take an existing one away.
The text was updated successfully, but these errors were encountered: