Join our Newsletter — 33% off our NHI Course

Should organisations use a router first and a gateway later?

Yes, if the router is limited to experimentation and benchmarking. But once AI touches regulated data, shared teams, or production workflows, the gateway needs to arrive early because access control and auditability are harder to retrofit than routing logic.

Why This Matters for Security Teams

The router first, gateway later pattern is attractive because it lets teams move quickly: route prompts, test models, compare latency, and prove value before adding policy enforcement. The risk is that routing becomes a shadow control plane if it begins handling production traffic, sensitive prompts, or shared credentials without the governance that a gateway provides. NIST’s NIST Cybersecurity Framework 2.0 is useful here because it reinforces that security outcomes depend on governance, access control, monitoring, and resilience, not just network path decisions.

For AI systems, the decision is not only about traffic management. It also affects prompt inspection, tool permissions, output logging, policy enforcement, and the ability to prove who accessed what. If the environment includes regulated data, shared assistants, or agentic workflows, the gateway becomes part of the control surface, not a nice-to-have wrapper. Current guidance suggests that experimentation can happen with lighter routing, but once the system influences business decisions or touches customer data, access governance and auditability must be designed in early. In practice, many security teams encounter missing AI access controls only after a model has already been embedded in live workflows and exceptions have multiplied.

How It Works in Practice

A router usually decides where a request goes. It may select between models, regions, or providers based on cost, latency, language, or prompt category. A gateway sits closer to enforcement. It can authenticate callers, apply policy, inspect requests and responses, redact sensitive fields, log activity, and block disallowed actions. In mature setups, the router and gateway are not substitutes. They are separate layers with different purposes.

For AI security, that separation matters because the router optimises flow while the gateway enforces trust. A practical design often looks like this:

  • The router selects the model or service based on workload needs.
  • The gateway checks identity, entitlement, and policy before any tool or model call proceeds.
  • Logging captures prompts, tool invocations, approvals, and response handling for audit and investigation.
  • Controls for prompt injection, data leakage, and unsafe output are applied at or near the gateway.

This approach aligns with the governance emphasis in the NIST AI Risk Management Framework, and it also reflects the threat patterns documented by MITRE ATLAS for adversarial manipulation of AI systems. Where organisations use agentic AI, the gateway becomes even more important because tool access can create real-world side effects, not just text generation. The gateway is also where Non-Human Identity controls often emerge: workload identity, scoped tokens, and service-to-service authorisation can be tied to the specific agent or workflow. These controls tend to break down when teams let the router evolve into an uncontrolled policy layer because routing logic alone cannot reliably enforce identity, audit, and approval boundaries.

Common Variations and Edge Cases

Tighter gateway controls often increase latency, integration effort, and operational overhead, so organisations must balance speed of experimentation against the cost of hardening too early. That tradeoff is real, especially in proof-of-concept environments where the goal is to learn quickly rather than to enforce production policy.

Best practice is evolving for mixed environments. A lab or sandbox can often start with routing alone if the data is synthetic, the models are isolated, and no persistent credentials or shared accounts are involved. Once any of the following appear, the balance changes:

  • regulated or personal data in prompts or outputs
  • shared access across teams or business units
  • agent actions that call external tools or APIs
  • human approval steps that need evidence and traceability
  • multiple model vendors with different logging and retention practices

In these cases, the gateway should arrive before production use, not after. That is especially true where identity governance is required for access reviews, exception handling, or incident response. OWASP’s guidance on OWASP Top 10 for Large Language Model Applications is helpful for understanding how data exposure, prompt injection, and tool misuse can appear at integration boundaries. The main exception is a tightly controlled internal benchmark environment with no sensitive data and no downstream actioning, where a temporary router-only setup can be acceptable if it is explicitly time-boxed and not reused for production.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

MITRE ATLAS and OWASP Agentic AI Top 10 address the attack and risk surface, while NIST CSF 2.0, NIST AI RMF and NIST AI 600-1 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
NIST CSF 2.0 GV.OC-01 Gateway timing is a governance and operational resilience decision.
NIST AI RMF GOVERN AI gateway controls support accountability, risk ownership, and policy enforcement.
MITRE ATLAS Prompt injection and tool abuse are core AI attack paths at the gateway edge.
OWASP Agentic AI Top 10 Agentic workflows need controls for tool access, approvals, and output handling.
NIST AI 600-1 GenAI profile guidance supports secure deployment boundaries and monitoring.

Use ATLAS to test how requests can be manipulated before they reach models or tools.