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

how can I do auth ? #106

Closed
medyagh opened this issue May 16, 2017 · 6 comments
Closed

how can I do auth ? #106

medyagh opened this issue May 16, 2017 · 6 comments
Labels
question Usability question, not directly related to an error with the image Request Request for image modification or feature

Comments

@medyagh
Copy link

medyagh commented May 16, 2017

is there a way to create a testuser and I can authenticate with it?

@demestav
Copy link

demestav commented Jun 8, 2017

In /etc/cassandra/cassandra.yaml the authenticator is set to AllowAllAuthenticator essentially disabling authentication. This needs to be set to PasswordAuthenticator before starting (or restarting) Cassandra. When authentication is enabled, you then can login as the default cassandra user and create the testuser.

Of course it would be better if authentication could be enabled through an environment variable.

@dyangelo-grullon
Copy link

dyangelo-grullon commented Aug 9, 2017

This is also cumbersome to configure in local development, due to #58.

@medyagh
Copy link
Author

medyagh commented Aug 10, 2017

agree with @dag4202 the current configuration setup is very painful !

@JMurph2015
Copy link

I agree here. Since Cassandra doesn't have a good way to auto-configure auth, this is incredibly tedious with docker containers right now.

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Apr 25, 2018
@wglambert wglambert added the Request Request for image modification or feature label May 3, 2018
@evanstucker-hates-2fa
Copy link

I need to be able to configure authentication. Can we place merge one of the various pull requests that fixes this?

Security should be the default, not the special case. Docker images aren't just for developing on laptops anymore - this image is being used in production environments.

@tianon
Copy link
Member

tianon commented Oct 3, 2018

I'm sorry, but honestly if we're going to do anything more with environment variables it would likely be in the opposite direction (which we won't do due to the backwards compatibility implications) -- modifying a YAML file via shell script is very fragile, and setting complex configuration in this way is not great. For custom configuration, the only/best recommendation is to provide an appropriate cassandra.yaml file to your running instance (via a new image with FROM / COPY in a short Dockerfile, via Docker Configs, via bind mount, etc).

Closing in favor of #160 + docker-library/docs#1317.

@tianon tianon closed this as completed Oct 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

7 participants