fix(ingestion): enhance SSL safety and log sanitization - #27719
Conversation
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
7dfaf18 to
0600652
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
The
Maintainers may need to either update the CI runner's trust store or explicitly allow |
0600652 to
7af9422
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
7af9422 to
53ed0bf
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
53ed0bf to
576301e
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
576301e to
0370c4e
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
0370c4e to
1ce4500
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
1ce4500 to
32bcc7c
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
32bcc7c to
83b5fc7
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Thanks for the PR. This needs to be updated against the latest Could you please rebase on |
83b5fc7 to
b6a344e
Compare
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
|
|
The Python checkstyle failed. Please run You can install the pre-commit hooks with |
11df810 to
91329e9
Compare
|
Thanks for addressing the earlier review items. Gitar is now approved, so the remaining blockers look mechanical from CI:
Once those outputs are committed, let CI rerun. After the checks are green, this can move back to reviewer/maintainer review. |
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
|
|
Thanks for the SSL/log-sanitization hardening. One security-default question before merge: the new If backward compatibility is the intent, could we make the docs/description explicit that SSL validation remains opt-in? If the goal is secure-by-default hardening, could we default to validation and override only the fixtures/tests that need |
|
This PR has had no activity for 30 days and will be closed in 7 days if no further activity occurs. |
Signed-off-by: RinZ27 <222222878+RinZ27@users.noreply.github.com>
Following maintainer feedback: 1. Updated SAS and Elasticsearch connection schemas to default verifySSL to 'ignore' to prevent breaking existing setups. 2. Restored the secret_id in AWS Secrets Manager error logs for better production troubleshooting.
58910df to
106c0da
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Too many files changed for review (897 files, 100 file limit). |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
3c02bb8 to
106c0da
Compare
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hey @RinZ27, Thanks for pushing on this! The direction is right, but a few things need fixing before it can merge.
Suggestion: drop both Java files from the PR. They don't test anything SSL-related, it is all related to the search service the application uses.
For SAS, use the existing helper: from metadata.utils.ssl_registry import get_verify_ssl_fn
verify = get_verify_ssl_fn(config.verifySSL)(config.sslConfig)Pass verify to both places that currently use _VERIFY_SSL — client.py:45 and client.py:178. While you're there, please delete the envvar: remove sas/settings.py entirely (verify_ssl is its only field), drop the client.py:22 import and the client.py:28 constant, and run make -C ingestion generate_settings_docs to drop the OM_SAS_VERIFY_SSL row from SETTINGS.md. That envvar was only ever a quick Snyk fix; the connection field is where this belongs. For Elasticsearch, mirror opensearch/connection.py:123-125.
This matters: ignore makes the helper return False. no-ssl returns None, which leaves requests' default (True) alone. It's also what openSearchConnection.json:43 and tableauConnection.json:71 use.
|
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
|
Hi there 👋 Thanks for your contribution! The OpenMetadata team will review the PR shortly! Once it has been labeled as Let us know if you need any help! |
Code Review
|
| Compact |
|
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source



Describe your changes:
This update introduces configurable SSL verification for SAS and Elasticsearch connectors and improves log sanitization.
Key improvements:
verifySSLproperty to bothSASConnectionandElasticSearchConnectionschemas. I've set the default toignorebased on maintainer feedback to ensure we don't break existing setups, while allowing users to opt-in tovalidatefor production hardening.aws_secrets_manager.pydebug logs. Based on reviewer feedback, I've ensured thesecret_idis preserved in error logs to facilitate troubleshooting of misconfigured secrets.These changes provide a path toward better security standards while maintaining backward compatibility for current deployments.
Type of change:
Checklist:
Fixes :