AI Today

🔐 Cloudflare makes authentication mandatory for new AI Gateways

· 2 min

In brief


Cloudflare’s AI Gateway now requires authentication when a gateway is created through its API. Existing unauthenticated gateways continue to run and can opt in. Once a gateway has authentication enabled, Cloudflare rejects attempts to disable it, so callers need suitable Cloudflare credentials before switching a shared gateway.


🚪 AI Gateway sits between an application and the AI services it uses. A gateway credential controls who can send requests to that gateway. The credential for the downstream AI provider serves a separate purpose. Cloudflare’s examples show how to supply gateway authentication for both its unified endpoint and provider-specific requests.

📅 The November 3 changelog describes three states. Creating a gateway through the API with the authentication setting omitted creates a protected gateway. Explicitly requesting an unprotected new gateway returns HTTP 400. An older gateway that still allows unauthenticated calls remains in that state until an operator enables authentication. An API update can still send the old false value while the gateway is unprotected.

The switch is one-way for a given gateway. Setting the flag to false after it has been enabled returns HTTP 400 as well, but for a different reason: the gateway has already crossed that boundary. That distinction matters for infrastructure templates. An existing deployment that keeps a false value in its configuration and an automation that tries to create an equivalent gateway can behave differently, even with the same configuration value.

🧰 A team preparing to enable the check on an older gateway can first identify the scripts and applications that call it, arrange tokens with the appropriate permissions and verify that requests include the required credential. New automation can omit the old false flag and provision its callers accordingly. The changelog concerns access to the gateway; the model selection and credentials used to reach an upstream provider still depend on the request and the team’s setup.

Sources

Open in the interactive reader →

This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources. Imprint, privacy policy and terms of service