github cloudflare/cloudflare-go v7.3.0

4 hours ago

7.3.0 (2026-05-20)

Full Changelog: v7.2.0...v7.3.0

This release adds several new services and sub-resources across DDoS Protection, AI Security, R2
bucket objects, Workers observability queries, Zero Trust SAML certificates, and more. All changes
are additive -- there are no breaking changes in this release.


Features

DDoS Protection (client.DDoSProtection)

  • NEW SERVICE: Advanced TCP Protection management for Magic Transit accounts
    • AdvancedTCPProtection.Allowlist -- manage allowlist entries
      • New(), List(), BulkNew(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.Prefixes -- manage IP prefix configurations
      • New(), List(), BulkNew(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.SynProtection.Filters -- SYN flood protection filters
      • New(), List(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.SynProtection.Rules -- SYN flood protection rules
      • New(), List(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.TCPFlowProtection.Filters -- TCP flow protection filters
      • New(), List(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.TCPFlowProtection.Rules -- TCP flow protection rules
      • New(), List(), BulkDelete()
      • Items.Delete(), Items.Edit(), Items.Get()
    • AdvancedTCPProtection.Status -- TCP protection status
      • Edit(), Get()

AI Security (client.AISecurity)

  • NEW SERVICE: Zone-level AI security settings management
    • Update() -- update AI security settings for a zone
    • Get() -- get current AI security settings
    • CustomTopics.Update() -- update custom topic definitions
    • CustomTopics.Get() -- get custom topic definitions

R2 Bucket Objects (client.R2.Buckets.Objects)

  • NEW SUB-RESOURCE: Manage objects within R2 buckets via the control plane API
    • List() -- list objects in a bucket (cursor-paginated)
    • Delete() -- delete a specific object
    • Get() -- download an object (returns *http.Response)
    • Upload() -- upload an object from an io.Reader

Workers Observability Queries (client.Workers.Observability.Queries)

  • NEW SUB-RESOURCE: Saved observability queries for Workers telemetry
    • New() -- create a saved query
    • List() -- list saved queries

Workers Secrets Bulk Update (client.Workers.Scripts.Secrets)

  • Added BulkUpdate() method -- bulk update secrets for a Worker script via
    PATCH /accounts/{account_id}/workers/scripts/{script_name}/secrets-bulk

Zero Trust - SAML Certificate Management

  • Identity Providers (client.ZeroTrust.IdentityProviders.SAMLCertificate)

    • New() -- create a SAML certificate for an identity provider
  • Access SAML Certificates (client.ZeroTrust.Access.SAMLCertificates)

    • List() -- list all SAML certificate sets
    • Get() -- get a specific SAML certificate set
    • GetPem() -- download certificate in PEM format (returns *http.Response)
    • Rotate() -- rotate a SAML certificate set

Zero Trust - Resource Library (client.ZeroTrust.ResourceLibrary)

  • NEW SUB-RESOURCE: Browse the Zero Trust resource library
    • Applications.List() -- list available applications
    • Applications.Get() -- get application details
    • Categories.List() -- list application categories
    • Categories.Get() -- get category details

Secrets Store (client.SecretsStore.Stores)

  • Added Get() method -- retrieve a specific secrets store by ID

AI Search Namespaces (client.AISearch.Namespaces)

  • Added namespace-level convenience methods (previously only available at the instance level):
    • Delete() -- delete a namespace
    • ChatCompletions() -- run chat completions against a namespace
    • Read() -- get namespace details
    • Search() -- search within a namespace

Other Updates

  • Updated generated types and methods across many packages including ai_gateway,
    api_gateway, cache, email_security, intel, load_balancers, logpush,
    radar, secrets_store, workers, workers_for_platforms, workflows, and
    zones

Don't miss a new cloudflare-go release

NewReleases is sending notifications on new releases.