-
Notifications
You must be signed in to change notification settings - Fork 270
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debezium-connector-spanner-3.0/3.0.4-r0: cve remediation (#36050)
GHSA-5mg8-w23w-74h3 relates to guava, which comes from a transitive dependnecy: ``` [INFO] --- dependency:3.1.1:tree (default-cli) @ debezium-connector-spanner --- [INFO] io.debezium:debezium-connector-spanner:jar:3.0.4.Final [INFO] \- com.google.cloud:google-cloud-spanner:jar:6.30.1:compile [INFO] \- com.google.guava:guava:jar:32.0.0-jre:import ``` Remediating this involved bumping `google-cloud-spanner`, as opposed to attempting to bump guava as a top-level dependency in this application. It seems to have remediated the CVE. I also expanded the tests to try and cover a functional test from melange. -------------- debezium-connector-spanner-3.0/3.0.4-r0: fix GHSA-5mg8-w23w-74h3 Advisory data: https://github.com/wolfi-dev/advisories/blob/main/debezium-connector-spanner-3.0.advisories.yaml --------- Signed-off-by: Mark McCormick <[email protected]> Co-authored-by: octo-sts[bot] <[email protected]> Co-authored-by: Mark McCormick <[email protected]>
- Loading branch information
1 parent
024518f
commit ed7883c
Showing
4 changed files
with
35 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/** | ||
* Simple test to verify the Debezium Spanner Connector is properly installed and loadable. | ||
* Tests class loading functionality by attempting to load a core connector class. | ||
*/ | ||
public class SimpleTest { | ||
public static void main(String[] args) { | ||
try { | ||
Class<?> cls = Class.forName("io.debezium.connector.spanner.SpannerStreamingChangeEventSource"); | ||
System.out.println("Successfully loaded class"); | ||
System.exit(0); | ||
} catch (Exception e) { | ||
e.printStackTrace(); | ||
System.exit(1); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
patches: | ||
# Mitigates CVE-2023-1428, CVE-2023-32732 and CVE-2023-32731 | ||
- groupId: io.grpc | ||
artifactId: grpc-protobuf | ||
version: 1.53.0 | ||
scope: import | ||
type: jar | ||
# Mitigates CVE-2024-7254 | ||
- groupId: com.google.protobuf | ||
artifactId: protobuf-java | ||
version: 3.25.5 | ||
# Mitigates CVE-2020-8908 and CVE-2023-2976 | ||
# FIXME: Resulting build faiure after major version bump to 32.1.2-jre. | ||
# - groupId: com.google.guava | ||
# artifactId: guava | ||
# version: 32.1.2-jre | ||
- groupId: io.grpc | ||
artifactId: grpc-protobuf | ||
version: 1.53.0 | ||
scope: import | ||
type: jar | ||
- groupId: com.google.protobuf | ||
artifactId: protobuf-java | ||
version: 3.25.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
|
||
properties: | ||
- property: google.cloud.spanner.version | ||
value: "6.82.0" |