Skip to content

Commit 5304fb2

Browse files
FACT-1979 CVE/Dependencies Updates (#3332)
* - puts flyway version into property * - updates with new flyway and postgresql version properties * - updates google guava * - updates commons-lang3 * - updates commons-email * - updates chart dependencies * Bumping chart version/ fixing aliases * - fix commons email version * - updates azurerm version * - updates terraform version * - updates azure servicebus version * - updates spring versions * - tries to remove jackson databind suppression * - updates azure storage blob version - tries to remove azure suppression * - updates test to look for new latest azure storage version * - puts back suppression of azure * - updates azurite version * - updates test to check for latest azure storage version * - removes dependabot yaml * - reverts azure blob storage version * - updates spring cloud starter version --------- Co-authored-by: hmcts-jenkins-a-to-c <62422075+hmcts-jenkins-a-to-c[bot]@users.noreply.github.com>
1 parent 45f4db7 commit 5304fb2

File tree

6 files changed

+31
-31
lines changed

6 files changed

+31
-31
lines changed

.github/dependabot.yml

-6
This file was deleted.

build.gradle

+24-17
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
buildscript {
2+
ext {
3+
flywayVersion = '10.17.3'
4+
postgresqlVersion = '42.7.4'
5+
}
26
dependencies {
3-
classpath("org.postgresql:postgresql:42.7.3")
4-
classpath("org.flywaydb:flyway-database-postgresql:10.13.0")
7+
classpath("org.postgresql:postgresql:$postgresqlVersion") // must be compatible with flyway version
8+
classpath("org.flywaydb:flyway-database-postgresql:$flywayVersion") // flyway dependency/plugin versions must always match
59
}
610
}
711

@@ -11,8 +15,8 @@ plugins {
1115
id 'pmd'
1216
id 'jacoco'
1317
id 'io.spring.dependency-management' version '1.1.6'
14-
id 'org.flywaydb.flyway' version '10.13.0'
15-
id 'org.springframework.boot' version '3.2.7'
18+
id 'org.flywaydb.flyway' version "$flywayVersion"
19+
id 'org.springframework.boot' version '3.3.3'
1620
id 'org.owasp.dependencycheck' version '9.1.0'
1721
id 'com.github.ben-manes.versions' version '0.51.0'
1822
id 'org.sonarqube' version '4.4.1.3373'
@@ -234,7 +238,9 @@ def versions = [
234238
junitPlatform: '1.9.2',
235239
mockitoJupiter: '3.3.3',
236240
reformLogging: '6.0.1',
237-
apiguardian : '1.1.2'
241+
apiguardian : '1.1.2',
242+
flyway: "$flywayVersion",
243+
postgresql: "$postgresqlVersion"
238244
]
239245

240246

@@ -262,14 +268,17 @@ dependencies {
262268
exclude group: 'javax.mail', module: 'mailapi'
263269
}
264270

265-
runtimeOnly group: 'org.flywaydb', name: 'flyway-database-postgresql', version: '10.13.0'
271+
runtimeOnly group: 'org.flywaydb', name: 'flyway-database-postgresql', version: versions.flyway
272+
implementation group: 'org.flywaydb', name: 'flyway-core', version: versions.flyway
273+
274+
implementation group: 'org.postgresql', name: 'postgresql', version: versions.postgresql
266275

267276
implementation group: 'net.javacrumbs.shedlock', name: 'shedlock-spring', version: '5.14.0'
268277
implementation group: 'net.javacrumbs.shedlock', name: 'shedlock-provider-jdbc', version: '5.14.0'
269278

270279
implementation group: 'com.azure', name: 'azure-storage-blob', version: '12.25.4'
271280

272-
implementation group: 'com.azure', name: 'azure-messaging-servicebus', version: '7.14.7'
281+
implementation group: 'com.azure', name: 'azure-messaging-servicebus', version: '7.17.3'
273282

274283
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
275284
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
@@ -281,14 +290,12 @@ dependencies {
281290
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-activemq'
282291

283292

284-
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.1.0'
293+
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign', version: '4.1.3'
285294
implementation group: 'io.github.openfeign', name: 'feign-httpclient', version: '13.3'
286295
implementation group: 'io.github.openfeign', name: 'feign-jackson', version: '13.3'
287296

288297
implementation group: 'com.github.java-json-tools', name: 'json-schema-validator', version: '2.2.14', withoutJavaxMailApi
289298

290-
implementation group: 'org.flywaydb', name: 'flyway-core', version: '10.13.0'
291-
implementation group: 'org.postgresql', name: 'postgresql', version: '42.7.3'
292299
// review following dependency after integrating db structure
293300
implementation group: 'io.hypersistence', name: 'hypersistence-utils-hibernate-63', version: '3.8.2'
294301

@@ -308,10 +315,10 @@ dependencies {
308315
implementation group: 'com.github.hmcts', name: 'idam-java-client', version: '3.0.3'
309316
implementation group: 'com.github.hmcts', name: 'ccd-case-document-am-client', version: '1.59'
310317

311-
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: '3.1.8'
318+
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-bootstrap', version: '3.1.9'
312319

313320

314-
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.14.0'
321+
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.17.0'
315322
implementation group: 'commons-io', name: 'commons-io', version: '2.16.1'
316323
// only used in uk.gov.hmcts.reform.bulkscanprocessor.validation.OcrValidator
317324
// single import: io.vavr.control.Try
@@ -322,7 +329,7 @@ dependencies {
322329

323330
implementation group: 'io.github.resilience4j', name: 'resilience4j-spring-boot2', version: '2.2.0'
324331
implementation group: 'com.launchdarkly', name: 'launchdarkly-java-server-sdk', version: '7.5.0'
325-
implementation group: 'com.google.guava', name: 'guava', version: '33.2.1-jre'
332+
implementation group: 'com.google.guava', name: 'guava', version: '33.3.0-jre'
326333

327334

328335
testImplementation libraries.junit5
@@ -334,9 +341,9 @@ dependencies {
334341
testImplementation group: 'com.icegreen', name: 'greenmail', version: '1.6.15', {
335342
exclude group: 'junit', module: 'junit'
336343
}
337-
testImplementation group: 'org.apache.commons', name: 'commons-email', version: '1.5'
344+
testImplementation group: 'org.apache.commons', name: 'commons-email', version: '1.6.0'
338345
testImplementation group: 'io.github.netmikey.logunit', name: 'logunit-core', version: '2.0.0'
339-
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.3', classifier: 'all', {
346+
testImplementation group: 'com.github.hmcts', name: 'fortify-client', version: '1.4.4', classifier: 'all', {
340347
exclude group: 'commons-io', module: 'commons-io'
341348
exclude group: 'org.apache.commons', module: 'commons-lang3'
342349
}
@@ -346,14 +353,14 @@ dependencies {
346353

347354
integrationTestImplementation sourceSets.main.runtimeClasspath
348355
integrationTestImplementation sourceSets.test.runtimeClasspath
349-
integrationTestImplementation group: 'org.springframework.cloud', name: 'spring-cloud-contract-wiremock', version: '4.1.1', {
356+
integrationTestImplementation group: 'org.springframework.cloud', name: 'spring-cloud-contract-wiremock', version: '4.1.4', {
350357
exclude group: 'com.github.tomakehurst', module: 'wiremock-jre8-standalone'
351358
}
352359
integrationTestImplementation group: 'org.wiremock', name: 'wiremock-standalone', version: '3.4.2'
353360
integrationTestImplementation group: 'org.testcontainers', name: 'postgresql', version: '1.19.7', {
354361
exclude group: 'junit', module: 'junit'
355362
}
356-
integrationTestImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: '1.19.7'
363+
integrationTestImplementation group: 'org.testcontainers', name: 'junit-jupiter', version: '1.20.1'
357364
integrationTestImplementation group: 'com.revinate', name: 'assertj-json', version: '1.2.0'
358365

359366
functionalTestImplementation sourceSets.main.runtimeClasspath

charts/bulk-scan-processor/Chart.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
name: bulk-scan-processor
22
apiVersion: v2
33
home: https://github.com/hmcts/bulk-scan-processor
4-
version: 1.0.28
4+
version: 1.0.29
55
description: HMCTS Bulk scan processor service
66
maintainers:
77
- name: HMCTS BSP Team
88
99
dependencies:
1010
- name: java
11-
version: 5.2.0
11+
version: 5.2.1
1212
repository: https://hmctspublic.azurecr.io/helm/v1/repo/
1313
- name: servicebus
14-
version: 1.0.6
14+
version: 1.0.7
1515
repository: https://hmctspublic.azurecr.io/helm/v1/repo/
1616
condition: servicebus.enabled
1717
- name: blobstorage
18-
version: 2.0.1
18+
version: 2.0.2
1919
repository: https://hmctspublic.azurecr.io/helm/v1/repo/
2020
condition: blobstorage.enabled

config/owasp/suppressions.xml

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<suppressions xmlns="https://jeremylong.github.io/DependencyCheck/dependency-suppression.1.3.xsd">
33
<suppress>
4-
<notes>Wait until a version exists that fixes these; they are all related</notes>
5-
<cve>CVE-2023-35116</cve>
4+
<notes>Wait for newer version of Azure Messaging Servicebus</notes>
65
<cve>CVE-2023-36052</cve>
76
</suppress>
87
</suppressions>

infrastructure/.terraform-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.6.6
1+
1.9.0

infrastructure/state.tf

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ terraform {
44
required_providers {
55
azurerm = {
66
source = "hashicorp/azurerm"
7-
version = "3.106.0"
7+
version = "3.110.0"
88
}
99
azuread = {
1010
source = "hashicorp/azuread"

0 commit comments

Comments
 (0)