-
Notifications
You must be signed in to change notification settings - Fork 5.7k
feat: cloudflare DNS/Zone tool integrations #6658
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
Merged
bryanadenhq
merged 35 commits into
aden-hive:main
from
saurabhiiitg:feat/cloudflare-dns-tool
Apr 1, 2026
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
becbdb3
feat: cloudflare DNS/Zone tool integrations
saurabhiiitg 6e0b5c7
merge upstream main into cloudflare branch
saurabhiiitg 859db7f
fix: address review comments for cloudflare tool
saurabhiiitg 06db11e
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg c332ef8
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg ccd5de7
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg 08160a0
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg c93bcee
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg a78bb16
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg 2116191
Update tools/tests/tools/test_cloudflare.py
saurabhiiitg a4b15c0
Add health check endpoint for Cloudflare API
saurabhiiitg 45ba771
Apply suggestion from @levxn
saurabhiiitg 5d6dd1c
Apply suggestion from @levxn
saurabhiiitg 1035cc9
Apply suggestion from @levxn
saurabhiiitg 20b6553
Apply suggestion from @levxn
saurabhiiitg 310b922
Apply suggestion from @levxn
saurabhiiitg b3c1f14
Apply suggestion from @levxn
saurabhiiitg 617462d
Apply suggestion from @levxn
saurabhiiitg 21700eb
Apply suggestion from @levxn
saurabhiiitg 25afdae
Apply suggestion from @levxn
saurabhiiitg 71baf61
Apply suggestion from @levxn
saurabhiiitg ad39b6e
Apply suggestion from @levxn
saurabhiiitg d4a66d4
Apply suggestion from @levxn
saurabhiiitg e270d32
Apply suggestion from @levxn
saurabhiiitg 051b0fc
Apply suggestion from @levxn
saurabhiiitg d1a1f36
Apply suggestion from @levxn
saurabhiiitg d18091b
Apply suggestion from @levxn
saurabhiiitg 74d5dd0
Apply suggestion from @levxn
saurabhiiitg 6600ce0
Apply suggestion from @levxn
saurabhiiitg 3e622af
Apply suggestion from @levxn
saurabhiiitg 4da4d3b
Apply suggestion from @levxn
saurabhiiitg 5167c29
Apply suggestion from @levxn
saurabhiiitg 0e2333d
Apply suggestion from @levxn
saurabhiiitg e9c1731
fix: address review comments + all tests passing
saurabhiiitg ebb6605
fix: address Cloudflare review comments (DDoS, pagination, validation…
saurabhiiitg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,75 @@ | ||
| from aden_tools.credentials import CredentialSpec | ||
|
|
||
| CLOUDFLARE_CREDENTIALS = { | ||
| "cloudflare": CredentialSpec( | ||
| env_var="CLOUDFLARE_API_TOKEN", | ||
| description=( | ||
| "Cloudflare API token (DNS/Zone Read-Write). Provide via env var or credential store." | ||
| ), | ||
| required=True, | ||
| help_url="https://dash.cloudflare.com/profile/api-tokens", | ||
| credential_id="cloudflare_api_token", | ||
| api_key_instructions=( | ||
| "Create an API token with Zone/DNS read and edit permissions: " | ||
| "https://dash.cloudflare.com/profile/api-tokens" | ||
| ), | ||
| direct_api_key_supported=True, | ||
| health_check_endpoint="https://api.cloudflare.com/client/v4/user/tokens/verify", | ||
| tools=[ | ||
| "cloudflare_list_zones", | ||
| "cloudflare_get_zone", | ||
| "cloudflare_get_zone_settings", | ||
| "cloudflare_list_zone_custom_pages", | ||
| "cloudflare_get_ssl_verification", | ||
| "cloudflare_list_zone_certificates", | ||
| "cloudflare_list_zone_subscriptions", | ||
| "cloudflare_get_dnssec_status", | ||
| "cloudflare_update_zone_setting", | ||
| "cloudflare_list_dns_records", | ||
| "cloudflare_get_dns_record", | ||
| "cloudflare_list_dns_record_scan", | ||
| "cloudflare_get_dns_settings", | ||
| "cloudflare_list_dns_analytics_report", | ||
| "cloudflare_check_domain_dns_health", | ||
| "cloudflare_create_dns_record", | ||
| "cloudflare_update_dns_record", | ||
| "cloudflare_delete_dns_record", | ||
| "cloudflare_get_zone_analytics", | ||
| "cloudflare_get_top_analytics", | ||
| "cloudflare_get_security_analytics", | ||
| "cloudflare_get_cache_analytics", | ||
| "cloudflare_get_performance_analytics", | ||
| "cloudflare_get_http_analytics_report", | ||
| "cloudflare_list_firewall_events", | ||
| "cloudflare_get_security_settings", | ||
| "cloudflare_list_page_rules", | ||
| "cloudflare_list_waf_rulesets", | ||
| "cloudflare_get_bot_management_settings", | ||
| "cloudflare_list_managed_transforms", | ||
| "cloudflare_get_ddos_protection_settings", | ||
| "cloudflare_create_firewall_rule", | ||
| "cloudflare_delete_firewall_rule", | ||
| "cloudflare_get_speed_settings", | ||
| "cloudflare_get_cache_settings", | ||
| "cloudflare_get_http_config", | ||
| "cloudflare_get_network_settings", | ||
| "cloudflare_purge_cache_all", | ||
| "cloudflare_purge_cache_files", | ||
| "cloudflare_list_advanced_services", | ||
| "cloudflare_list_accounts", | ||
| "cloudflare_get_account_details", | ||
| "cloudflare_list_account_members", | ||
| "cloudflare_invite_account_member", | ||
| "cloudflare_delete_account_member", | ||
| "cloudflare_list_custom_hostnames", | ||
| "cloudflare_list_audit_logs", | ||
| "cloudflare_list_firewall_rules", | ||
| "cloudflare_list_access_applications", | ||
| "cloudflare_list_r2_buckets", | ||
| "cloudflare_list_pages_projects", | ||
| "cloudflare_create_access_policy", | ||
| "cloudflare_create_worker_route", | ||
| "cloudflare_set_ssl_mode", | ||
| ], | ||
| ) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
CLOUDFLARE_CREDENTIALS has no health_check_endpoint. can refer other tools (for eg: serpapi.py). Can refer to documentation as well for this.