canonical / observability-libs

A collection of charm libraries curated by the Observability team.
https://charmhub.io/observability-libs
Apache License 2.0
3 stars 8 forks source link

Fix `_generate_privkey` #77

Closed Abuelodelanada closed 6 months ago

Abuelodelanada commented 6 months ago

Enhancement Proposal

In _generate_privkey we are getting the private key from relation not secrets:

private_key = relation.data[self.charm.unit].get("private-key", None)

We should use:

self.private_key

Issue found in: https://github.com/canonical/alertmanager-k8s-operator/actions/runs/7957275284/job/21736430013?pr=215