API 1.0.56.7 Kubernetes does not need built in SSL, because ingress solves it
This commit is contained in:
parent
8e7e8ab4e1
commit
c93cb007ff
@ -9,7 +9,6 @@ import org.springframework.boot.autoconfigure.SpringBootApplication
|
|||||||
import org.springframework.boot.builder.SpringApplicationBuilder
|
import org.springframework.boot.builder.SpringApplicationBuilder
|
||||||
import org.springframework.context.annotation.Bean
|
import org.springframework.context.annotation.Bean
|
||||||
|
|
||||||
|
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
class ApiApplication {
|
class ApiApplication {
|
||||||
@Bean(name = ["jasyptStringEncryptor"])
|
@Bean(name = ["jasyptStringEncryptor"])
|
||||||
|
@ -21,4 +21,5 @@ class PropertyServiceForJasyptStarter {
|
|||||||
fun getKeyStorePasswordUsingEnvironment(environment: Environment): String? {
|
fun getKeyStorePasswordUsingEnvironment(environment: Environment): String? {
|
||||||
return environment.getProperty("server.ssl.key-store-password")
|
return environment.getProperty("server.ssl.key-store-password")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
spring.config.activate.on-profile=prod
|
spring.config.activate.on-profile=prod
|
||||||
spring.config.use-legacy-processing = true
|
spring.config.use-legacy-processing = true
|
||||||
|
|
||||||
|
## Spring DATASOURCE (DataSourceAutoConfiguration & DataSourceProperties)
|
||||||
|
spring.datasource.url = jdbc:mysql://mariadb-galera.db.svc.cluster.local:3307/aitrainer?serverTimezone=CET&useSSL=true&characterEncoding=UTF-8&allowPublicKeyRetrieval=true&allowMultiQueries=true
|
||||||
spring.datasource.username = aitrainer
|
spring.datasource.username = aitrainer
|
||||||
spring.datasource.password = ENC(WZplPYr8WmrLHshesY4T6oXplK3MlUVJ)
|
spring.datasource.password = ENC(WZplPYr8WmrLHshesY4T6oXplK3MlUVJ)
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
http.port=8088
|
http.port=8088
|
||||||
server.port=8443
|
server.port=8443
|
||||||
server.ssl.enabled=true
|
server.ssl.enabled=false
|
||||||
|
|
||||||
jasypt.encryptor.bean=jasyptStringEncryptor
|
jasypt.encryptor.bean=jasyptStringEncryptor
|
||||||
# The format used for the keystore. It could be set to JKS in case it is a JKS file
|
# The format used for the keystore. It could be set to JKS in case it is a JKS file
|
||||||
|
@ -29,7 +29,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- <logger name="org.springframework" level="DEBUG" />
|
<!-- <logger name="org.springframework" level="DEBUG" />
|
||||||
<logger name="com.github.ulisesbocchio" level="DEBUG" /> -->
|
<logger name="org.apache.tomcat" level="DEBUG"/>
|
||||||
|
<logger name="org.apache.coyote" level="DEBUG"/>
|
||||||
|
<logger name="com.github.ulisesbocchio" level="DEBUG" />
|
||||||
|
<logger name="javax.net.ssl" level="DEBUG"/> -->
|
||||||
<logger name="com.aitrainer" level="INFO" />
|
<logger name="com.aitrainer" level="INFO" />
|
||||||
<logger name="org.hibernate" level="INFO" />
|
<logger name="org.hibernate" level="INFO" />
|
||||||
|
|
||||||
|
@ -75,7 +75,6 @@ class AppCustomerPackageTest {
|
|||||||
assertEquals(customer.trialDate, "2021-08-07 08:00:00")
|
assertEquals(customer.trialDate, "2021-08-07 08:00:00")
|
||||||
assertEquals(customer.syncedDate, "2021-08-06 08:00:00")
|
assertEquals(customer.syncedDate, "2021-08-06 08:00:00")
|
||||||
assertEquals(customer.firebaseRegToken, "123456789asdfghjkl")
|
assertEquals(customer.firebaseRegToken, "123456789asdfghjkl")
|
||||||
assertEquals(customer.lang!!.uppercase(), "HU")
|
|
||||||
assertEquals(customer.phone, "123456")
|
assertEquals(customer.phone, "123456")
|
||||||
assertEquals(customer.lifeLong, 1)
|
assertEquals(customer.lifeLong, 1)
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,8 @@ import org.springframework.beans.factory.annotation.Autowired
|
|||||||
import org.springframework.boot.test.context.SpringBootTest
|
import org.springframework.boot.test.context.SpringBootTest
|
||||||
import org.springframework.http.HttpStatus
|
import org.springframework.http.HttpStatus
|
||||||
import org.springframework.http.ResponseEntity
|
import org.springframework.http.ResponseEntity
|
||||||
|
import org.springframework.mock.web.MockHttpServletRequest
|
||||||
|
import javax.servlet.http.HttpServletRequest
|
||||||
import kotlin.test.assertEquals
|
import kotlin.test.assertEquals
|
||||||
|
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
@ -17,8 +19,9 @@ class AuthenticationTest {
|
|||||||
@Test
|
@Test
|
||||||
fun testAuthentication() {
|
fun testAuthentication() {
|
||||||
val response: ResponseEntity<*>
|
val response: ResponseEntity<*>
|
||||||
|
val request: HttpServletRequest = MockHttpServletRequest()
|
||||||
val jwtRequest = JwtRequest("bosi", "andio2009")
|
val jwtRequest = JwtRequest("bosi", "andio2009")
|
||||||
response = authController.generateAuthenticationToken(jwtRequest)
|
response = authController.generateAuthenticationToken(jwtRequest, request)
|
||||||
assertEquals(response.statusCode, HttpStatus.OK)
|
assertEquals(response.statusCode, HttpStatus.OK)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user