From b499451615de584b3794a30707f6f5b467ad0f68 Mon Sep 17 00:00:00 2001 From: Felix Dittrich <31076102+f11h@users.noreply.github.com> Date: Thu, 17 Nov 2022 16:04:12 +0100 Subject: [PATCH] Chore: Update CWA-Parent to 1.7.1 (#137) * Update CWA-Parent to 1.7.1 * Update Checkstyle Config to > 3.2.0 * Update OWASP Supression File * Fix Checkstyle Co-authored-by: github-actions --- codestyle/checkstyle.xml | 2 +- owasp/suppressions.xml | 24 ++++++++++++------- pom.xml | 2 +- .../testresult/TestResultController.java | 13 +++++----- 4 files changed, 24 insertions(+), 17 deletions(-) diff --git a/codestyle/checkstyle.xml b/codestyle/checkstyle.xml index d385615..f4843f0 100644 --- a/codestyle/checkstyle.xml +++ b/codestyle/checkstyle.xml @@ -282,7 +282,7 @@ value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/> - + diff --git a/owasp/suppressions.xml b/owasp/suppressions.xml index e81b18c..7f19396 100644 --- a/owasp/suppressions.xml +++ b/owasp/suppressions.xml @@ -1,8 +1,12 @@ + - Bug only affects not used features of embedded tomcat. - CVE-2022-23181 + Updating of Keycloak Lib is not possible at the moment. Security risk is not affecting CWA components. + CVE-2022-1466 + CVE-2022-1970 + CVE-2021-20323 + CVE-2020-14359 @@ -16,17 +20,21 @@ - CVE warns about usage of sample code in Tomcat Repository. This code is not used by us. - CVE-2022-34305 + False Positive matches + CVE-2022-31514 + CVE-2022-2393 - False Positive - CVE-2022-31514 + Keycloak Update is currently not possible + CVE-2022-1245 + CVE-2022-2668 + CVE-2021-3827 - False Positive (https://github.com/jeremylong/DependencyCheck/issues/4693) - CVE-2022-2393 + SnakeYML False Positive Matcher (CVE is up to 1.32, but also matches for 1.33) + CVE-2022-38752 + diff --git a/pom.xml b/pom.xml index 146a6b7..22e8866 100644 --- a/pom.xml +++ b/pom.xml @@ -9,7 +9,7 @@ app.coronawarn cwa-parent - 1.6 + 1.7.1 diff --git a/src/main/java/app/coronawarn/testresult/TestResultController.java b/src/main/java/app/coronawarn/testresult/TestResultController.java index e302a74..a0a67b4 100644 --- a/src/main/java/app/coronawarn/testresult/TestResultController.java +++ b/src/main/java/app/coronawarn/testresult/TestResultController.java @@ -21,7 +21,6 @@ package app.coronawarn.testresult; -import app.coronawarn.testresult.model.PocNatResult; import app.coronawarn.testresult.model.PocNatResultList; import app.coronawarn.testresult.model.QuickTestResultList; import app.coronawarn.testresult.model.TestResult; @@ -69,7 +68,7 @@ public class TestResultController { responseCode = "200", description = "Content exists", content = @Content(schema = @Schema(implementation = TestResultResponse.class)) - ) + ) } ) @PostMapping( @@ -103,7 +102,7 @@ public ResponseEntity result( @ApiResponse( responseCode = "204", description = "No content, testresult successfully inserted" - ) + ) } ) @PostMapping( @@ -137,7 +136,7 @@ public ResponseEntity results( @ApiResponse( responseCode = "200", description = "Ok, RAT result inserted successfully." - ) + ) } ) @PostMapping( @@ -169,7 +168,7 @@ public ResponseEntity quickTestResult( @ApiResponse( responseCode = "204", description = "No content, RAT result(s) inserted successfully." - ) + ) } ) @PostMapping( @@ -203,7 +202,7 @@ public ResponseEntity quicktestResults( @ApiResponse( responseCode = "200", description = "Ok, PoC-NAT result inserted successfully." - ) + ) } ) @PostMapping( @@ -235,7 +234,7 @@ public ResponseEntity pocnatResult( @ApiResponse( responseCode = "204", description = "No content, PoC-NAT result(s) inserted successfully." - ) + ) } ) @PostMapping(