Skip to content

Commit dcda600

Browse files
committed
Update payload xsd dependency due to vulnerabilities
1 parent 02b600d commit dcda600

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

ebms-payload/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ dependencies {
4848
implementation(libs.hoplite.core)
4949
implementation(libs.hoplite.hocon)
5050
implementation(libs.ebxml.protokoll)
51-
implementation(libs.emottak.payload.xsd)
5251
implementation(libs.jakarta.xml.bind.api)
5352
implementation(libs.jaxb.runtime)
5453
implementation(libs.bundles.logging)

ebms-provider/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ dependencies {
6969
implementation("com.sun.xml.messaging.saaj:saaj-impl:3.0.2")
7070
implementation(libs.emottak.payload.xsd)
7171
implementation(libs.emottak.utils)
72-
// implementation("org.glassfish.jaxb:jaxb-runtime:4.0.3") // TODO: Latest. Krever at protokoll oppdateres
7372
implementation(libs.ebxml.protokoll)
7473
implementation(libs.token.validation.ktor.v3)
7574

settings.gradle.kts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ dependencyResolutionManagement {
7070
library("jackson-dataformat-yaml", "com.fasterxml.jackson.dataformat", "jackson-dataformat-yaml").versionRef("fasterxml-jackson")
7171

7272
library("ebxml-protokoll", "no.nav.emottak:ebxml-protokoll:0.0.7")
73-
library("emottak-payload-xsd", "no.nav.emottak:emottak-payload-xsd:0.0.10")
73+
library("emottak-payload-xsd", "no.nav.emottak:emottak-payload-xsd:0.0.11")
7474
library("emottak-utils", "no.nav.emottak", "emottak-utils").versionRef("emottak-utils")
7575
library("hikari", "com.zaxxer:HikariCP:5.0.1")
7676
library("labai-jsr305x-annotations", "com.github.labai:labai-jsr305x-annotations:0.0.2")
@@ -124,6 +124,22 @@ dependencyResolutionManagement {
124124

125125
repositories {
126126
mavenCentral()
127+
exclusiveContent {
128+
// emottak-payload-xsd depends on org.apache.cxf:cxf-rt-ws-security:4.1.4 which depends on opensaml-saml-impl:5.1.6
129+
// This is not available in maven central
130+
forRepository {
131+
maven {
132+
name = "Shibboleth"
133+
url = uri("https://build.shibboleth.net/maven/releases/")
134+
}
135+
}
136+
filter {
137+
// Only allow specific group/artifact from Shibboleth
138+
includeGroup("org.opensaml")
139+
includeGroup("net.shibboleth")
140+
// Add more includeGroup or includeModule as needed
141+
}
142+
}
127143
maven {
128144
name = "Ebxml protokoll"
129145
url = uri("https://maven.pkg.github.com/navikt/ebxml-protokoll")

0 commit comments

Comments
 (0)