-
Notifications
You must be signed in to change notification settings - Fork 5.4k
ALLOW_EMPTY_PASSWORD option is broken due to YAML syntax error #76691
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
Comments
Thankfully, there is a straightforward workaround for this issue, once we understand the root cause: Use (docs) |
The presence of an extra space the `:` in `key: value` pairs makes the default `conf/cassandra.yaml` file included in this repository unparseable and non-functional. Among other downstream consequences of this bug: - bitnami/containers#76691 (where I identify the root cause) - bitnami/containers#75745
Patch by Jyothsna Konisa & Dinesh Joshi; reviewed by Yifan Cai, Jon Meredith, Yuki Morishita & Dinesh Joshi for CASSANDRA-18554 Co-Authored-By: Dinesh Joshi <djoshi@apache.org>
I discovered the (upstream) source. Turns out that this is a syntax mistake in the The fix is here: apache/cassandra#3837 |
This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback. |
Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary. |
fixed in Cassandra here apache/cassandra@027689a |
Name and Version
bitnami/cassandra:5.0.2-debian-12-r3
What architecture are you using?
amd64
What steps will reproduce the bug?
The documentation for this container says that it's possible to set the environment variable
ALLOW_EMPTY_PASSWORD=yes
in order to allow connecting to the Cassandra CQL server without any credentials (e.g.cqlsh
should work without-u
/-p
).However, this option does not work.
Reproducing
Finding the root cause
Inspecting the logs in another terminal shows that there are parsing errors in the
cassandra.yaml
config file:⚠ There's a YAML syntax mistake in the config file:
class_name : AllowAllAuthenticator
has an extra space in it before the:
In the case where
ALLOW_EMPTY_PASSWORD
is not specified, this line gets replaced with the correct syntaxclass_name: PasswordAuthenticator
.What is the expected behavior?
Cassandra container starts up without any required credentials.
What do you see instead?
Cassandra container fails to start and aborts after ~10 minutes.
Additional information
No response
The text was updated successfully, but these errors were encountered: