Open joshka opened 11 months ago
Hello,
the fact of not restricting the zone ID is an advantage: like that it's possible to handle several zones.
the fact of not restricting the zone ID is an advantage: like that it's possible to handle several zones.
What is the most frequent count of zones updated in a single acme flow? If it's not 1, I'd be curious to understand more about why.
What is the most frequent count of zones updated in a single acme flow?
We don't have telemetry, so we cannot provide that information.
lego is not only a CLI, it's also a library, and in this context, hundreds of domains are handled by lego for one user. For me, it's a common thing, I don't say it's the majority but I think there is a non-negligible number.
We don't have telemetry, so we cannot provide that information.
More of a hypothetical question than one seeking actual numbers.
Solving my initial question though, it turns out that you can use the same API key for both settings if you give that key read Zone access on the Zone(s) you care about. You don't need Zone:read on the entire account for this. E.g.:
Welcome
How do you use lego?
Through Traefik
Detailed Description
The acme.sh configuration for Cloudflare takes a zone scoped API key and the zone id. Ref: https://github.com/acmesh-official/acme.sh/wiki/dnsapi#i-single-dns-zone
Lego takes a zone scoped API key and another key with read across all zones. It's unclear why adding a second API key is necessary and contrary to the lego docs, this is a bit shy of least-privilege. It would be nice to add a CF_ZONE_ID environment variable for this.
I'm not sure if there's something I'm missing in understanding how the lego implementation differs from ACME on this.
ref: https://github.com/go-acme/lego/issues/984#issuecomment-539188212