Closed murilolocatelli closed 6 years ago
What version of springboot you are running with?
I'm using 2.0.4.RELEASE
I'd guess
metadata.user:
name: ${spring.security.user.name}
password: ${spring.security.user.password}
must be:
metadata:
user.name: ${spring.security.user.name}
user.password: ${spring.security.user.password}
due to the fact, that metadata is a map of strings...
I tried this way:
metadata:
user.name: ${spring.security.user.name}
user.password: ${spring.security.user.password}
But the same error occurs
Without a project to reproduce the issue it's hard to tell where you made a mistake. Please provide a project to reproduce the issue.
I cleaned the project, keeping only the spring boot admin configs. The error remains. The project follows:
.ignoringAntMatchers("/instances", "/actuator/**");
must read
.ignoringAntMatchers(adminContextPath + "/instances", adminContextPath + "/actuator/**");
It's also wrong in the docs. I'll fix that
Now it works. Thanks @joshiste
.ignoringAntMatchers("/instances", "/actuator/**");
must read.ignoringAntMatchers(adminContextPath + "/instances", adminContextPath + "/actuator/**");
It's also wrong in the docs. I'll fix that
@joshiste I have a similar issue.
My dependencies version info: org.springframework.boot:spring-boot-starter-security:2.1.0.RELEASE de.codecentric:spring-boot-admin-starter-server:2.1.1
I use .ignoringAntMatchers(adminContextPath + "/instances", adminContextPath + "/actuator/**");
instead of .ignoringAntMatchers("/instances", "/actuator/**");
But sba client still failed to register application for the same reason 401 null.
I am developing according with documentation: https://codecentric.github.io/spring-boot-admin/2.0.2, but i don't getting register a client in a secure application.
My configuration are:
application.yml
WebSecurityConfiguration
And the error is occurring:
2018-08-22 00:44:21.770 DEBUG 9616 --- [gistrationTask1] d.c.b.a.c.r.ApplicationRegistrator: Failed to register application as Application(name=template-api, managementUrl=http://localhost:8080/actuator, healthUrl=http://localhost:8080/actuator/health, serviceUrl=http://localhost:8080/) at spring-boot-admin ([http://localhost:8080/admin/instances]): 401 null
Can someone please help with this
401
?