Repository navigation
fix(connections): refuse Verify CA without a CA certificate on Kafka, Oracle and Teradata - #3171
Merged
Merged
Conversation
… Oracle and Teradata
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
…-ca-kafka-oracle-teradata # Conflicts: # CHANGELOG.md
…-ca-kafka-oracle-teradata # Conflicts: # CHANGELOG.md
datlechin
deleted the
fix/verify-ca-without-ca-kafka-oracle-teradata
branch
September 28, 2026 19:58
4 of 6 tasks
This branch was successfully deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Found while fixing #3166 (#3168). The Trino and ClickHouse half of the same defect is fixed in #3168.
Root cause
With SSL Mode Verify CA and no CA certificate file, these drivers checked the server certificate against the system roots with no hostname check. So any publicly trusted certificate, for any host, was accepted:
.noHostnameVerificationwith the default trust roots (KafkaConnection.swift).TableProOracleCore(OracleTLSMapper.swift). The iOS app uses it too.SecPolicyCreateSSL(true, nil)with no anchors (TeradataTLSTransport.swift). An unreadable CA file also silently widened to the system roots, in both verify modes.The macOS form blocks Verify CA without a CA, but deep links, URL import (
sslmode=verify-cahas no CA parameter), sync and older saved connections reach the drivers anyway. libpq refuses the same combination ("weak sslmode may not be used with sslrootcert=system").What changed
Each driver refuses Verify CA with no (trimmed-empty) CA path before any network I/O, with a message that says what to do:
KafkaError.verifyCaNeedsCertificate. The check runs inmakeSSLContext, which every broker dial goes through, and once at the top ofKafkaCluster.connect(), so the error is not repeated per bootstrap server.OracleCoreError.certificateAuthorityRequiredfromOracleTLSMapper. Blank CA paths now count as missing.TeradataTrustPolicyininit, before theNWConnectionexists, so "system roots without a hostname" can no longer be expressed. An unreadable or non-certificate CA file now throws its own error, in both verify modes, checked before the missing-CA case.iOS (Oracle):
verifyCais dropped from the iOS Oracle integration test config.Verify Identity with no CA keeps working on all three drivers: the system trust store plus a hostname check.
Verification
verify.sh build: PASS.verify.sh plugins(AllPlugins, which compiles the registry-only Kafka, Oracle and Teradata plugins): PASS.KafkaTLSConfigurationTests(6) andTeradataSSLMappingTests(5).swift testTableProOracle: 183/183, including 4 newOracleTLSMapperTestsand 1 inOracleCoreErrorMessageTests. TableProCore--filter Teradata: 62/62, including 7 newTeradataTLSTests.ARCHS=arm64,CODE_SIGNING_ALLOWED=NO): 34/34, including 6 new form and mapping cases.swiftlint --stricton the changed files: clean apart from 4 existing violations inConnectionFormViewModel.swiftthat the base file already has.check-ios-shared-isolation.pyand the docs checks pass.Not changed, reported
/etc/ssl/cert.pemwithcheck certificate hostname = no, and the form has no CA field. Same fail-open, left as a follow-up.Reviewed by the design critique that preceded implementation (Codex is out of quota until 2026-09-29). The critique found the iOS Oracle impact.