You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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: #984 (comment)
The text was updated successfully, but these errors were encountered: