Skip to main content
Home
GrN.dk

Main navigation

  • Articles
  • Cases
  • Services
  • Your Digital Project Manager
  • About Greg Nowak
  • Image Gallery
  • Contact
User account menu
  • Log in

Join my community / free newsletter — sign up here

Breadcrumb

  1. Home

Your AI Gateway Can Name the User. Decide What That Log Is For

Illustrated infographic summarizing: Your AI Gateway Can Name the User. Decide What That Log Is For

By Greg Nowak. Last updated 2026-08-31.

Adding a verified identity to an AI Gateway log makes the data far more useful. A sudden increase in spend can be traced to an account. A risky prompt is no longer an anonymous event. The business can compare the activity with that account's usual behaviour and decide whether someone needs to investigate, limit access or block the request.

There is a catch. A gateway that records identities, prompts, responses and costs can quickly become a searchable store of sensitive operational data. Before collecting more, the organisation needs to be clear about what the logs are for, who can inspect them and when they should be deleted.

What identity adds to the gateway

Cloudflare's identity-aware AI Gateway with Access entered open beta in August 2026, while User Insights became generally available. Access can put an AI Gateway custom domain behind identity-provider authentication and attach the verified Access subject to each request as cf.user_id. This value is the subject from the JWT, not the person's email address.

Administrators can use it to filter logs, analytics and spend by authenticated user. User Insights also establishes behavioural baselines for people and agents, then highlights sessions that differ from an account's own history. That distinction matters. A scheduled service and a frequent human user may both generate heavy traffic without sharing anything like the same normal pattern.

An anomaly is still only a reason to look closer. Cloudflare says User Insights neither determines intent nor blocks an account. Unusual activity could point to compromised credentials, a faulty agent, an inefficient workflow or perfectly legitimate work. The alert narrows the search; an agreed investigation process determines what happens next.

People are only part of the identity model

The cf.user_id field has a clear boundary. It is added when a request reaches an Access-protected custom domain with a valid user subject. Requests authenticated with service tokens do not carry the field because they do not represent an individual Access user.

Reports therefore need to distinguish between people and automation. Human activity can be attributed to a verified Access subject. Services, agents and integrations need separate, stable identifiers, documented owners and a credential lifecycle. Treating every actor as a generic user may make a dashboard look tidy, but it leaves automated activity poorly accounted for.

The route matters as much as the identity. Requests to an Access-protected custom domain must satisfy its Access policy, so existing integrations may need updating. Traffic sent to Cloudflare's default gateway endpoint is outside that Access configuration. A route map showing which applications must use which endpoint is part of the control itself.

Start with the decision, not the data

Gateway logs can support cost allocation, security investigations, acceptable-use enforcement, troubleshooting and service improvement. Each purpose calls for a different mix of fields, content access and retention.

Cost management, for example, may need the identity, model, token usage and application metadata without giving teams routine access to full prompts. A content-safety review may need the relevant prompt and response, but only for flagged interactions. An incident investigation may require a broader timeline spanning identity, application, network and tool activity.

The Cloud Security Alliance makes the same practical point at a wider level. Network traffic, API calls and system events should be viewed alongside agent-level evidence such as decision chains, tool invocations and outputs. Gateway identity alone cannot explain everything an AI system did. Network telemetry may confirm that an API call happened while revealing little about whether it came from an employee, an agent or a compromised account.

Question to settle Operational decision What should exist
Who made the request? Separate verified people from services and agents. Access subjects for people; owned identifiers and credentials for automation.
Why keep the event? Name the cost, security, support or compliance decision it supports. A documented purpose and the minimum fields required for it.
Who can read the content? Limit prompt and response access to defined roles and cases. An access procedure, review trail and escalation criteria.
What follows a signal? Choose whether to observe, review, block or use a cheaper model. A guardrail action, spend rule, alert owner and response playbook.
How long is it useful? Set retention for each purpose instead of keeping everything indefinitely. A retention schedule, exception process and deletion check.
What happens when access ends? Remove human access and rotate or retire automation credentials. An offboarding checklist tied to identity and service ownership.
Six decisions that turn identity-aware logging into a working operational control.

Match the control to the consequence

The 2026 Netskope report shows how patchy AI visibility remains. Only 6% of surveyed organisations reported complete visibility into AI use; 94% described some degree of gap. Many teams also could not reliably tell personal AI accounts from corporate ones. This is an argument for clearer routes, account distinctions and activity monitoring, not for storing every prompt by default.

Once routes and identities are defined, Cloudflare offers several places to intervene. Guardrails can inspect prompts and model responses across providers. Depending on the configuration, they can flag content for review or block it before the workflow continues. The right action depends on the application. A false positive in an internal writing tool is inconvenient; the same mistake in a customer-facing service can interrupt a live transaction.

Spend limits provide a separate financial control. They can be scoped by model, provider or metadata, including cf.user_id for authenticated people. Reaching a limit normally causes requests to be rejected with a 429 response. A dynamic route can instead send the traffic to a cheaper fallback model.

Teams should set expectations around those limits. Cloudflare documents that enforcement is eventually consistent, so concurrent requests can briefly take spending beyond the threshold. Its cost tracking is also a best-effort estimate; the provider's bill remains authoritative. A limit is therefore a useful operating boundary, not an exact accounting ceiling.

Write the investigation procedure before alerts arrive

Every signal needs an owner. That person or team should know what context they may inspect, how to check whether the activity was expected and what action they are authorised to take. The procedure should also define when to open a security case, when to involve a manager or system owner, and which evidence must be preserved.

The first checks can be very concrete. Did the request use an approved route? Was the actor a person or a service? Did the model, timing, cost or content differ from that identity's normal activity? Was the prompt flagged, the response, or both? If the interaction triggered tools or changed another system, the investigation will also need evidence from that system.

Offboarding needs equal care. Removing an employee from Access addresses their human authentication, but it does not retire service tokens, embedded credentials or agents they once owned. Each non-human identity should have a named business owner, a technical owner and a documented action for the point when either relationship ends.

A workable order of implementation

Begin by inventorying the AI applications, gateway routes, providers, human groups, services and agents in use. Mark the workflows that may handle sensitive information and those able to change external systems. The Cloud Security Alliance recommends using more than one discovery mechanism because sanctioned applications show only part of the environment.

Then put approved human routes behind Access and confirm that attribution works. Give services their own identities instead of accepting a missing cf.user_id as an unavoidable blind spot. For each logging purpose, choose the minimum data needed, assign access roles and set a retention period.

Behavioural alerts, per-user budgets and guardrail actions come next. Test the awkward cases: a blocked request, a breached budget, a departing employee and an agent whose behaviour changes unexpectedly. Document the routes, controls and procedures so a new owner can understand how the system is supposed to work.

The gateway's ability to name a user is only the starting point. Useful governance comes from knowing why that identity was recorded, who is allowed to act on it, how long the evidence remains useful and what the organisation will do when the log shows something unusual.

Related on GrN.dk

  • Cloudflare AI Gateway Brings LLM Budgets Into the Request Path
  • Agentic AI: What It Is, How It Works, and When to Use It
  • Cloudflare Service Keys: Audit Old Automation Before September 30

Need help with this kind of work?

Plan your governed AI gateway Get in touch with Greg.

Sources

  • Cloudflare Access for AI Gateway
  • Catching rogue AI behavior with identity-aware analytics
  • AI Gateway spend limits
  • Guardrails in Cloudflare AI Gateway
  • 2026 Netskope AI Security Report
  • Enterprise AI Security Visibility Crisis
Last modified
2026-08-31

Tags

  • ai-governance
  • Cloudflare
  • identity
  • llm-operations
  • cost-control

Review Greg on Google

Greg Nowak Google Reviews

 

Written recommendations from Trafik og Veje, Aarhus Municipality (2011) and AgroTech (2010) — read them on LinkedIn.

Illustrated infographic summarizing: Your AI Gateway Can Name the User. Decide What That Log Is For
Your AI Gateway Can Name the User. Decide What That Log Is For
2026-08-31

Identity-aware AI Gateway logs can sharpen security and cost control, but only when attribution, access, retention, guardrails, and response are clearly defined.

Illustrated infographic summarizing: Zero Data Retention Is a Workflow Audit, Not a Checkbox
Zero Data Retention Is a Workflow Audit, Not a Checkbox
2026-08-30

Zero Data Retention covers the provider, not every copy in your stack. See how to audit endpoints, logs, storage, deletion and project-level controls.

Illustrated infographic summarizing: MCP 2026-07-28 Is an Auth Migration, Not a Version Bump
MCP 2026-07-28 Is an Auth Migration, Not a Version Bump
2026-08-29

MCP’s July 2026 release removes protocol sessions and tightens OAuth. Here’s a practical plan for migrating clients, servers and enterprise access safely.

Illustrated infographic summarizing: Turn a Technician’s Voice Note into a Work Order—Not Raw Audio
Turn a Technician’s Voice Note into a Work Order—Not Raw Audio
2026-08-28

Voice input can reduce the technician’s documentation burden when hours, materials and status are validated before the information is saved in the work order system.

Illustrated infographic summarizing: ChatGPT Disabled Personal Knowledge Sync. What Broke on Your Team?
ChatGPT Disabled Personal Knowledge Sync. What Broke on Your Team?
2026-08-27

ChatGPT retired personal sync connections for Enterprise and Edu. Here is how to find affected workflows, migrate access, and test permissions.

Illustrated infographic summarizing: Cloudflare’s September Bot Defaults Could Quietly Cut AI Visibility
Cloudflare’s September Bot Defaults Could Quietly Cut AI Visibility
2026-08-26

Cloudflare’s September bot defaults give publishers more control, but one training block could also cut search crawling and AI-driven discovery.

Illustrated infographic summarizing: Does Your AI Chatbot Clearly Identify Itself?
Does Your AI Chatbot Clearly Identify Itself?
2026-08-25

The EU’s transparency requirements for AI chatbots now apply. Here is how to make your bot’s identity clear, limit its system access and provide a genuine route to a member of staff.

Illustrated infographic summarizing: Should publishers add Google’s new Preferred Sources button?
Should publishers add Google’s new Preferred Sources button?
2026-08-24

Google’s Preferred Sources button is worth a controlled test for eligible publishers, with careful choices around placement, performance and measurement.

Illustrated infographic summarizing: Search Console Can See TikTok Now. Your Reporting Has to Catch Up
Search Console Can See TikTok Now. Your Reporting Has to Catch Up
2026-08-23

Google can now report how social profiles appear in Search. Here is how to measure cross-channel discovery without mistaking visibility for business results.

Illustrated infographic summarizing: Your AI workflow has logs. Can they explain one bad decision?
Your AI workflow has logs. Can they explain one bad decision?
2026-08-22

Logs can show that every service worked while leaving a bad AI decision unexplained. See how connected traces and careful redaction close the gap.

More articles

Built by AI — available for your business. The daily articles on this site are researched, written and illustrated by an autonomous AI pipeline. At nowa.dk I install the same kind of AI automation in businesses at fixed prices — site in Danish, English version here, and web/marketing agencies have a dedicated page.

RSS feed

Footer

  • All articles
  • Contact

GrN.dk — AI automation, web platforms, web optimization, data handling and logistics.

© 2026 GrN.dk · LinkedIn · Contact · AI automation in Danish: nowa.dk

Behind GrN.dk: Individual Entrepreneur Codecrafter · Tax ID 305669096 · Bakhtrioni St. 22, 0194 Tbilisi, Georgia · official business register