Closed zerr0s closed 1 year ago
Hello,
I have uninstall all and reinstall from scratch and still not working. what am I doing bad ???
Error presenting challenge: ovh.mydomain.com is forbidden: User "system:serviceaccount:cert-manager-system:tf-certmanager-cert-manager-controller" cannot create resource "ovh" in API group "youshopia.com" at the cluster scope
it seems to be a rbac problem ...
Are you sure the OVH credentials are correct? And correctly set in ovh-credentials
secret?
ok found. The cert-manager controller was already installed with custom values and the serviceAccountName used by this component was different.
I set the correct serviceAccountName (tf-certmanager-cert-manager-controller) and all is working now !
Maybe an indication in the documentation could help :)
Could you please further explain ?
my cert-manager congtroller was deployed using customs values from terraform and argocd. The serviceaccountnanme used my the controller (not the webhook) was "tf-certmanager-cert-manager-controller".
But in the chart values of the webhook I have put "cert-manager-system". So the crontroller wasn't able to create any resource in the groupName because there wasn't any binding for "tf-certmanager-cert-manager-controller".
The serviceAccountName of the webhook needs to be the same of the serviceAccountName used by the controller.
and voila
Thanks @zerr0s That makes more sense now. I'll update the doc to make it clear that the 2 values need to match.
Hi,
I'm trying to use this webhook to get wildcard certificates from LE and ovh DNS api. But it stucks with these errors:
It seems to be a simple rbac issue, but I don't understand what to do because of rbac has already been set by the chart.
the values (xxxx is the domain in ovh):
Any idea please ?