RIC Dashboard Release Notes
===========================
-Version 1.2.0, 31 July 2019
----------------------------
+Version 1.2.0, 7 Aug 2019
+-------------------------
* Split URL properties into prefix/suffix parts
* Add jacoco plugin to back-end for code coverage
* Compile with Java version 11, run with image openjdk:11
<!-- Include maven dir on classpath for prop files -->
<exec>
<arg>java</arg>
+ <arg>-Xms128m</arg>
+ <arg>-Xmx256m</arg>
<arg>-cp</arg>
<arg>maven:maven/${project.artifactId}-${project.version}.${project.packaging}</arg>
<arg>-Dloader.main=org.oransc.ric.portal.dashboard.DashboardApplication</arg>
- <arg>-Xms128m</arg>
- <arg>-Xmx256m</arg>
<arg>-Djava.security.egd=file:/dev/./urandom</arg>
<arg>org.springframework.boot.loader.PropertiesLauncher</arg>
</exec>
private String userCookie;
protected void configure(HttpSecurity http) throws Exception {
- logger.debug("configure");
+ logger.debug("configure: portalapi.username {}", userName);
// A chain of ".and()" always baffles me
http.authorizeRequests().anyRequest().authenticated();
// http.csrf().csrfTokenRepository(CookieCsrfTokenRepository.withHttpOnlyFalse());
@GetMapping(VERSION_METHOD)
// No role required
public SuccessTransport getVersion() {
- logger.debug("getVersion");
+ // These endpoints are invoked repeatedly by K8S
+ logger.trace("getVersion");
return new SuccessTransport(200,
DashboardApplication.getImplementationVersion(MethodHandles.lookup().lookupClass()));
}
@GetMapping(HEALTH_METHOD)
// No role required
public SuccessTransport getHealth() {
- logger.debug("getHealth");
+ // These endpoints are invoked repeatedly by K8S
+ logger.trace("getHealth");
return new SuccessTransport(200, "Dashboard is healthy!");
}
public void configure(WebSecurity web) throws Exception {
// This disables Spring security, but not the app's filter.
web.ignoring().antMatchers(WebSecurityConfiguration.OPEN_PATHS);
+ web.ignoring().antMatchers("/", "/csrf"); // allow swagger-ui to load
}
@Bean