Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provider Mythic-Beasts with TXT only API access level #972

Open
Veldkornet opened this issue Oct 5, 2021 · 0 comments
Open

Provider Mythic-Beasts with TXT only API access level #972

Veldkornet opened this issue Oct 5, 2021 · 0 comments

Comments

@Veldkornet
Copy link

With my mythic beasts api key access level set to allow writing of txt records only, I just get the following error:

 + Deploying challenge tokens...
deploy_challenge called: www.example.com, xxxxxxxxxxxxxxx, xxxxxxxxxxxxxxxxxxxx
Traceback (most recent call last):
  File "/usr/bin/lexicon", line 8, in <module>
    sys.exit(main())
  File "/usr/lib/python3.8/site-packages/lexicon/cli.py", line 131, in main
    results = client.execute()
  File "/usr/lib/python3.8/site-packages/lexicon/client.py", line 88, in execute
    return self.provider.create_record(record_type, name, content)
  File "/usr/lib/python3.8/site-packages/lexicon/providers/base.py", line 79, in create_record
    return self._create_record(rtype, name, content)
  File "/usr/lib/python3.8/site-packages/lexicon/providers/mythicbeasts.py", line 119, in _create_record
    payload = self._post(f"/zones/{self.domain}/records", data)
  File "/usr/lib/python3.8/site-packages/lexicon/providers/base.py", line 181, in _post
    return self._request("POST", url, data=data, query_params=query_params)
  File "/usr/lib/python3.8/site-packages/lexicon/providers/mythicbeasts.py", line 290, in _rekest
    response.raise_for_status()
  File "/usr/lib/python3.8/site-packages/requests/models.py", line 953, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: Access denied for url: https://api.mythic-beasts.com/dns/v2/zones/example.com/records
ERROR: deploy_challenge hook returned with non-zero exit code

But, I change the access level of the API key to allow writing of “ALL” records instead of just “TXT” records, then it worked. Any idea why this is? It’s anyway just writing txt records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant