For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Patrik_Jonsson's avatar
Jul 29, 2022
Solved

Kubernetes cert-manager + LetsEncrypt + F5

Hi there

I have a confession. I'm running a virtual F5 at home as a lab device and ingress controller but it does not have any legitimate management certificate.

<Pause for rotten tomatoes...>

However, I do run a Kubernetes kluster with cert-manager and it automates certificate signing via Let's Encrypt and GCP so I figured maybe it'd be nice to write some sort of K8s Webhook or BatchJob which manages certificates on F5 devices.

I know there are ACME scripts for this and code examples using ie. Python but I want to do this in my Kubernetes cluster.

My questions are:
Has anyone done this before? If so, want to share the code?
If not, would anyone be interested in using this?

Naturally it'd be published on GitHub like all the other things I do, if I do it.

Kind regards,
Patrik

7 Replies

    • I've found as3 a bit challenging to use in cases with shared partitions as it seems like it has to manage the whole partition, but my experience is very limited so I hope I'm wrong.

      In this case it'd be ad-hoc cert management with the following DoD:

      • Certificates should be able to be managed in any partition, including common, and custom partitions
      • The partitions can have other types of configuration, only the certificates would be managed
      • Both Management and Traffic management certificates should be supported

      Can I do this with AS3?

      Kind regards,
      Patrik

       

  • After 3 years from my tests CIS still seems to not detect that cert manager has updated the secret holding the certificates . Patrik_Jonsson​ I think I am correct about this one as I just tested it?

     

    JRahm​  if the cert manager creates the certs and then saves them to a secret needing to push them to Vault and then to BIG-IP seems complex. A cronjob can always be used that has a container with "curl" but I was hopping CIS to be able to monitor the secret for a change like Nginx Ingress monitors the secrets for it's certificates.

  • Nope, we currently use terraform which runs intermittently. It works but it'd be nice if CIS could do it!