The current implementation of the Google Cloud DNS provider only works if a node, where lego is deployed, has node metadata available. However, that's not always possible. So it should also accept CLIENT_ID
and CLIENT_SECRET
pair for such cases.
You don't necessarily need node metadata. It also works if gcloud is installed and authenticated.
You can also provide the GOOGLE_APPLICATION_CREDENTIALS env var and have it point to a json credentials file. That's probably what you want ?
@PSG-Luna, yes this solves the problem.
I'll go ahead and close this then. :)
Is this documented anywhere?
I exported GOOGLE_APPLICATION_CREDENTIALS previously for my Cloud SQL Service Account limited to roles/cloudsql.client
-- took me a day to figure out why my API calls where coming back 403 Forbidden
Just obtained my certs now though, so thank yous all around 馃槃 !
Most helpful comment
You can also provide the GOOGLE_APPLICATION_CREDENTIALS env var and have it point to a json credentials file. That's probably what you want ?