-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Expose full health details to unauthorized user without disabling management security #8912
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
@berinle I think adding another flag for "secure" might be confusing. We can improve the behavior in 2.0, maybe by providing a nested path for accessing the full status such as @Bean
public HealthMvcEndpoint exposeDetailsHealthMvcEndpoint(HealthEndpoint delegate) {
return new HealthMvcEndpoint(delegate) {
@Override
protected boolean exposeHealthDetails(HttpServletRequest request,
Principal principal) {
return true;
}
};
} Does that sound reasonable? |
I agree @mbhave. It will be a bit convoluted to add an additional Thanks! |
@mbhave good morning. any update on this? Is it in anyway possible to override the current |
@berinle The above snippet will override the current |
@mbhave thanks! works great after i upgraded to 1.5.3. |
Closing as duplicate of #5750. |
Currently, the health endpoint of an app reports only
{ "status": "UP" }
when all is ok or{ "status": "DOWN" }
when one or more things aren't ok. Per the docs, there seems to be no way to expose the full health information to unauthenticated users without fully disabling security of management endpoints. It will be great if the full details of a the health endpoint can be exposed to an unauthenticated user without having to leave the whole management endpoints open.The text was updated successfully, but these errors were encountered: