From b6d098df5833606860a9e1aea7d6d942906a2809 Mon Sep 17 00:00:00 2001
From: bergmann-dierk <84856774+bergmann-dierk@users.noreply.github.com>
Date: Tue, 31 May 2022 12:02:59 +0200
Subject: [PATCH] Increase column size for validation rule signature to max
20_000 (#187)
* Increase column size for validation rule signature to max 20_000
* update vulnerable dependencies
* update owasp suppresions
---
owasp/suppressions.xml | 8 ++++++++
pom.xml | 6 +++---
.../ec/dgc/gateway/entity/ValidationRuleEntity.java | 2 +-
src/main/resources/db/changelog.xml | 1 +
...ase-column-size-for-validation-rule-signature.xml | 12 ++++++++++++
5 files changed, 25 insertions(+), 4 deletions(-)
create mode 100644 src/main/resources/db/changelog/increase-column-size-for-validation-rule-signature.xml
diff --git a/owasp/suppressions.xml b/owasp/suppressions.xml
index 2ed151a0..bb94a97b 100644
--- a/owasp/suppressions.xml
+++ b/owasp/suppressions.xml
@@ -8,5 +8,13 @@
False Positive
CVE-2016-1000027
+
+ False Positive - Updated to newest version
+ CVE-2018-14335
+
+
+ False Positive
+ CVE-2020-5408
+
diff --git a/pom.xml b/pom.xml
index 1e91c9ae..310fa3f0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -7,7 +7,7 @@
org.springframework.boot
spring-boot-starter-parent
- 2.6.7
+ 2.6.8
@@ -44,7 +44,7 @@
UTF-8
7.1.0
- 5.6.2
+ 5.6.5
1.18.22
4.9.0
1.6.6
@@ -55,7 +55,7 @@
1.14.0
4.33.0
2021.0.1
-
2.1.210
+ 2.1.212
5.6.5.Final
1.3.1
diff --git a/src/main/java/eu/europa/ec/dgc/gateway/entity/ValidationRuleEntity.java b/src/main/java/eu/europa/ec/dgc/gateway/entity/ValidationRuleEntity.java
index 984462c0..ead22415 100644
--- a/src/main/java/eu/europa/ec/dgc/gateway/entity/ValidationRuleEntity.java
+++ b/src/main/java/eu/europa/ec/dgc/gateway/entity/ValidationRuleEntity.java
@@ -60,7 +60,7 @@ public class ValidationRuleEntity {
/**
* CMS containing the whole JSON validation rule.
*/
- @Column(name = "signature", nullable = false, length = 10000)
+ @Column(name = "signature", nullable = false, length = 20000)
private String cms;
/**
diff --git a/src/main/resources/db/changelog.xml b/src/main/resources/db/changelog.xml
index 3b4c70e8..4a97c4dd 100644
--- a/src/main/resources/db/changelog.xml
+++ b/src/main/resources/db/changelog.xml
@@ -18,4 +18,5 @@
+
diff --git a/src/main/resources/db/changelog/increase-column-size-for-validation-rule-signature.xml b/src/main/resources/db/changelog/increase-column-size-for-validation-rule-signature.xml
new file mode 100644
index 00000000..51be5a86
--- /dev/null
+++ b/src/main/resources/db/changelog/increase-column-size-for-validation-rule-signature.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
\ No newline at end of file