canonical / mongodb-operator

Charmed solution for MongoDB
Apache License 2.0
12 stars 14 forks source link

[DPE-5236] update TLS lib for K8s mongos external clients #478

Closed MiaAltieri closed 2 months ago

MiaAltieri commented 2 months ago

Issue

K8s mongos charm needs to be able to compare the current sans with the expected sans in order to update TLS certs when the k8s ip changes

Solution

Update lib to support the needed functionality

Gu1nness commented 2 months ago
  File "/var/lib/juju/agents/unit-shard-one-5/charm/lib/charms/mongodb/v1/shards_interface.py", line 714, in _on_relation_changed
    if tls_enabled and self.charm.tls.waiting_for_certs():
AttributeError: 'MongoDBTLS' object has no attribute 'waiting_for_certs'

There's a small miss there it seems :)