I believe the correct place to fix this is in interface-tls-certificates. The joined method[1] should be replaced with an implementation of manage_flags[2], which is guaranteed to be called before reactive handlers run. That would ensure that certificates.server.cert.available is cleared before layer-tls-client handlers have a chance to run.
I believe the correct place to fix this is in interface- tls-certificate s. The joined method[1] should be replaced with an implementation of manage_flags[2], which is guaranteed to be called before reactive handlers run. That would ensure that certificates. server. cert.available is cleared before layer-tls-client handlers have a chance to run.
[1]: https:/ /github. com/charmed- kubernetes/ interface- tls-certificate s/blob/ d9850016d930a6d 507b9fd45e2598d 327922b140/ requires. py#L79- L80 /github. com/juju- solutions/ charms. reactive/ blob/f4f5ac6171 3a5544c3c522fa5 873157a383241d7 /charms/ reactive/ endpoints. py#L253
[2]: https:/