docker-library / cassandra

Docker Official Image packaging for Cassandra
Apache License 2.0
262 stars 281 forks source link

Can you add a configurable cassandra password in version office docker image 3.11.5? #198

Closed binbinshi closed 4 years ago

binbinshi commented 4 years ago

Hope to configure cassandra's default password information through env. When we use authenticator: PasswordAuthenticator as the access security restriction, the image version is the official 3.11.5 。

don't tell me use the cqlsh to update the passwrd after the cassandra service is start up

anyone give me some advice?

thanks

wglambert commented 4 years ago

Cassandra needs authentication enabled to be able to edit/create superusers. You'll want to create a cassandra.yaml with provided credentials and mount it in the container https://github.com/docker-library/docs/tree/master/cassandra#configuring-cassandra

This image doesn't have any authentication by default