cert-manager / website

Source code for the cert-manager.io website, including project documentation
https://cert-manager.io
Apache License 2.0
54 stars 338 forks source link

Wrong key for cloudflare secret ref in DNS Validation tutorial page #1596

Open darquill opened 1 month ago

darquill commented 1 month ago

Hello!

The DNS Validation tutorial page mentions the apiKeySecretRef key to reference the secret containing the Cloudflare API token, which is wrong and leads to this error:

E1030 00:00:39.459978       1 controller.go:157] "re-queuing item due to error processing" err=<                                                                       
        while attempting to find Zones for domain _acme-challenge.example.com.                                                                                        
        while querying the Cloudflare API for GET "/zones?name=_acme-challenge.example.com"                                                                           
                 Error: 6003: Invalid request headers<- 6103: Invalid format for X-Auth-Key header                                                                     
 > logger="cert-manager.controller"

The correct key to use, as described here, is apiTokenSecretRef.

Cheers