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 authentication to Cassandra module #3524

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

Conversation

zooptwopointone
Copy link

Summary
This is to add authentication for the Cassandra module. the URL already has the ability to provide a username and password, this just implements it back to the driver. If you Database has authentication enabled, Opensips would not be able to connect to it.

Details
New Feature.
Need to use authentication when connecting to the database.
This is a very small change using existing logic in opensips code.
Uses the current db_url provided username:password structure for other DB types and makes it work for cassandra. Documentation would need to be updated to let others know this is now possible to use.

Solution
Simply implemented the Cassandra API to pass username and password if provided.

Compatibility
It is unknown to me when Cassandra implemented authentication. but I know it has been almost 8 years now.

Closing issues
I put in an issue, with some other questions related to this pull request. And questions for how to best offer support for Scylla DB as it's required librariy is different than cassandra, but the API is the same.
#3486

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.

1 participant