juju-solutions / layer-tls-client

A Juju layer for tls-client code, to add client code to your charms.
1 stars 8 forks source link

Ensure parent path for certs exist #21

Closed johnsca closed 4 years ago

johnsca commented 4 years ago

It seems the parent path for certs is usually but not always created before the certs are written. This adds a check to ensure the parent paths always exist before writing the certs or keys.

Fixes lp:1899650

johnsca commented 4 years ago

Tested on AWS, without Vault but it still covered that code path.

kubeapi-load-balancer/0*  active    idle   2        54.159.84.122   443/tcp         Loadbalancer ready.
Cynerva commented 4 years ago

LGTM