How to get airbyte to trust certificates emitted b...
# ask-ai
x
How to get airbyte to trust certificates emitted by a known CA in a private PKI, either when connecting to sources or targets?
k
Airbyte does not currently provide a built-in, user-friendly way to upload or configure custom CA certificates for connectors (sources or destinations) via the UI or standard configuration options. This limitation affects scenarios where you need Airbyte to trust certificates issued by a private PKI or internal CA. Current Workarounds: 1. Custom Docker Image: The most common workaround is to build a custom Docker image for the connector you need, adding your CA certificate to the Java truststore inside the image. This approach has been used successfully for connectors like MongoDB, Kafka, and Elasticsearch. The general steps are: - Extend the official Airbyte connector image in a Dockerfile. - Copy your CA certificate into the image. - Use
keytool
to import the certificate into the Java truststore. - Build and use this custom image in your Airbyte deployment. Example for MongoDB or Elasticsearch:
Copy code
dockerfile    FROM airbyte/source-mongodb-v2    COPY ./ca.pem /local/    RUN $JAVA_HOME/bin/keytool -import -noprompt -trustcacerts -alias myCA -file /local/ca.pem -keystore $JAVA_HOME/lib/security/cacerts -storepass changeit
This method is referenced in several community discussions and GitHub issues, and is currently the only reliable way to add trust for private CAs in Airbyte connectors [[Forum: Self Signed Cert / Internal CA and Connectors](https://discuss.airbyte.io/t/983)], [[Forum: Loading certificates for MongoDB and ElasticSearch](https://discuss.airbyte.io/t/2501)], [[GitHub Issue: source-mongodb-v2 CertificateException](https://github.com/airbytehq/airbyte/issues/34731)]. 2. No Official Support for Disabling SSL Verification: There is no documented or supported way to disable SSL verification for most connectors. Some users have asked for this feature, but it is not generally available [[Forum: SSL certificate error](https://discuss.airbyte.io/t/1526)]. 3. Connector-Specific Features: Some connectors (e.g., Elasticsearch destination) have added support for custom CA certificates, but this is not consistent across all connectors. For example, the Elasticsearch destination added custom CA support in version 0.1.5, but the source connector does not have this feature [[Elasticsearch Destination Changelog](https://docs.airbyte.com/integrations/destinations/elasticsearch#changelog)], [[GitHub Issue: source-elasticsearch Private CA](https://github.com/airbytehq/airbyte/issues/49816)]. Summary: To have Airbyte trust certificates from a private PKI, you will need to patch the relevant connector Docker image(s) to include your CA certificate in the Java truststore. There is no out-of-the-box support for this in the UI or configuration files at this time. This is a known limitation, and several feature requests are open for better support in the future. If you need detailed steps for a specific connector, let me know!
x
@kapa.ai I'm getting an error "software.amazon.awssdk.crt.http.HttpException: System call failure". In the options of the connector, I do not see the URL style (virtual host style, or path style). How can it be specified?
k
A message from kapa.ai
The knowledge sources indicate that the S3 destination connector in Airbyte does not expose a direct option in the UI to specify the URL style (virtual host style or path style) for S3 endpoints. However, when configuring Airbyte's logging or storage backends (not the S3 destination connector itself), there is an environment variable called
S3_PATH_STYLE_ACCESS
that should be set to
true
if you are using MinIO or require path-style access. This is documented for Airbyte's platform configuration, not specifically for the S3 destination connector [[Configuring Airbyte: Logging](https://docs.airbyte.com/platform/operator-guides/configuring-airbyte#logging)]. For the S3 destination connector, the available configuration fields include S3 Endpoint, but there is no mention of a path style option in the connector's documented config fields or setup guides [[S3 Destination Reference](https://docs.airbyte.com/integrations/destinations/s3#reference)]. Additionally, several GitHub issues report that versions of the S3 destination connector after 1.4.0 have problems connecting to MinIO, often resulting in errors like
software.amazon.awssdk.crt.http.HttpException: System call failure
. These issues may be related to changes in the AWS SDK or how endpoints and path styles are handled, but there is no documented workaround or setting for path style in the connector options as of now [[GitHub Issue: destination-s3 fails with HttpException](https://github.com/airbytehq/airbyte/issues/55254)], [[GitHub Issue: destination-S3 does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197)]. Summary: - There is no documented way to specify URL style (virtual host or path style) in the S3 destination connector options. - The
S3_PATH_STYLE_ACCESS
environment variable is available for Airbyte's logging/storage backend, not for the S3 destination connector. - The error you are seeing is a known issue with recent versions of the S3 destination connector and MinIO, and may not be resolvable by changing the URL style at this time. If you need path-style access for MinIO, you may need to use an older version of the connector (such as 1.4.0), as newer versions have unresolved compatibility issues [[GitHub Issue: destination-S3 does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197)].
x
@kapa.ai Going back to the private pki issue, I did as you told, created my own image, added the crt of my root authority, run update-ca-trust. I checked that the certificate is in the OS bundle as well as in the java global cacerts. But nevertheless, I'm still getting "System call failure" with the destination-s3 connector.
k
A message from kapa.ai
Based on the knowledge sources, the error
software.amazon.awssdk.crt.http.HttpException: System call failure
with the Airbyte S3 destination connector (especially when using MinIO or a custom endpoint) is a known issue that has been reported by multiple users starting from version 1.5.0 and above. Users have confirmed that downgrading to version 1.4.0 resolves the issue, even when using custom certificates and trust stores. The error appears to be related to changes in the AWS SDK or the connector itself, rather than a problem with the certificate trust configuration [[destination-s3 fails with HttpException](https://github.com/airbytehq/airbyte/issues/55254)], [[destination-S3 does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197)]. There is no evidence in the knowledge sources that adding your CA certificate to the OS or Java truststore resolves this specific "System call failure" error in recent connector versions. The error persists even when the certificate is correctly installed, suggesting the root cause is not certificate validation, but rather a compatibility or implementation issue in the connector or its dependencies. Summary: - The "System call failure" error is a known issue in destination-s3 versions 1.5.0+ with MinIO or custom S3 endpoints. - Adding your CA certificate to the truststore does not resolve this error. - Downgrading to version 1.4.0 of the destination-s3 connector is currently the only confirmed workaround [[destination-s3 fails with HttpException](https://github.com/airbytehq/airbyte/issues/55254)], [[destination-S3 does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197)]. - There is no documented fix or configuration option in the knowledge sources that addresses this in newer versions. If you need to use a newer version, you may need to monitor the related GitHub issues for updates or fixes from the Airbyte team.
x
@kapa.ai Ok about going back to the version 1.4.0, but then I'm getting an error about the version of the platform or airbyte is not supported.
k
A message from kapa.ai
You're encountering a common compatibility issue: newer Airbyte platform versions often require newer connector versions, and older connectors (like destination-s3 1.4.0) may not be supported on recent Airbyte releases. This is enforced to ensure protocol compatibility and stability. When you try to use an older connector, Airbyte may display an error such as: > "You must upgrade your platform version to use this connector version. Either downgrade your connector or upgrade platform to 0.63.7" ([example error](https://github.com/airbytehq/airbyte/issues/59702)) Key points from the knowledge sources: - Connector and Platform Compatibility: Airbyte enforces minimum platform versions for certain connector versions. If your platform is newer, it may block the use of older connectors for compatibility reasons. This is a safeguard to prevent protocol mismatches and potential data issues [[Release Notes August 2024](https://docs.airbyte.com/release_notes/aug_2024)]. - No Official Workaround: There is no documented way to bypass this compatibility check in the knowledge sources. Downgrading the platform to match the connector, or vice versa, is the only supported path. However, downgrading the platform is often not practical or recommended. - Known Issue with S3 Connector and MinIO: The "System call failure" with newer S3 connector versions and MinIO is a known, unresolved issue. The only workaround found in the knowledge sources is to use an older connector version, but as you've discovered, this may not be possible on a newer Airbyte platform [[destination-s3 fails with HttpException](https://github.com/airbytehq/airbyte/issues/55254)], [[destination-S3 does not work with Minio](https://github.com/airbytehq/airbyte/issues/59197)]. Summary: You are currently blocked by a compatibility lock between the Airbyte platform and the S3 connector version. The knowledge sources do not provide a supported workaround for this situation. The only options are: - Use a platform version that supports the older connector (if feasible). - Wait for a fix in the S3 connector or MinIO compatibility in a future release. - Monitor the related GitHub issues for updates from the Airbyte team. I'm sorry, but there's no information in the knowledge sources about a supported way to force the use of an older connector version on a newer Airbyte platform.
x
@kapa.ai On a linked subject: when trying to debug the SSL part, I activated some debug logs with the options "-Djavax.net.debug=ssl,handshake,record,plaintext -Daws.crt.log.level=Trace -Daws.crt.log.destination=Stdout", but the log lines are obfuscated in the airbyte interface, even in the pods logs in kubernetes. How would I go to get the original log lines?
k
A message from kapa.ai
The knowledge sources do not provide explicit information about how to disable log obfuscation or access unobfuscated debug log lines (such as SSL handshake details) in the Airbyte UI or in Kubernetes pod logs. The available documentation describes how to browse and copy log files from pods using
kubectl exec
and
kubectl cp
, but does not mention any special handling for debug or sensitive log lines, nor how to bypass any obfuscation that may be applied by Airbyte's logging system [[Browsing on Kubernetes](https://docs.airbyte.com/platform/operator-guides/browsing-output-logs#browsing-on-kubernetes)]. If you are seeing obfuscated log lines both in the Airbyte UI and when directly accessing pod logs, it is likely that Airbyte's logging framework is intentionally masking sensitive information for security reasons. There is no documented method in the knowledge sources to change this behavior or retrieve the original, unobfuscated log lines. Summary: I'm sorry, but the knowledge sources do not contain enough information to answer how to access unobfuscated SSL debug log lines in Airbyte. The documentation only covers standard log access methods, not the handling or configuration of log obfuscation.
x
@kapa.ai It's not obfuscated per say, I'm getting the text "Malformed non-Airbyte record (connectionId = {}): {}"
k
A message from kapa.ai
Thank you for clarifying. The message
Malformed non-Airbyte record (connectionId = ...): ...
appears in Airbyte logs when a log line does not conform to the expected Airbyte protocol message format. This is not true obfuscation, but rather Airbyte's way of handling and displaying log output that it cannot parse as a valid Airbyte message. This behavior is visible in several log excerpts from the knowledge sources, where non-Airbyte log lines (including detailed debug output or stack traces) are wrapped in this "Malformed non-Airbyte record" message. For example, in connector logs and error reports, you can see lines like:
Copy code
Malformed non-Airbyte record (connectionId = a342d063-797f-473a-a881-497555ea8141): 2025-03-12 17:14:00 INFO i.a.i.d.c.CsvDestination$CsvConsumer(close):222 - File output: /local/output/_airbyte_raw_report_grafana_xfactrs_metrics.csv
and
Copy code
Malformed non-Airbyte record (connectionId = not present): #  SIGILL (0x4) at pc=0x0000ffff6fc67c5c, pid=15, tid=34
This means that any log output not following the Airbyte protocol (such as raw SSL debug logs or custom Java debug output) will be captured and displayed in this way, with the original content included after the colon [[Github Issue: For Local_CSV destination, Can't see any file even after successful sync](https://github.com/airbytehq/airbyte/issues/55726)], [[Github Issue: [destination-snowflake] Upgrade to java-connector-base image 2.0.1](https://github.com/airbytehq/airbyte/issues/54706)]. How to get the original log lines: - The original log content is present after the colon in the "Malformed non-Airbyte record" message. While it is not formatted as a standard log line, the content itself is not obfuscated or removed. - If you need to analyze these logs, you can extract the portion after the colon for each "Malformed non-Airbyte record" entry. - There is no documented way in the knowledge sources to change this behavior or to have Airbyte output these lines in their original format without the "Malformed non-Airbyte record" prefix. Summary: The "Malformed non-Airbyte record" message is Airbyte's way of displaying log lines that do not match its protocol, but the original log content is still present after the colon. There is no documented method to disable this behavior or to retrieve the logs in a different format from within Airbyte.
x
@kapa.ai "If you need to analyze these logs, you can extract the portion after the colon for each "Malformed non-Airbyte record" entry." No, I do not have anything after the colon.
k
A message from kapa.ai
Thank you for clarifying that your "Malformed non-Airbyte record" log lines do not contain any content after the colon. Based on the knowledge sources, this behavior is observed in Airbyte logs when the connector or process outputs log lines that do not conform to the expected Airbyte protocol format. In the examples provided in the knowledge sources, the original log content is typically included after the colon. However, if you are seeing empty entries (i.e., nothing after the colon), this suggests that the log output is either being filtered, truncated, or not captured correctly by Airbyte's logging system. The knowledge sources do not provide any information or documented method to change this behavior, recover the missing log content, or configure Airbyte to capture these lines differently. There is also no mention of a workaround or additional logging configuration that would allow you to retrieve the original log lines when they are missing after the colon in "Malformed non-Airbyte record" entries. Summary: I'm sorry, but the knowledge sources do not contain enough information to explain why the content after the colon is missing in your "Malformed non-Airbyte record" log lines, nor do they provide a solution for retrieving the original log content in this scenario.