Skip to content
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

Add SSL support to schemagen #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kittizz
Copy link

@kittizz kittizz commented Jun 7, 2023

This pull request adds SSL support to the schemagen command in order to generate table models for Cassandra/Scylla clusters that require SSL/TLS encryption. The motivation behind this change is to align with the SSL requirements of AWS Keyspaces.

Changes Made

  • Added the flagSslPath flag to allow users to specify the path to a directory containing SSL certificates.

  • Modified the createSession() function to include SSL options in the cluster configuration if the flagSslPath flag is provided.

  • Configured SSL options with the provided certificate path and disabled host verification to ensure compatibility with AWS Keyspaces SSL settings.

Testing

I have manually tested this feature by generating table models for an AWS Keyspaces cluster with SSL enabled. The models were successfully generated without any errors.

Related Issue(s)

N/A

Please review this pull request and consider merging it into the main branch.

Thank you.

@mykaul
Copy link

mykaul commented Jun 8, 2023

Thanks @kittizz for the contribution! Can you please also test it against a ScyllaDB cluster?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants