Content Safety
Detects harmful text and images and screens prompts for jailbreaks, ungrounded answers and protected material.
- Provider
- azure
- Kind
- AI service
- Category
- Compute
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| auth | enum | api-key | oauth | iam | none | no | — | ▸ api-key |
| blocklists | boolean | — | no | false | inherited |
| contentFiltering | boolean | — | no | — | ▸ true |
| customCategories | boolean | — | no | false | inherited |
| customerManagedKeys | boolean | — | no | — | ▸ false |
| dataResidency | enum | us | eu | asia | global | no | — | inherited |
| dataRetentionDays | integer | — | no | — | inherited |
| keyStore | boolean | — | no | false | inherited |
| managed | boolean | — | no | false | ▸ true |
| maxImageSizeMb | integer | — | no | 4 | inherited |
| maxTextLength | integer | — | no | 10000 | inherited |
| modality | enum | text | vision | speech | multimodal | structured | image | video | audio | embedding | rerank | no | — | ▸ multimodal |
| promptShields | boolean | — | no | false | inherited |
| publicEndpoint | boolean | — | no | — | ▸ true |
| quotaUnitsPerMinute | integer | — | no | — | ▸ 6000 |
| rateLimitRpm | integer | — | no | — | inherited |
| rateLimitTpm | integer | — | no | — | inherited |
| tier | enum | f0 | s0 | no | — | inherited |
| viaGateway | boolean | — | no | false | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
This AI vendor is reached with an API key, and nothing in the design holds or rotates that key. It ends up in environment files or code, every caller shares it, and a single leak runs up the vendor bill until someone notices. Put the key in a key-management component, or say it is held there with keyStore.
- — all of these hold:
- — the node's `auth` is "api-key"
- — the node's `keyStore` is false
- — the node has at least one incoming edge from an app-server, worker or client
- — this does not hold:
- — the design contains a node of kind key-management
A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.
- — all of these hold:
- — the node's `stateless` is false
- — the node sits inside exactly 1 availability-zone group
- — this does not hold:
- — the node sits inside at least one cell group
nodes:
- { id: "ai-content-safety", component: "azure-ai-content-safety" }# yaml-language-server: $schema=../../schema/component.schema.json # Azure AI Content Safety: text and image harm detection plus prompt shields, groundedness and protected material detection. # "What is Azure AI Content Safety?" gives the S0 rate limits (1,000 requests per 10 seconds for the moderation APIs, so 6,000 per minute) and the input limits of 10,000 characters for analyze text and 4 MB for analyze image; managed identity is enabled automatically on resource creation. # Prompt Shields ("Prompt Shields in Azure AI Content Safety") is its own text:shieldPrompt call that screens user prompts and documents for injection attacks, so promptShields starts off. schemaVersion: "1" type: "component" id: "azure-ai-content-safety" kind: "ai-service" provider: "azure" docs: "https://learn.microsoft.com/en-us/azure/ai-services/content-safety/overview" defaults: auth: "api-key" managed: true modality: "multimodal" contentFiltering: true publicEndpoint: true customerManagedKeys: false quotaUnitsPerMinute: 6000 properties: tier: type: "enum" values: ["f0", "s0"] maxTextLength: type: "integer" default: 10000 maxImageSizeMb: type: "integer" default: 4 blocklists: type: "boolean" default: false customCategories: type: "boolean" default: false promptShields: type: "boolean" default: false