Skip to content

Conversation

@eddumelendez
Copy link
Contributor

Nowadays, health endpoint is partially visible to every role but completely visible
to users with ROLE_ADMIN. This is due to HealthMvcEndpoint is looking at key
management.security.role instead of management.security.roles.

Nowadays, health endpoint is partially visible to every role but completely visible
to users with ROLE_ADMIN. This is due to HealthMvcEndpoint is looking at key
`management.security.role` instead of `management.security.roles`.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 3, 2016
@snicoll
Copy link
Member

snicoll commented Aug 3, 2016

Oops :)

@philwebb philwebb added type: blocker An issue that is blocking us from releasing type: regression A regression from a previous release and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 10, 2016
@philwebb philwebb added this to the 1.4.1 milestone Aug 10, 2016
@snicoll snicoll self-assigned this Aug 12, 2016
snicoll pushed a commit that referenced this pull request Aug 13, 2016
Commit b02aba4 has renamed `management.security.role` to
`management.security.roles`. Unfortunately, the `HealthMvcEndpoint`
was still looking at the old property.

This commit makes sure that the proper key is used and any custom
role is applied rather than an unconditional `ADMIN` role.

See gh-6540
@snicoll snicoll closed this in 4882544 Aug 13, 2016
snicoll added a commit that referenced this pull request Aug 13, 2016
* pr/6540:
  Polish contribution
  Fix health endpoint security
@snicoll
Copy link
Member

snicoll commented Aug 13, 2016

Thanks for the PR @eddumelendez - I've polished it in 4882544

@eddumelendez eddumelendez deleted the health-endpoint-visibility branch January 17, 2018 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: blocker An issue that is blocking us from releasing type: regression A regression from a previous release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants