Skip to content

feat(cassandra): Support ssl auth with cassandra #13465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

gabe-lyons
Copy link
Contributor

@gabe-lyons gabe-lyons commented May 8, 2025

Adds 3 new config options to cassandra

  1. ssl_ca_certs - optional, for validating server validity
  2. ssl_certfile - optional, for validating client validity
  3. ssl_keyfile - optional, for validating client validity

Tested with a Cassandra image running locally. Cases tested: username password required/not required & SSL enabled and disabled. Also added unit tests.

My recipe:

source:
  type: "cassandra"
  config:
    # Basic connection configuration
    contact_point: "localhost"
    port: <port>

    username: "<username>"
    password: "<password>"

    ssl_ca_certs: "./ca.pem"
    ssl_certfile: "./client.pem"
    ssl_keyfile: "./client.key"

@github-actions github-actions bot added the ingestion PR or Issue related to the ingestion of metadata label May 8, 2025
@datahub-cyborg datahub-cyborg bot added the needs-review Label for PRs that need review from a maintainer. label May 8, 2025
Copy link

codecov bot commented May 8, 2025

Codecov Report

Attention: Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...atahub/ingestion/source/cassandra/cassandra_api.py 88.88% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@datahub-cyborg datahub-cyborg bot added pending-submitter-merge and removed needs-review Label for PRs that need review from a maintainer. labels May 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ingestion PR or Issue related to the ingestion of metadata pending-submitter-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants