Skip to content

chore(destination-postgres): update base image to java-connector-base 2.0.6 - #94004

Merged
Matt Bayley (mwbayley) merged 3 commits into
masterfrom
rodi/destination-postgres-base-2.0.5
Nov 25, 2026
Merged

Matt Bayley (mwbayley) merged 3 commits into
masterfrom
rodi/destination-postgres-base-2.0.5

Conversation

@rodireich

@rodireich Rodi Reich Zilberman (rodireich) commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

What

Re-pins destination-postgres to java-connector-base 2.0.6. Three lines change, no code or dependency change:

  • metadata.yaml: baseImage 2.0.4 -> docker.io/airbyte/java-connector-base:2.0.6@sha256:9cee8a7a66b4a8240c0a33f9666c82704fded89b33bbe8fa462a3a2ade25f667 (pinned by digest)
  • metadata.yaml: dockerImageTag 3.0.24 -> 3.0.25
  • docs/integrations/destinations/postgres.md: changelog row for 3.0.25

Why

java-connector-base 2.0.6 (#93980) refreshes the Amazon Linux 2023 packages and moves Corretto from 21.0.10 to 21.0.13. The connector picks up those fixes only when it is rebuilt on the new base.

Base 2.0.6 instead of 2.0.5

This PR first pinned java-connector-base 2.0.5. The linux/amd64 variant of 2.0.5 contains an empty,
root-owned /home/airbyte/.cache directory, so the connector user cannot write to ~/.cache on amd64.
2.0.6 is the same image without it: on amd64 only that directory (and /root/.cache) is gone, on arm64
the file list is identical, and both have the same 149 packages at the same versions, the same
Corretto 21.0.13.1.2 and the same image configuration. The Dockerfile change is in #93980.

The validation below ran on 2026-11-20 on the image built on 2.0.5. On 2026-11-23 the image was rebuilt on
2.0.6 and checked against the 2.0.5 build:

  • Build: assemble succeeds for linux/arm64 and linux/amd64, and the build log shows BASE_IMAGE set to the 2.0.6 digest.
  • JDK: java -version reports Corretto 21.0.13.1.2 on both architectures.
  • spec (arm64): identical to the 2.0.5 build as parsed JSON.
  • Files: all 117 files under /airbyte have the same sha256 in both builds, on both architectures, except the connector jar. Inside that jar the only differing entry is the bundled metadata.yaml, and its only differing line is baseImage.
  • .cache: the arm64 image has no .cache directory. The amd64 image was built locally under emulation on an Apple Silicon Mac, and that build itself created an empty, root-owned /home/airbyte/.cache/rosetta (its timestamp is the time of the build, and the 2.0.6 amd64 base has no .cache directory). This shows the directory no longer comes from the base; the locally built amd64 image is not evidence that ~/.cache is writable on amd64.
  • Vulnerability scan (amd64): same result as on the 2.0.5 build, see the line under the table below.
  • OS and trust store: Amazon Linux 2023.12.20261112 and 135 CA certificates in the JDK trust store, the same as the 2.0.5 build.
  • check with the require config against PostgreSQL 16.16 in Docker with TLS enabled (self-signed certificate): SUCCEEDED on both builds with no warning or error logged, and the server log shows TLSv1.3 / TLS_AES_256_GCM_SHA384 for every connection. The other check cases and the write were not repeated.

How it was validated

All of this ran locally on 2026-11-20, comparing the published airbyte/destination-postgres:3.0.24 with an image built from this branch on java-connector-base 2.0.5. In this section, "new image" and "new base" refer to that build.

  • Build: ./gradlew :airbyte-integrations:connectors:destination-postgres:assemble succeeded on the 2.0.5 base, for linux/arm64 and linux/amd64. The build log showed FROM resolved to the 2.0.5 digest.
  • JDK: java -version reports Corretto 21.0.10.7.1 in 3.0.24 and Corretto 21.0.13.1.2 in the new image. The OS goes from Amazon Linux 2023.10.20260202 to 2023.12.20261112.
  • spec: the SPEC message is identical (jq -S diff is empty).
  • check, against PostgreSQL 16.16 in Docker with a self-signed CA and a server certificate whose SAN is the server hostname. The user owns the database and the target schema. No config presents a client certificate.
Server Config 3.0.24 New image
TLS enabled ssl: false SUCCEEDED SUCCEEDED
TLS enabled require SUCCEEDED SUCCEEDED
TLS enabled verify-ca (server CA) SUCCEEDED SUCCEEDED
TLS enabled verify-full (server CA, hostname in SAN) SUCCEEDED SUCCEEDED
TLS enabled verify-full, hostname not in SAN FAILED (expected: hostname could not be verified) FAILED (same cause)
TLS enabled verify-ca, unrelated CA FAILED (expected: PKIX path building failed) FAILED (same cause)
TLS 1.2 only require SUCCEEDED SUCCEEDED
TLS 1.2 only verify-ca (server CA) SUCCEEDED SUCCEEDED
TLS 1.2 only, static-RSA cipher only (AES256-GCM-SHA384) require FAILED (handshake_failure) FAILED (same cause)
TLS disabled ssl: false SUCCEEDED SUCCEEDED
TLS disabled require FAILED (expected: "The server does not support SSL.") FAILED (same cause)

The PostgreSQL server log (log_connections=on) shows the same thing for both images: every successful check against the TLS-enabled server connected with TLSv1.3 / TLS_AES_256_GCM_SHA384, and against the TLS 1.2-only server with TLSv1.2 / ECDHE-RSA-AES256-GCM-SHA384. This is the JDK TLS stack (pgjdbc over JSSE), so the handshake did run on the new JDK. With ssl: false the driver still negotiates TLS when the server offers it; the plain-text path is the "TLS disabled" row.

The static-RSA row fails on both images because TLS_RSA_* is already in jdk.tls.disabledAlgorithms on Corretto 21.0.10; the new base does not change this.

In all four failing cases the connector reports HikariPool-1 - Connection is not available, request timed out after about 60 seconds, on both images; the cause above is in the stack trace.

After removing timestamps and random identifiers, the output of the two images is identical in 9 of the 11 cases. In the other two (unrelated CA, static-RSA) the only difference is line numbers of JDK-internal frames in the stack trace. The new image logs no warning or error that 3.0.24 does not.

  • write: 3 records, a stream state and the stream COMPLETE status, with the verify-full config, append mode. Both images return the state with committedRecordsCount: 3, and a SELECT shows the 3 rows in the final table. The normalised logs are identical.

Vulnerability scan

Grype 0.122.1, vulnerability DB built 2026-11-20, linux/amd64 for both images. Counts are unique (vulnerability, package) pairs. The "after" columns were measured on the image built on 2.0.5.

Severity Base rpms before Base rpms after Jars before Jars after
Critical 0 0 0 0
High 108 0 1 1
Medium 31 0 9 9
Low 6 0 0 0
Negligible 0 0 0 0
Unknown 0 0 0 0
Total 145 0 10 10

Rescan on 2026-11-23 of the linux/amd64 image rebuilt on 2.0.6 (Grype 0.122.1, vulnerability DB built 2026-11-23): 0 findings in base rpms and the same 10 findings in jars, equal to the "after" columns above.

Resolved: 145 (all in base image rpms). Introduced: 0. The 10 jar findings are the same before and after (log4j 2.24.0, guava 33.4.0-jre, commons-lang3 3.17.0, eddsa 0.3.0); this PR does not change dependencies.

Not run

  • CI: GitHub Actions was disabled on the repository on 2026-11-20, when the validation ran. As of 2026-11-23, no GitHub Actions workflow has run on the current head (ae64ecf2438), so there is no connector build or test result. The only other status on the head is Vercel – airbyte-kotlin-cdk (success), which does not build or test the connector.
  • The Gradle integration and acceptance suites.
  • Configs with a client certificate (client_certificate / client_key in verify-full), SSH tunnel configs, and the allow and prefer SSL modes.
  • write beyond one small append sync: no dedup or overwrite mode, no large volume.
  • A managed PostgreSQL service (RDS, Cloud SQL, Azure). The CA trust store in the new base is smaller (135 certificates, 143 in 3.0.24); the checks above used a private CA supplied in the config, so they do not exercise the default trust store.

🤖 Generated with Claude Code

… 2.0.5

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rodireich Rodi Reich Zilberman (rodireich) added the java-connector-base-2.0.5 Connector re-pinned to java-connector-base 2.0.5 label Nov 20, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rodireich Rodi Reich Zilberman (rodireich) added java-connector-base-2.0.6 Connector re-pinned to java-connector-base 2.0.6 and removed java-connector-base-2.0.5 Connector re-pinned to java-connector-base 2.0.5 labels Nov 24, 2026
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rodireich Rodi Reich Zilberman (rodireich) changed the title chore(destination-postgres): update base image to java-connector-base 2.0.5 chore(destination-postgres): update base image to java-connector-base 2.0.6 Nov 24, 2026

@mwbayley Matt Bayley (mwbayley) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mwbayley
Matt Bayley (mwbayley) marked this pull request as ready for review November 25, 2026 19:03
@mwbayley
Matt Bayley (mwbayley) requested a review from a team as a code owner November 25, 2026 19:03
@mwbayley
Matt Bayley (mwbayley) merged commit 6c80f02 into master Nov 25, 2026
2 checks passed
@mwbayley
Matt Bayley (mwbayley) deleted the rodi/destination-postgres-base-2.0.5 branch November 25, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

java-connector-base-2.0.6 Connector re-pinned to java-connector-base 2.0.6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants