go-acme / lego

Let's Encrypt/ACME client and library written in Go
https://go-acme.github.io/lego/
MIT License
7.46k stars 986 forks source link

gcloud: support GCE_ZONE_ID to bypass zone list #2073

Closed philpennock closed 6 months ago

philpennock commented 6 months ago

The GCloud IAM permission system permits a zone to grant access to an actor, without the project granting any access. This can be used with Service Accounts to let an SA edit DNS in one particular zone, and nothing more.

Remove the need for the caller to have project-level role access granting the dns.managedZones.list permission, in exchange for the caller telling us the explicit zone ID to use, via the GCE_ZONE_ID environment variable.


PR comment: sorry, I'm going to need help figuring out the test rig and how to set it up to fail the managedzones list call but succeed on zone edits, to add a test for this logic.

ldez commented 6 months ago

Hello,

Your PR comes from a GitHub Organization, it's a problem to edit your PR and for automation that modifies or updates PR.

Can you re-create your PR from a personal fork?

philpennock commented 6 months ago

Your PR comes from a GitHub Organization, it's a problem to edit your PR and for automation that modifies or updates PR.

Can you re-create your PR from a personal fork?

Done, this has been re-forked and a new PR submitted, #2081.