BAEL-19790: Fix encryption issues after Spring Boot 2 migration

This commit is contained in:
Krzysiek 2019-12-03 22:23:28 +01:00
parent 8251877375
commit fdb0932706
3 changed files with 19 additions and 4 deletions

View File

@ -0,0 +1,15 @@
package com.baeldung.spring.cloud.config.server;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
@Configuration
public class SecurityConfigurer extends WebSecurityConfigurerAdapter {
@Override
public void configure(HttpSecurity http) throws Exception {
http.csrf()
.disable()
.httpBasic();
}
}

View File

@ -3,7 +3,3 @@ spring.cloud.config.server.git.uri=file:///${user.home}/config-repo
spring.cloud.config.server.git.clone-on-start=true
spring.security.user.name=root
spring.security.user.password=s3cr3t
#encrypt.key-store.location=classpath:/config-server.jks
#encrypt.key-store.password=my-s70r3-s3cr3t
#encrypt.key-store.alias=config-server-key
#encrypt.key-store.secret=my-k34-s3cr3t

View File

@ -0,0 +1,4 @@
encrypt.keyStore.location=classpath:/config-server.jks
encrypt.keyStore.password=my-s70r3-s3cr3t
encrypt.keyStore.alias=config-server-key
encrypt.keyStore.secret=my-k34-s3cr3t