Commit bea94fb6 authored by Javi Corvi's avatar Javi Corvi
Browse files

security change for readiness

parent 18398827
Pipeline #26794 failed with stage
in 1 second
......@@ -15,6 +15,7 @@ public class LivenessController {
@GetMapping(path = "/readiness")
public String readeness() {
return "true";
System.out.println("readiness");
return "true";
}
}
......@@ -17,7 +17,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter {
authorizeRequests().
antMatchers(HttpMethod.OPTIONS, "/**").permitAll().
antMatchers(HttpMethod.GET, "/liveness").permitAll().
antMatchers(HttpMethod.GET, "/readeness").permitAll().anyRequest().authenticated()
antMatchers(HttpMethod.GET, "/readiness").permitAll().anyRequest().authenticated()
.and().httpBasic();
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment