OpenSIPS / opensips

OpenSIPS is a GPL implementation of a multi-functionality SIP Server that targets to deliver a high-level technical solution (performance, security and quality) to be used in professional SIP server platforms.
https://opensips.org
Other
1.28k stars 581 forks source link

[FEATURE] Authentication for Cassandra / ScyllaDB #3486

Open zooptwopointone opened 1 month ago

zooptwopointone commented 1 month ago

Is your feature request related to a problem? Please describe.

I am working on getting Cache DB Working with our Scylla cluster. I first implemented authentication into the current Cassandra module. I will put in a Pull request for that. But I am curious what I should do for the Scylla DB changes. If you could guide me as I am not really a C programmer. Basically the Scylla implementation/driver is exactly the same as Cassandra. The only difference to the code is including the Scylla Lib vs the Cassandra lib. 1 other change was compiling on Debian I has to add this to the main Makefile's LDFLAGS -ltinfo

So my question is for the scylla driver is there a better way to provide an option to choose between them dynamically via the MAKE options or something or is it better that I just copy the full cassandra module and submit it under scylla?

thanks.

Describe the solution you'd like I have a PR I will submit, but just enabling username and password in the db_url to be passed to the Scylla/cassandra driver for authentication.

Implementation Just implemented what was available in the lib to provide username and password and current functionality of Opensips

Describe alternatives you've considered none

Additional context

I want to use Authentication when connecting to the database.

zooptwopointone commented 1 week ago

Let me know if there is something I need to do for the pull request that I submitted.

thanks.

zooptwopointone commented 5 days ago

https://github.com/OpenSIPS/opensips/pull/3524 I had to create a new pull request as the other was automatically closed.