Skip to content

CASSANDRA-21546: Add MutualTLS strategy for Cluster Startup - #4990

Open
aparna0522 wants to merge 1 commit into
apache:trunkfrom
aparna0522:anaik-hardcoded-creds-fix
Open

CASSANDRA-21546: Add MutualTLS strategy for Cluster Startup#4990
aparna0522 wants to merge 1 commit into
apache:trunkfrom
aparna0522:anaik-hardcoded-creds-fix

Conversation

@aparna0522

Copy link
Copy Markdown
Contributor

Description
Cassandra bootstraps every new cluster with a hardcoded cassandra superuser whose password is also cassandra, so credential operators must remember to rotate.

This PR adds IDefaultRoleInitializer, a pluggable strategy for bootstrapping the initial role, configured via a new default_role_initializer option in cassandra.yaml:

  • PasswordDefaultRoleInitializer (default): same behavior as today, role/password now configurable.
  • MutualTlsDefaultRoleInitializer: creates the superuser with no password, mapping a client cert identity instead. Rejected at startup if the authenticator doesn't support MTLS.

patch by Aparna Naik; reviewed by for CASSANDRA-21546

@aparna0522
aparna0522 force-pushed the anaik-hardcoded-creds-fix branch from 8759820 to 96a5f44 Compare August 1, 2026 00:25
@aparna0522 aparna0522 changed the title Add MutualTLS strategy for Cluster Startup CASSANDRA-21546: Add MutualTLS strategy for Cluster Startup Aug 1, 2026
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

Successfully merging this pull request may close these issues.

1 participant