Skip to content

Commit a310184

Browse files
committed
BAEL-315 change access in the config server to only users with SYSTEM level access.
1 parent 72c4fd8 commit a310184

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • spring-cloud/spring-cloud-bootstrap/config/src/main/java/com/baeldung/spring/cloud/bootstrap/config

‎spring-cloud/spring-cloud-bootstrap/config/src/main/java/com/baeldung/spring/cloud/bootstrap/config/SecurityConfig.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void configureGlobal(AuthenticationManagerBuilder auth) throws Exception{
2323
protected void configure(HttpSecurity http) throws Exception {
2424
http
2525
.authorizeRequests()
26-
.anyRequest().authenticated()
26+
.anyRequest().hasRole("SYSTEM")
2727
.and()
2828
.httpBasic()
2929
.and()

0 commit comments

Comments
 (0)