flant / cert-manager-webhook-regru

The webhook and the ClusterIssuer resource for automatic provisioning of reg.ru SSL certificates in Kubernetes
Apache License 2.0
33 stars 10 forks source link

Resolve domain from challengeRequest.ResolvedZone #8

Closed c0rnoTa closed 1 year ago

c0rnoTa commented 1 year ago

This one should resolve issue #5

We can omit zone env variable for cert-manager-webhook-regru and resolve domain for API request to the REG.RU from challengeRequest.ResolvedZone. ResolvedZone indicates the zone that the provided FQDN is encompassed within, determined by performing SOA record queries for each part of the FQDN until an authoritative zone is found.

This changes allow you to use one instance of the cert-manager-webhook-regru for many domains.