BAEL-19790: Fix encryption issues after Spring Boot 2 migration
This commit is contained in:
parent
8251877375
commit
fdb0932706
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
|
@ -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.cloud.config.server.git.clone-on-start=true
|
||||||
spring.security.user.name=root
|
spring.security.user.name=root
|
||||||
spring.security.user.password=s3cr3t
|
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
|
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue