Skip to content

Commit 876cca3

Browse files
committed
Fix after rebase.
1 parent 394452f commit 876cca3

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/core/state.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ def internal_ca_key(self) -> PrivateKey | None:
473473
def internal_ca_key(self, value: PrivateKey) -> None:
474474
self._field_setter_wrapper("internal-ca-key-secret", str(value))
475475

476+
@property
476477
def cassandra_password_secret(self) -> str:
477478
"""Password of `cassandra` system user."""
478479
return self.relation_data.get("cassandra-password", "")

src/events/cassandra.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ def _finalize_password_change(self, event: StartEvent) -> None:
162162
cluster_name=self.state.cluster.cluster_name,
163163
listen_address=self.state.unit.ip,
164164
seeds=self.state.cluster.seeds,
165+
enable_peer_tls=self.state.unit.peer_tls.ready,
166+
enable_client_tls=self.state.unit.client_tls.ready,
167+
keystore_password=self.state.unit.keystore_password,
168+
truststore_password=self.state.unit.truststore_password,
165169
authentication=True,
166170
)
167171
self.charm.on[str(self.bootstrap_manager.name)].acquire_lock.emit()

0 commit comments

Comments
 (0)