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

Error while connecting to AWS Keyspace #148

Open
amit-dev opened this issue Jun 16, 2021 · 2 comments
Open

Error while connecting to AWS Keyspace #148

amit-dev opened this issue Jun 16, 2021 · 2 comments

Comments

@amit-dev
Copy link

Hi,

While trying to connect AWS keyspace django cassandra engine is erroring out.
Not sure how to provide cert as Amazon Keyspaces requires the use of Transport Layer Security (TLS)

Usage:-
DATABASES = {
'default': {
'ENGINE': 'django_cassandra_engine',
'NAME': '',
'USER': ''
'PASSWORD': ''
'HOST': 'cassandra.us-east-1.amazonaws.com',
'connection': {
'port': 9042,

    }
}

}

@SebJansen
Copy link

I think TLS is just not supported, weirdly. Or did you find a solution?

@SebJansen
Copy link

SebJansen commented Oct 11, 2021

The documentation has some pointers on tinkering with the authentication method: http://r4fek.github.io/django-cassandra-engine/guide/advanced_usage/#using-internal-authorization

"You can also pass custom auth_provider to connection dict:"

Which links to DataStax's SASL-auth, which I presume to be TLS-compatible: https://docs.datastax.com/en/developer/python-driver/3.25/api/cassandra/auth/

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

No branches or pull requests

2 participants