-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
Welcome
- Yes, I'm using a binary release within 2 latest releases.
- Yes, I've searched similar issues on GitHub and didn't find any.
- Yes, I've included all information below (version, config, etc).
What did you expect to see?
A successful DNS-01 solution
What did you see instead?
403 Permission Denied. Required Scope: zones:*:read
How do you use lego?
Binary
Reproduction steps
- Create a DNSimple access token with full-access to specific Zones in the DNSimple account https://support.dnsimple.com/articles/api-access-token/#scoped-access-tokens
- Export that access token as the environment variable
DNSIMPLE_OAUTH_TOKEN - Run lego to obtain a cert for a domain within the access token's scoped zones, with a DNSimple DNS-01 challenge. E.g.,
lego -d subdomain.scoped-zone.com --dns dnsimple run
Effective version of lego
lego version 4.22.2 darwin/arm64Logs
2025/03/04 12:33:30 [INFO] [<redacted>] acme: Obtaining bundled SAN certificate
2025/03/04 12:33:30 [INFO] [<redacted>] AuthURL: https://acme-staging-v02.api.letsencrypt.org/acme/authz/<redacted>/<redacted>
2025/03/04 12:33:30 [INFO] [<redacted>] acme: Could not find solver for: tls-alpn-01
2025/03/04 12:33:30 [INFO] [<redacted>] acme: Could not find solver for: http-01
2025/03/04 12:33:30 [INFO] [<redacted>] acme: use dns-01 solver
2025/03/04 12:33:30 [INFO] [<redacted>] acme: Preparing to solve DNS-01
2025/03/04 12:33:31 [INFO] [<redacted>] acme: Cleaning DNS-01 challenge
2025/03/04 12:33:31 [WARN] [<redacted>] acme: cleaning up failed: dnsimple: API call failed: GET https://api.dnsimple.com/v2/<redacted>/zones?name_like=<redacted>: 403 Permission Denied. Required Scope: zones:*:read
2025/03/04 12:33:31 [INFO] Deactivating auth: https://acme-staging-v02.api.letsencrypt.org/acme/authz/<redacted>/<redacted>
2025/03/04 12:33:31 Could not obtain certificates:
error: one or more domains had a problem:
[<redacted>] [<redacted>] acme: error presenting token: dnsimple: API call failed: GET https://api.dnsimple.com/v2/<redacted>/zones?name_like=<redacted>: 403 Permission Denied. Required Scope: zones:*:readGo environment (if applicable)
n/a
Neustradamus