cloud-gov / external-domain-broker

Cloud Foundry service broker to manage Cloud Front, ALBs and Let's Encrypt
Other
3 stars 2 forks source link

Improve duplicate cert detection to handle dedicated ALBs #332

Closed markdboyd closed 4 months ago

markdboyd commented 4 months ago

Changes proposed in this pull request:

There are two jobs in the pipeline that deal with duplicate certificates

However, when the new dedicated ALB service instances were added in #293, this duplicate certificate code was not updated to handle duplicates for these service instances.

This PR updates the duplicate certificate check and removal code to also handle any duplicate certificates for dedicated ALB service instances.

Things to check

Security considerations

There should be no security issues, just refactoring code to handle and remove duplicate certificates for any dedicated ALB service instances. The only logging goes to Prometheus, which is an internal service only accessible to operators.