Integrations

Cloudflare

DNS management, security rules, and performance optimization

The Cloudflare connector provides 61 actions for managing DNS records, security settings, caching, and CDN configuration.

Setup

Connect via API Token

  1. Go to Settings → Integrations → Cloudflare
  2. Click Connect
  3. In Cloudflare dashboard, go to My Profile → API Tokens
  4. Create a token with required permissions
  5. Paste the token in Keva
  6. Select zones to manage

Required Token Permissions

Zone:DNS:Edit
Zone:Zone Settings:Edit
Zone:Cache Purge:Purge
Zone:Firewall Services:Edit
Zone:Analytics:Read

Available Actions (61)

DNS Management

ActionDescription
List DNS recordsGet all records for a zone
Get DNS recordSpecific record details
Create DNS recordAdd A, AAAA, CNAME, etc.
Update DNS recordModify existing record
Delete DNS recordRemove a record

Security

ActionDescription
List firewall rulesGet security rules
Create firewall ruleBlock/allow traffic
Get WAF settingsWeb app firewall status
Update security levelChange protection level
List blocked IPsGet blocked addresses
Block IPAdd IP to blocklist

Caching & Performance

ActionDescription
Purge cacheClear cached content
Purge by URLClear specific pages
Get cache settingsCurrent cache config
Update cache TTLChange cache duration
Enable dev modeBypass cache temporarily

Analytics

ActionDescription
Get traffic statsRequests, bandwidth
Get threat analyticsBlocked attacks
Get performance dataLoad times, cache hits

Use Cases

DNS Issue

Customer: "Our subdomain app.example.com isn't working"

AI:
1. Calls list_dns_records(example.com)
2. Finds app.example.com pointing to old IP
3. Reports the misconfiguration
4. Offers to update record if authorized

DDoS Attack

Customer: "Site is being hammered with traffic"

AI:
1. Calls get_threat_analytics()
2. Identifies attack pattern from single IP range
3. Creates firewall rule to block range
4. Reports: "Blocked 192.168.x.x/24"

Cache Problem

Customer: "Updated our site but old content still shows"

AI:
1. Calls purge_cache(zone_id)
2. Confirms cache cleared
3. Reports: "Cache purged for example.com"

Configuration

  • Zone access: Which domains AI can manage
  • DNS write: Enable/disable record modifications
  • Firewall write: Enable/disable security rule changes
  • Cache purge: Allow cache clearing operations