rajadilipkolli
rajadilipkolli

Reputation: 3601

How to provide actuator security in non spring-security spring boot project

How to enable security for actuator endpoints when there is no spring-security module dependency in a spring-boot 1.5.4.RELEASE project

I have added below values in application.properties but when I click on any endpoint I get error as

There was an unexpected error (type=Forbidden, status=403).
Access is denied. User must have one of the these roles: ACTUATOR

security.user.password=admin
security.user.name=admin
security.user.role=ACTUATOR
management.security.roles=ACTUATOR

How should I enable security ?

Upvotes: 0

Views: 768

Answers (1)

martin-g
martin-g

Reputation: 17533

Just remove the value, i.e. management.security.roles=

Upvotes: 1

Related Questions