diff --git a/Dockerfile b/Dockerfile
index e93c528f8..74204e3a7 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,18 +1,18 @@
-FROM adoptopenjdk/openjdk11:jdk-11.0.6_10-alpine-slim as builder
+FROM eclipse-temurin:17.0.6_10-jdk-focal as builder
WORKDIR /usr/src/app
ADD . .
RUN ./mvnw package -Dmaven.test.skip=true
#####################################################
-FROM adoptopenjdk/openjdk11:jre-11.0.6_10-alpine
+FROM eclipse-temurin:17.0.6_10-jre-focal
COPY --from=builder /usr/src/app/target/ego-*-exec.jar /usr/bin/ego.jar
ENV EGO_USER ego
ENV EGO_USER_ID 9999
ENV EGO_GROUP_ID 9999
ENV EGO_DIR /target
-RUN addgroup -S -g $EGO_GROUP_ID $EGO_USER \
- && adduser -S -u $EGO_USER_ID -G $EGO_USER $EGO_USER \
+RUN addgroup --system --gid $EGO_GROUP_ID $EGO_USER \
+ && adduser --system --uid $EGO_USER_ID --ingroup $EGO_USER $EGO_USER \
&& mkdir -p $EGO_DIR \
&& chown -R $EGO_USER $EGO_DIR
USER $EGO_USER_ID
diff --git a/Jenkinsfile b/Jenkinsfile
index 8d59c0e17..cdfc58f00 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -12,10 +12,10 @@ spec:
- name: maven
command: ['cat']
tty: true
- image: maven:3.6.3-openjdk-11
+ image: maven:3.8.5-openjdk-17
- name: jdk
tty: true
- image: adoptopenjdk/openjdk11:jdk-11.0.7_10-alpine-slim
+ image: eclipse-temurin:17.0.6_10-jdk-focal
env:
- name: DOCKER_HOST
value: tcp://localhost:2375
diff --git a/pom.xml b/pom.xml
index 37bcaa7d7..a3c387522 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,16 +13,18 @@
org.springframework.boot
spring-boot-starter-parent
- 2.5.12
+ 3.0.5
UTF-8
UTF-8
- 11
+ 17
1.2.0.Final
- 1.34.1
+ 1.54.0
+
+ 6.0.3
@@ -34,6 +36,14 @@
org.springframework.boot
spring-boot-starter-actuator
+
+
+
+ org.springframework.security
+ spring-security-oauth2-authorization-server
+ 1.0.1
+
+
org.springframework.boot
spring-boot-starter-security
@@ -52,8 +62,8 @@
org.springframework.security
- spring-security-oauth2-authorization-server
- 0.2.1
+ spring-security-oauth2-client
+ 6.0.3
@@ -68,34 +78,31 @@
org.projectlombok
lombok
- 1.18.16
+
+ 1.18.22
true
-
-
- io.springfox
- springfox-swagger2
- 2.9.2
- compile
-
-
- org.mapstruct
- mapstruct
-
-
-
+
- io.springfox
- springfox-swagger-ui
- 2.9.2
- compile
+ org.springdoc
+ springdoc-openapi-starter-webmvc-ui
+ 2.1.0
org.springframework.boot
spring-boot-starter-test
test
-
+
+ com.auth0
+ java-jwt
+ 4.4.0
+
+
+ com.auth0
+ jwks-rsa
+ 0.22.0
+
org.springframework.security
spring-security-test
@@ -135,25 +142,25 @@
com.vladmihalcea
- hibernate-types-52
- 2.2.2
+ hibernate-types-60
+ 2.21.1
org.testcontainers
testcontainers
- 1.15.1
+ 1.18.0
org.testcontainers
jdbc
- 1.15.1
+ 1.18.0
org.testcontainers
postgresql
- 1.15.1
+ 1.18.0
commons-io
@@ -166,11 +173,11 @@
2.6
-
+
org.flywaydb
flyway-core
- 5.2.4
+ 9.16.3
@@ -241,8 +248,18 @@
org.springframework.cloud
spring-cloud-starter-vault-config
- 2.1.2.RELEASE
+ 4.0.1
+
+
+ org.springframework.cloud
+ spring-cloud-starter-bootstrap
+ 4.0.1
+
+ org.springframework.cloud
+ spring-cloud-vault-config-databases
+ 4.0.1
+
com.amazonaws
aws-java-sdk-core
@@ -304,6 +321,13 @@
test
+
+
+ javax.annotation
+ javax.annotation-api
+ 1.3.2
+
+
org.junit.vintage
junit-vintage-engine
@@ -356,7 +380,7 @@
spring-boot-maven-plugin
exec
- true
+
@@ -389,12 +413,16 @@
org.xolstice.maven.plugins
protobuf-maven-plugin
- 0.5.1
+ 0.6.1
com.google.protobuf:protoc:3.12.0:exe:${os.detected.classifier}
+
+
${basedir}/src/main/proto
grpc-java
- io.grpc:protoc-gen-grpc-java:1.34.1:exe:${os.detected.classifier}
+ io.grpc:protoc-gen-grpc-java:1.54.0:exe:${os.detected.classifier}
+
+
@@ -434,7 +462,7 @@
org.springframework.cloud
spring-cloud-dependencies
- 2020.0.4
+ 2022.0.2
pom
import
diff --git a/src/main/bin/wrapper.log b/src/main/bin/wrapper.log
deleted file mode 100644
index f45ee9531..000000000
--- a/src/main/bin/wrapper.log
+++ /dev/null
@@ -1,221 +0,0 @@
-FATAL | wrapper | 2017/11/15 11:19:39 | Unable to open configuration file: /Users/jeubank/workspace/overture-stack/ego/src/main/bin/../conf/wrapper.conf (No such file or directory)
-FATAL | wrapper | 2017/11/15 11:19:39 | Current working directory: /Users/jeubank/workspace/overture-stack/ego/src/main/bin
-WARN | wrapper | 2017/11/15 11:20:22 | Unable to write to the configured log directory: ../logs (No such file or directory)
-WARN | wrapper | 2017/11/15 11:20:22 | The directory does not exist.
-WARN | wrapper | 2017/11/15 11:20:22 | Unable to write to the configured log file: ../logs/wrapper.20171115.log (No such file or directory)
-WARN | wrapper | 2017/11/15 11:20:22 | Falling back to the default file in the current working directory: wrapper.log
-WARN | wrapper | 2017/11/15 11:20:22 | The version of the script (3.5.19) doesn't match the version of this Wrapper (3.5.21). This might cause some problems
-STATUS | wrapper | 2017/11/15 11:20:22 | --> Wrapper Started as Daemon
-STATUS | wrapper | 2017/11/15 11:20:22 | Java Service Wrapper Community Edition 64-bit 3.5.21
-STATUS | wrapper | 2017/11/15 11:20:22 | Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
-STATUS | wrapper | 2017/11/15 11:20:22 | http://wrapper.tanukisoftware.com
-STATUS | wrapper | 2017/11/15 11:20:22 |
-STATUS | wrapper | 2017/11/15 11:20:22 | Launching a JVM...
-INFO | jvm 1 | 2017/11/15 11:20:23 | WrapperManager: Initializing...
-INFO | jvm 1 | 2017/11/15 11:20:23 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 1 | 2017/11/15 11:20:23 |
-INFO | jvm 1 | 2017/11/15 11:20:23 | WrapperSimpleApp Usage:
-INFO | jvm 1 | 2017/11/15 11:20:23 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 1 | 2017/11/15 11:20:23 |
-INFO | jvm 1 | 2017/11/15 11:20:23 | Where:
-INFO | jvm 1 | 2017/11/15 11:20:23 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 1 | 2017/11/15 11:20:23 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 1 | 2017/11/15 11:20:23 | application.
-ERROR | wrapper | 2017/11/15 11:20:25 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:20:29 | Launching a JVM...
-INFO | jvm 2 | 2017/11/15 11:20:30 | WrapperManager: Initializing...
-INFO | jvm 2 | 2017/11/15 11:20:30 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 2 | 2017/11/15 11:20:30 |
-INFO | jvm 2 | 2017/11/15 11:20:30 | WrapperSimpleApp Usage:
-INFO | jvm 2 | 2017/11/15 11:20:30 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 2 | 2017/11/15 11:20:30 |
-INFO | jvm 2 | 2017/11/15 11:20:30 | Where:
-INFO | jvm 2 | 2017/11/15 11:20:30 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 2 | 2017/11/15 11:20:30 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 2 | 2017/11/15 11:20:30 | application.
-ERROR | wrapper | 2017/11/15 11:20:32 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:20:36 | Launching a JVM...
-INFO | jvm 3 | 2017/11/15 11:20:37 | WrapperManager: Initializing...
-INFO | jvm 3 | 2017/11/15 11:20:37 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 3 | 2017/11/15 11:20:37 |
-INFO | jvm 3 | 2017/11/15 11:20:37 | WrapperSimpleApp Usage:
-INFO | jvm 3 | 2017/11/15 11:20:37 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 3 | 2017/11/15 11:20:37 |
-INFO | jvm 3 | 2017/11/15 11:20:37 | Where:
-INFO | jvm 3 | 2017/11/15 11:20:37 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 3 | 2017/11/15 11:20:37 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 3 | 2017/11/15 11:20:37 | application.
-ERROR | wrapper | 2017/11/15 11:20:39 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:20:44 | Launching a JVM...
-INFO | jvm 4 | 2017/11/15 11:20:44 | WrapperManager: Initializing...
-INFO | jvm 4 | 2017/11/15 11:20:44 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 4 | 2017/11/15 11:20:44 |
-INFO | jvm 4 | 2017/11/15 11:20:44 | WrapperSimpleApp Usage:
-INFO | jvm 4 | 2017/11/15 11:20:44 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 4 | 2017/11/15 11:20:44 |
-INFO | jvm 4 | 2017/11/15 11:20:44 | Where:
-INFO | jvm 4 | 2017/11/15 11:20:44 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 4 | 2017/11/15 11:20:44 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 4 | 2017/11/15 11:20:44 | application.
-ERROR | wrapper | 2017/11/15 11:20:46 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:20:51 | Launching a JVM...
-INFO | jvm 5 | 2017/11/15 11:20:51 | WrapperManager: Initializing...
-INFO | jvm 5 | 2017/11/15 11:20:51 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 5 | 2017/11/15 11:20:51 |
-INFO | jvm 5 | 2017/11/15 11:20:51 | WrapperSimpleApp Usage:
-INFO | jvm 5 | 2017/11/15 11:20:51 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 5 | 2017/11/15 11:20:51 |
-INFO | jvm 5 | 2017/11/15 11:20:51 | Where:
-INFO | jvm 5 | 2017/11/15 11:20:51 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 5 | 2017/11/15 11:20:51 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 5 | 2017/11/15 11:20:51 | application.
-ERROR | wrapper | 2017/11/15 11:20:53 | JVM exited while loading the application.
-FATAL | wrapper | 2017/11/15 11:20:53 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
-FATAL | wrapper | 2017/11/15 11:20:53 | There may be a configuration problem: please check the logs.
-STATUS | wrapper | 2017/11/15 11:20:53 | <-- Wrapper Stopped
-WARN | wrapper | 2017/11/15 11:21:01 | Unable to write to the configured log directory: ../logs (No such file or directory)
-WARN | wrapper | 2017/11/15 11:21:01 | The directory does not exist.
-WARN | wrapper | 2017/11/15 11:21:01 | Unable to write to the configured log file: ../logs/wrapper.20171115.log (No such file or directory)
-WARN | wrapper | 2017/11/15 11:21:01 | Falling back to the default file in the current working directory: wrapper.log
-WARN | wrapper | 2017/11/15 11:21:01 | The version of the script (3.5.19) doesn't match the version of this Wrapper (3.5.21). This might cause some problems
-STATUS | wrapper | 2017/11/15 11:21:01 | --> Wrapper Started as Daemon
-STATUS | wrapper | 2017/11/15 11:21:01 | Java Service Wrapper Community Edition 64-bit 3.5.21
-STATUS | wrapper | 2017/11/15 11:21:01 | Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
-STATUS | wrapper | 2017/11/15 11:21:01 | http://wrapper.tanukisoftware.com
-STATUS | wrapper | 2017/11/15 11:21:01 |
-STATUS | wrapper | 2017/11/15 11:21:01 | Launching a JVM...
-INFO | jvm 1 | 2017/11/15 11:21:02 | WrapperManager: Initializing...
-INFO | jvm 1 | 2017/11/15 11:21:02 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 1 | 2017/11/15 11:21:02 |
-INFO | jvm 1 | 2017/11/15 11:21:02 | WrapperSimpleApp Usage:
-INFO | jvm 1 | 2017/11/15 11:21:02 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 1 | 2017/11/15 11:21:02 |
-INFO | jvm 1 | 2017/11/15 11:21:02 | Where:
-INFO | jvm 1 | 2017/11/15 11:21:02 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 1 | 2017/11/15 11:21:02 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 1 | 2017/11/15 11:21:02 | application.
-ERROR | wrapper | 2017/11/15 11:21:04 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:08 | Launching a JVM...
-INFO | jvm 2 | 2017/11/15 11:21:09 | WrapperManager: Initializing...
-INFO | jvm 2 | 2017/11/15 11:21:09 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 2 | 2017/11/15 11:21:09 |
-INFO | jvm 2 | 2017/11/15 11:21:09 | WrapperSimpleApp Usage:
-INFO | jvm 2 | 2017/11/15 11:21:09 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 2 | 2017/11/15 11:21:09 |
-INFO | jvm 2 | 2017/11/15 11:21:09 | Where:
-INFO | jvm 2 | 2017/11/15 11:21:09 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 2 | 2017/11/15 11:21:09 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 2 | 2017/11/15 11:21:09 | application.
-ERROR | wrapper | 2017/11/15 11:21:11 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:15 | Launching a JVM...
-INFO | jvm 3 | 2017/11/15 11:21:16 | WrapperManager: Initializing...
-INFO | jvm 3 | 2017/11/15 11:21:16 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 3 | 2017/11/15 11:21:16 |
-INFO | jvm 3 | 2017/11/15 11:21:16 | WrapperSimpleApp Usage:
-INFO | jvm 3 | 2017/11/15 11:21:16 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 3 | 2017/11/15 11:21:16 |
-INFO | jvm 3 | 2017/11/15 11:21:16 | Where:
-INFO | jvm 3 | 2017/11/15 11:21:16 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 3 | 2017/11/15 11:21:16 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 3 | 2017/11/15 11:21:16 | application.
-ERROR | wrapper | 2017/11/15 11:21:18 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:22 | Launching a JVM...
-INFO | jvm 4 | 2017/11/15 11:21:23 | WrapperManager: Initializing...
-INFO | jvm 4 | 2017/11/15 11:21:23 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 4 | 2017/11/15 11:21:23 |
-INFO | jvm 4 | 2017/11/15 11:21:23 | WrapperSimpleApp Usage:
-INFO | jvm 4 | 2017/11/15 11:21:23 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 4 | 2017/11/15 11:21:23 |
-INFO | jvm 4 | 2017/11/15 11:21:23 | Where:
-INFO | jvm 4 | 2017/11/15 11:21:23 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 4 | 2017/11/15 11:21:23 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 4 | 2017/11/15 11:21:23 | application.
-ERROR | wrapper | 2017/11/15 11:21:25 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:30 | Launching a JVM...
-INFO | jvm 5 | 2017/11/15 11:21:30 | WrapperManager: Initializing...
-INFO | jvm 5 | 2017/11/15 11:21:30 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 5 | 2017/11/15 11:21:30 |
-INFO | jvm 5 | 2017/11/15 11:21:30 | WrapperSimpleApp Usage:
-INFO | jvm 5 | 2017/11/15 11:21:30 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 5 | 2017/11/15 11:21:30 |
-INFO | jvm 5 | 2017/11/15 11:21:30 | Where:
-INFO | jvm 5 | 2017/11/15 11:21:30 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 5 | 2017/11/15 11:21:30 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 5 | 2017/11/15 11:21:30 | application.
-ERROR | wrapper | 2017/11/15 11:21:32 | JVM exited while loading the application.
-FATAL | wrapper | 2017/11/15 11:21:32 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
-FATAL | wrapper | 2017/11/15 11:21:32 | There may be a configuration problem: please check the logs.
-STATUS | wrapper | 2017/11/15 11:21:32 | <-- Wrapper Stopped
-WARN | wrapper | 2017/11/15 11:21:42 | Unable to write to the configured log directory: ../logs (No such file or directory)
-WARN | wrapper | 2017/11/15 11:21:42 | The directory does not exist.
-WARN | wrapper | 2017/11/15 11:21:42 | Unable to write to the configured log file: ../logs/wrapper.20171115.log (No such file or directory)
-WARN | wrapper | 2017/11/15 11:21:42 | Falling back to the default file in the current working directory: wrapper.log
-WARN | wrapper | 2017/11/15 11:21:42 | The version of the script (3.5.19) doesn't match the version of this Wrapper (3.5.21). This might cause some problems
-STATUS | wrapper | 2017/11/15 11:21:42 | --> Wrapper Started as Daemon
-STATUS | wrapper | 2017/11/15 11:21:42 | Java Service Wrapper Community Edition 64-bit 3.5.21
-STATUS | wrapper | 2017/11/15 11:21:42 | Copyright (C) 1999-2013 Tanuki Software, Ltd. All Rights Reserved.
-STATUS | wrapper | 2017/11/15 11:21:42 | http://wrapper.tanukisoftware.com
-STATUS | wrapper | 2017/11/15 11:21:42 |
-STATUS | wrapper | 2017/11/15 11:21:42 | Launching a JVM...
-INFO | jvm 1 | 2017/11/15 11:21:42 | WrapperManager: Initializing...
-INFO | jvm 1 | 2017/11/15 11:21:42 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 1 | 2017/11/15 11:21:42 |
-INFO | jvm 1 | 2017/11/15 11:21:42 | WrapperSimpleApp Usage:
-INFO | jvm 1 | 2017/11/15 11:21:42 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 1 | 2017/11/15 11:21:42 |
-INFO | jvm 1 | 2017/11/15 11:21:42 | Where:
-INFO | jvm 1 | 2017/11/15 11:21:42 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 1 | 2017/11/15 11:21:42 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 1 | 2017/11/15 11:21:42 | application.
-ERROR | wrapper | 2017/11/15 11:21:44 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:49 | Launching a JVM...
-INFO | jvm 2 | 2017/11/15 11:21:49 | WrapperManager: Initializing...
-INFO | jvm 2 | 2017/11/15 11:21:49 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 2 | 2017/11/15 11:21:49 |
-INFO | jvm 2 | 2017/11/15 11:21:49 | WrapperSimpleApp Usage:
-INFO | jvm 2 | 2017/11/15 11:21:49 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 2 | 2017/11/15 11:21:49 |
-INFO | jvm 2 | 2017/11/15 11:21:49 | Where:
-INFO | jvm 2 | 2017/11/15 11:21:49 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 2 | 2017/11/15 11:21:49 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 2 | 2017/11/15 11:21:49 | application.
-ERROR | wrapper | 2017/11/15 11:21:52 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:21:56 | Launching a JVM...
-INFO | jvm 3 | 2017/11/15 11:21:56 | WrapperManager: Initializing...
-INFO | jvm 3 | 2017/11/15 11:21:56 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 3 | 2017/11/15 11:21:56 |
-INFO | jvm 3 | 2017/11/15 11:21:56 | WrapperSimpleApp Usage:
-INFO | jvm 3 | 2017/11/15 11:21:56 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 3 | 2017/11/15 11:21:56 |
-INFO | jvm 3 | 2017/11/15 11:21:56 | Where:
-INFO | jvm 3 | 2017/11/15 11:21:56 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 3 | 2017/11/15 11:21:56 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 3 | 2017/11/15 11:21:56 | application.
-ERROR | wrapper | 2017/11/15 11:21:59 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:22:03 | Launching a JVM...
-INFO | jvm 4 | 2017/11/15 11:22:03 | WrapperManager: Initializing...
-INFO | jvm 4 | 2017/11/15 11:22:04 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 4 | 2017/11/15 11:22:04 |
-INFO | jvm 4 | 2017/11/15 11:22:04 | WrapperSimpleApp Usage:
-INFO | jvm 4 | 2017/11/15 11:22:04 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 4 | 2017/11/15 11:22:04 |
-INFO | jvm 4 | 2017/11/15 11:22:04 | Where:
-INFO | jvm 4 | 2017/11/15 11:22:04 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 4 | 2017/11/15 11:22:04 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 4 | 2017/11/15 11:22:04 | application.
-ERROR | wrapper | 2017/11/15 11:22:06 | JVM exited while loading the application.
-STATUS | wrapper | 2017/11/15 11:22:10 | Launching a JVM...
-INFO | jvm 5 | 2017/11/15 11:22:11 | WrapperManager: Initializing...
-INFO | jvm 5 | 2017/11/15 11:22:11 | WrapperSimpleApp Error: Unable to locate the class org.springframework.boot.loader.JarLauncher : java.lang.ClassNotFoundException: org.springframework.boot.loader.JarLauncher
-INFO | jvm 5 | 2017/11/15 11:22:11 |
-INFO | jvm 5 | 2017/11/15 11:22:11 | WrapperSimpleApp Usage:
-INFO | jvm 5 | 2017/11/15 11:22:11 | java org.tanukisoftware.wrapper.WrapperSimpleApp {app_class{/app_method}} [app_arguments]
-INFO | jvm 5 | 2017/11/15 11:22:11 |
-INFO | jvm 5 | 2017/11/15 11:22:11 | Where:
-INFO | jvm 5 | 2017/11/15 11:22:11 | app_class: The fully qualified class name of the application to run.
-INFO | jvm 5 | 2017/11/15 11:22:11 | app_arguments: The arguments that would normally be passed to the
-INFO | jvm 5 | 2017/11/15 11:22:11 | application.
-ERROR | wrapper | 2017/11/15 11:22:13 | JVM exited while loading the application.
-FATAL | wrapper | 2017/11/15 11:22:13 | There were 5 failed launches in a row, each lasting less than 300 seconds. Giving up.
-FATAL | wrapper | 2017/11/15 11:22:13 | There may be a configuration problem: please check the logs.
-STATUS | wrapper | 2017/11/15 11:22:13 | <-- Wrapper Stopped
diff --git a/src/main/java/bio/overture/ego/AuthorizationServiceMain.java b/src/main/java/bio/overture/ego/AuthorizationServiceMain.java
index 1fbc9b94a..9ef972a81 100644
--- a/src/main/java/bio/overture/ego/AuthorizationServiceMain.java
+++ b/src/main/java/bio/overture/ego/AuthorizationServiceMain.java
@@ -18,8 +18,10 @@
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.cache.annotation.EnableCaching;
@SpringBootApplication
+@EnableCaching
public class AuthorizationServiceMain {
public static void main(String[] args) {
diff --git a/src/main/java/bio/overture/ego/config/AppSecureServerConfig.java b/src/main/java/bio/overture/ego/config/AppSecureServerConfig.java
new file mode 100644
index 000000000..426615aca
--- /dev/null
+++ b/src/main/java/bio/overture/ego/config/AppSecureServerConfig.java
@@ -0,0 +1,90 @@
+/*
+ * Copyright (c) 2017. The Ontario Institute for Cancer Research. All rights reserved.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package bio.overture.ego.config;
+
+import bio.overture.ego.security.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.boot.autoconfigure.security.SecurityProperties;
+import org.springframework.context.annotation.*;
+import org.springframework.core.annotation.Order;
+import org.springframework.http.HttpMethod;
+import org.springframework.security.config.annotation.web.builders.HttpSecurity;
+import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
+import org.springframework.security.config.http.SessionCreationPolicy;
+import org.springframework.security.oauth2.server.authorization.config.annotation.web.configurers.OAuth2AuthorizationServerConfigurer;
+import org.springframework.security.web.SecurityFilterChain;
+import org.springframework.security.web.authentication.www.BasicAuthenticationFilter;
+
+@Configuration
+@EnableWebSecurity
+@Import(OAuth2ClientConfig.class)
+@Profile("auth")
+public class AppSecureServerConfig {
+
+ OAuth2AuthorizationServerConfigurer authorizationServerConfigurer =
+ new OAuth2AuthorizationServerConfigurer();
+ @Autowired JWTAuthorizationFilter authorizationFilter;
+
+ @Bean
+ @Order(SecurityProperties.BASIC_AUTH_ORDER - 6)
+ public SecurityFilterChain appFilterChain(HttpSecurity http) throws Exception {
+ return http.csrf()
+ .disable()
+ .apply(authorizationServerConfigurer)
+ .and()
+ .securityMatcher(
+ "/",
+ "/favicon.ico",
+ "/swagger-ui/**",
+ "/v3/api-docs/**",
+ "/swagger-resources/**",
+ "/configuration/ui",
+ "/configuration/**",
+ "/v2/api**",
+ "/webjars/**",
+ "/actuator/**",
+ "/o/**",
+ "/oauth/token",
+ "/oauth/token/verify",
+ "/oauth/token/public_key")
+ .authorizeRequests()
+ .requestMatchers(
+ "/",
+ "/favicon.ico",
+ "/swagger-ui/**",
+ "/v3/api-docs/**",
+ "/swagger-resources/**",
+ "/configuration/ui",
+ "/configuration/**",
+ "/v2/api**",
+ "/webjars/**",
+ "/actuator/**",
+ "/oauth/token/verify",
+ "/oauth/token/public_key")
+ .permitAll()
+ .requestMatchers(HttpMethod.OPTIONS, "/**")
+ .permitAll()
+ .anyRequest()
+ .authenticated()
+ .and()
+ .addFilterBefore(authorizationFilter, BasicAuthenticationFilter.class)
+ .sessionManagement()
+ .sessionCreationPolicy(SessionCreationPolicy.STATELESS)
+ .and()
+ .build();
+ }
+}
diff --git a/src/main/java/bio/overture/ego/config/AuthorizationServerConfig.java b/src/main/java/bio/overture/ego/config/AuthorizationServerConfig.java
index a3f33602b..d46580d20 100644
--- a/src/main/java/bio/overture/ego/config/AuthorizationServerConfig.java
+++ b/src/main/java/bio/overture/ego/config/AuthorizationServerConfig.java
@@ -16,7 +16,7 @@
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.jwt.JwtDecoder;
import org.springframework.security.oauth2.jwt.NimbusJwtDecoder;
-import org.springframework.security.oauth2.server.authorization.config.ProviderSettings;
+import org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings;
@Configuration
public class AuthorizationServerConfig {
@@ -48,7 +48,11 @@ public JwtDecoder jwtDecoder(@Autowired TokenSigner tokenSigner) {
}
@Bean
- public ProviderSettings providerSettings(@Value("${token.issuer}") String issuer) {
- return ProviderSettings.builder().tokenEndpoint("/oauth/token").issuer(issuer).build();
+ public AuthorizationServerSettings providerSettings(@Value("${token.issuer}") String issuer) {
+
+ return AuthorizationServerSettings.builder()
+ .tokenEndpoint("/oauth/token")
+ .issuer(issuer)
+ .build();
}
}
diff --git a/src/main/java/bio/overture/ego/config/InitializationConfig.java b/src/main/java/bio/overture/ego/config/InitializationConfig.java
index 76b28054b..83c9d1511 100644
--- a/src/main/java/bio/overture/ego/config/InitializationConfig.java
+++ b/src/main/java/bio/overture/ego/config/InitializationConfig.java
@@ -1,11 +1,11 @@
package bio.overture.ego.config;
import bio.overture.ego.model.enums.ApplicationType;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Size;
import java.util.ArrayList;
import java.util.List;
-import javax.validation.constraints.NotBlank;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Size;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
diff --git a/src/main/java/bio/overture/ego/config/OAuth2AccessTokenResponseConverterWithDefaults.java b/src/main/java/bio/overture/ego/config/OAuth2AccessTokenResponseConverterWithDefaults.java
index ff4693a2c..f6d2bd7d8 100644
--- a/src/main/java/bio/overture/ego/config/OAuth2AccessTokenResponseConverterWithDefaults.java
+++ b/src/main/java/bio/overture/ego/config/OAuth2AccessTokenResponseConverterWithDefaults.java
@@ -14,40 +14,43 @@
// oauth2 spec.
// https://github.com/spring-projects/spring-security/issues/5983
public class OAuth2AccessTokenResponseConverterWithDefaults
- implements Converter