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
Enable auth to Cloudflare DNS via API Tokens #1564
Conversation
39508bf
to
126b273
Compare
@Kami "Generate Code Coverage" failure in this pull request seems unrelated to the changes: |
This error has been fixed in trunk, merge the changes and this tests will pass. |
libcloud/dns/drivers/cloudflare.py
Outdated
@@ -146,27 +147,37 @@ def parse_error(self): | |||
raise exception_class(**kwargs) | |||
|
|||
|
|||
class CloudFlareDNSConnection(ConnectionUserAndKey): | |||
class BaseDNSConnection: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor style thing - we tend to explicitly inherit from object everywhere.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in 1d209ed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
I use CloudFlare driver myself in various places, so this will also come handy for me :)
Codecov Report
@@ Coverage Diff @@
## trunk #1564 +/- ##
==========================================
- Coverage 83.00% 83.00% -0.01%
==========================================
Files 394 394
Lines 84943 84959 +16
Branches 9036 9037 +1
==========================================
+ Hits 70508 70521 +13
- Misses 11369 11372 +3
Partials 3066 3066
Continue to review full report at Codecov.
|
Enable auth to Cloudflare DNS via API Tokens
Description
This pull request adds support to the Cloudflare DNS driver to authenticate via API Tokens (see docs) in addition to the previous Global API Key authentication mechanism.
Status
Checklist