Azilos Docs

AI Vendor Data Processing — Operator Responsibility

Audience: the deployment operator configuring this platform, not a code contributor. This document lives outside docs/adr/ deliberately, per ADR-035 §Decision point 4.

This document is not legal advice, does not assert what the AI vendor's current data retention, training-use, or contractual terms are, and cannot be substituted for your own review of those terms or your own organization's compliance requirements. It states only what this codebase does and does not do, and what you, as the deployment operator, are responsible for deciding before you enable AI.

Where AI requests go

A self-hosted install chooses one of two ways (ADR-967, ADR-968). Azilos Cloud, the hosted edition, has only the first.

What is sent

Three capabilities send tenant data. Each needs the tenant's own consent, and each sends something different (ADR-486):

Whatever is sent leaves your deployment boundary over the network: to Azilos Cloud and then its vendor, or straight to your own vendor.

What this codebase does not, and cannot, control

This install's adapters (AzilosCloudAiGatewayPort for Azilos Cloud, CloudAiGatewayPort for OpenAI, AnthropicAiGatewayPort for Anthropic) each make one kind of call and read one kind of response. None of them can:

Those are commercial and contractual matters: set out in Azilos's own terms and data-processing statement and in its vendor's terms, or, for your own vendor, between your organization and that vendor, through its own console, sales or legal process. See ADR-027-ai-gateway-cloud-real-adapter.md, ADR-032-ai-gateway-cloud-anthropic-second-vendor.md, ADR-034-understand-insight-consent-decline-data-retention.md and ADR-035-ai-vendor-data-processing-attestation.md for the reasoning behind this boundary.

What you are responsible for doing before enabling AI

Before setting an acknowledgment flag (below), you should independently:

  1. Review the current data processing, retention and training-use terms of whoever receives the requests, from those parties directly, not from this document: Azilos's data-processing statement and its vendor's terms, or your own vendor's terms (its API documentation, terms of service, or a signed DPA).
  2. Determine whether those terms satisfy your own organization's regulatory, contractual, or internal compliance requirements for the tenant data these capabilities send.
  3. Arrange any additional agreement your own requirements call for (a DPA, a Zero Data Retention agreement, or equivalent).
  4. Do this for each way you enable: reviewing OpenAI's terms says nothing about Anthropic's, or about Azilos Cloud's. If you later switch, redo the review before setting the new flag.

The acknowledgment flags

One flag per way, each independent:

Environment variableGates
AI_GATEWAY_AZILOS_DATA_PROCESSING_ACKNOWLEDGEDAzilosCloudAiGatewayPort (Azilos Cloud, ADR-594)
AI_GATEWAY_CLOUD_OPENAI_DATA_PROCESSING_ACKNOWLEDGEDCloudAiGatewayPort (OpenAI, ADR-027)
AI_GATEWAY_CLOUD_ANTHROPIC_DATA_PROCESSING_ACKNOWLEDGEDAnthropicAiGatewayPort (Anthropic, ADR-032)

Each accepts exactly true or false (any other value fails configuration loudly rather than being silently coerced). The selected way's own flag must be true, alongside its own key, before any AI route does anything other than report ... is not configured; another way's flag or key never stands in. With NODE_ENV=production, the API does not start without them (ADR-684, ADR-967).

Setting a flag to true without having actually completed the review above defeats the entire purpose of this gate. This codebase has no way to verify that you performed the review — the flag is an attestation, not a technical check (ADR-035 §Decision point 3) — so its only value comes from being set truthfully.