From 184cc769a1df28b4e2f1b4263566b230aaa34d16 Mon Sep 17 00:00:00 2001
From: Felix Dittrich <31076102+f11h@users.noreply.github.com>
Date: Wed, 11 May 2022 08:55:41 +0200
Subject: [PATCH] Mysql and Keycloak Building Block + Several new Dependencies
(#2)
* Add Dependency Building Block for Keycloak
Add Dependency Building Block for MySQL
Add Prometheus and Micrometer to Spring Boot Building Block
Add CBOR Cose Dependency Versions
Add Digital Covid Certificate Versions
Add PDF Box Version
Add Google ZXing Versions
Add OpenCSV Version
Add Keycloak Versions
Add ModelMapper Version
App Spring Rest Docs Plugin Versions
* Update OWASP Dependency Check
Add Keycloak 15.1.1 to OWASP Suppression
---
keycloak/pom.xml | 40 +++++++++++++++
mysql-persistence/pom.xml | 44 ++++++++++++++++
owasp/suppressions.xml | 6 +++
pom.xml | 103 +++++++++++++++++++++++++++++++++++++-
spring-boot/pom.xml | 11 ++++
5 files changed, 203 insertions(+), 1 deletion(-)
create mode 100644 keycloak/pom.xml
create mode 100644 mysql-persistence/pom.xml
diff --git a/keycloak/pom.xml b/keycloak/pom.xml
new file mode 100644
index 0000000..8daf18b
--- /dev/null
+++ b/keycloak/pom.xml
@@ -0,0 +1,40 @@
+
+
+ 4.0.0
+
+ cwa-parent-keycloak
+ pom
+
+ cwa-parent-keycloak
+ CWA Backend Service Parent POM with dependencies for Services using Keycloak.
+
+
+ app.coronawarn
+ cwa-parent
+ 1.0-SNAPSHOT
+ ../pom.xml
+
+
+
+
+ ${project.parent.groupId}
+ cwa-parent-spring-boot
+ ${project.parent.version}
+ pom
+
+
+
+ org.keycloak
+ keycloak-spring-boot-starter
+
+
+ com.c4-soft.springaddons
+ spring-security-oauth2-test-addons
+
+
+ com.c4-soft.springaddons
+ spring-security-oauth2-test-webmvc-addons
+
+
+
diff --git a/mysql-persistence/pom.xml b/mysql-persistence/pom.xml
new file mode 100644
index 0000000..14353c1
--- /dev/null
+++ b/mysql-persistence/pom.xml
@@ -0,0 +1,44 @@
+
+
+ 4.0.0
+
+ cwa-parent-mysql-persistence
+ pom
+
+ cwa-parent-mysql-persistence
+ CWA Backend Service Parent POM with dependencies for Services building on MySQL.
+
+
+ app.coronawarn
+ cwa-parent
+ 1.0-SNAPSHOT
+ ../pom.xml
+
+
+
+
+ ${project.parent.groupId}
+ cwa-parent-spring-boot
+ ${project.parent.version}
+ pom
+
+
+ org.springframework.boot
+ spring-boot-starter-data-jpa
+
+
+ com.h2database
+ h2
+
+
+ mysql
+ mysql-connector-java
+ runtime
+
+
+ org.liquibase
+ liquibase-core
+
+
+
diff --git a/owasp/suppressions.xml b/owasp/suppressions.xml
index 442d77a..442c5fc 100644
--- a/owasp/suppressions.xml
+++ b/owasp/suppressions.xml
@@ -1,4 +1,10 @@
+
+ Updating of Keycloak Lib is not possible at the moment. Security risk is not affecting CWA components.
+ CVE-2022-1466
+ CVE-2021-20323
+
+
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index c60ba33..5f9bd1c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -40,7 +40,9 @@
feign
validation
shedlock
+ keycloak
psql-persistence
+ mysql-persistence
@@ -91,6 +93,9 @@
lombok
1.18.24
+
+
+
net.javacrumbs.shedlock
shedlock-spring
@@ -134,6 +139,7 @@
runtime
+
org.liquibase
@@ -146,6 +152,82 @@
2.1.212
runtime
+
+
+
+
+ com.upokecenter
+ cbor
+ 4.5.2
+
+
+
+
+
+ eu.europa.ec.dgc
+ dgc-lib
+ 1.3.1
+
+
+
+
+
+ org.apache.pdfbox
+ pdfbox
+ 2.0.26
+
+
+
+
+
+ com.google.zxing
+ core
+ 3.5.0
+
+
+ com.google.zxing
+ javase
+ 3.5.0
+
+
+
+
+
+ com.opencsv
+ opencsv
+ 5.6
+
+
+
+
+
+ org.keycloak
+ keycloak-spring-boot-starter
+ 15.1.1
+
+
+ org.keycloak
+ keycloak-admin-client
+ 15.1.1
+
+
+ com.c4-soft.springaddons
+ spring-security-oauth2-test-addons
+ 3.1.15-jdk11
+
+
+ com.c4-soft.springaddons
+ spring-security-oauth2-test-webmvc-addons
+ 3.1.15-jdk11
+
+
+
+
+
+ org.modelmapper.extensions
+ modelmapper-spring
+ 3.1.0
+
@@ -241,12 +323,31 @@
org.owasp
dependency-check-maven
- 7.0.4
+ 7.1.0
./owasp/suppressions.xml
true
+
+
+
+ org.asciidoctor
+ asciidoctor-maven-plugin
+ 1.5.8
+
+
+ org.springframework.restdocs
+ spring-restdocs-asciidoctor
+ 2.0.6.RELEASE
+
+
+
+
+ org.springdoc
+ springdoc-openapi-maven-plugin
+ 1.1
+
diff --git a/spring-boot/pom.xml b/spring-boot/pom.xml
index e2af25a..d12f9e6 100644
--- a/spring-boot/pom.xml
+++ b/spring-boot/pom.xml
@@ -35,6 +35,17 @@
org.springframework.cloud
spring-cloud-starter-sleuth
+
+ io.micrometer
+ micrometer-registry-prometheus
+
+
+
+
+ org.springframework.boot
+ spring-boot-configuration-processor
+ true
+