Skip to content

feat(platform): let admins restrict model calls to endpoints that process in the EU/EEA #5041

Closed

Description

@yannickmonney

Summary

A pilot organization requires prompts to be processed in the EU/EEA. They found that a model whose only provider is hosted outside the EU (an OpenRouter model served by a single provider in the US) answered normally. Tale shows where a reply ran (#4493): services/platform/lib/chat/serving.ts:62 maps eu.openrouter.ai, eu.api.openai.com, api.eu.mistral.ai and their US counterparts for the message info dialog (app/features/chat/components/message-info-dialog.tsx:92). Nothing refuses a call that would leave the region, though. The model-access policy allowlists models, not regions.

Proposed

  • A governance switch, either in the model-access policy or as its own policy: Process prompts only in the EU/EEA. When it is on:
    • only endpoints known to process in the region are callable: the regional endpoints already listed, Azure deployments in EU regions, and custom providers that an admin marks as EU-processing;
    • every other endpoint is refused with a clear message and hidden from the model pickers.
  • It applies to every model call: chat, tasks, automations, the model API, embeddings, image generation, transcription, and coding-agent traffic through the sandbox LLM gateway.
  • OpenRouter is allowed only through eu.openrouter.ai (in-region routing).
  • The message info dialog keeps showing the region of each reply (this exists today). The audit log records refusals.
  • Docs: a data residency guide for model processing.

Done when

  • With the switch on, a call to a non-EU endpoint is refused before any prompt bytes leave, and every surface says why.
  • The model pickers only offer compliant models.
  • Tests cover each surface listed above.

Scope for parallel work

This touches model resolution and serving (lib/chat/serving.ts, provider and model selection), governance, and the model pickers. It is independent of the other issues from this pilot. It can be split by surface once the policy shape is set.

Activity

  1. added
    priority: medium
    feat
    service: platform
    on Oct 23, 2026
  2. added
    agent-ready
    on Oct 29, 2026
  3. tale-code-bot commented on Oct 31, 2026

    @tale-code-bot
    Collaborator

    This issue is split into parts. Board task TALE-222 works part 1. Its plan is on the task.

    1. The switch and its enforcement (TALE-222). It adds euProcessing: { enabled, hosts } to the model-access policy and classifies endpoints. Calls to non-EU endpoints are refused, and each refusal is audited, at model resolution for chat, tasks, automations, the model API, embeddings, image generation, transcription and text-to-speech. Its squash message closes this issue.
    2. feat(platform): offer only EU/EEA-processing models in the pickers when the switch is on #5185: the model pickers offer only compliant models.
    3. feat(platform): hold sandbox coding-agent traffic to the EU/EEA processing switch #5186: sandbox coding-agent traffic follows the switch, on both the gateway lane and the subscription lane.
    4. docs(platform): document EU/EEA model processing in the data-residency guides #5187: the data-residency docs in en, de and fr.
    5. feat(platform): hold the guardrails moderation endpoint to the EU/EEA processing switch #5188: the guardrails' external moderation endpoint follows the switch.

    Checked at feature-train c0eb93b6b2eadf7744eaf0a666e55efb6d27c41f.

  4. added a commit that references this issue on Oct 31, 2026
    5c3231d
  5. added 2 commits that reference this issue on Oct 31, 2026
    c2bb3ea
    69e98ba
  6. 9 remaining items

  7. added 13 commits that reference this issue on Nov 2, 2026
    3fb107b
    61c9684
    b49454d
    29c5121
    9f73560
    3b2a782
    f1692f5
    f986247
    dfcd1c1
    c8aa51a
    122738f
    b697bb6
    4e0f1e4
  8. added a commit that references this issue on Nov 15, 2026
    97ff79c
  9. added a commit that references this issue on Nov 23, 2026
    a296c1f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyfeatpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions