# encryption_key_policy_too_broad

<!-- Generated by scripts/generate.ts. Do not edit. -->

<!-- Source: core commit `f70874a3916ad5b24a8619246cbae6cc8bc24d27`. -->

<div data-pagefind-ignore>

Since API version `1.0`.

| Field     | Value             |
| --------- | ----------------- |
| Type      | `invalid_request` |
| Status    | 400               |
| Surfaces  | `api`, `portal`   |
| Retryable | No                |

</div>

## Developer message

The key worked under another environment's encryption context: its key policy must pin kms:EncryptionContext:ohauthcat_environment (and ohauthcat_scope for an organization key) as documented

## IT administrator message

This key's policy is too broad. Add the encryption context conditions from the setup instructions

## Translated IT administrator messages

The hosted portal shows these machine translations, which native speakers have not reviewed yet. Placeholders and identity provider console labels stay in English.

- `de`: <span lang="de" data-pagefind-ignore>Die Richtlinie dieses Schlüssels ist zu weit gefasst. Fügen Sie die Bedingungen für den Verschlüsselungskontext aus der Einrichtungsanleitung hinzu</span>
- `es`: <span lang="es" data-pagefind-ignore>La política de esta clave es demasiado amplia. Añada las condiciones de contexto de cifrado de las instrucciones de configuración</span>
- `fr`: <span lang="fr" data-pagefind-ignore>La stratégie de cette clé est trop large. Ajoutez les conditions de contexte de chiffrement des instructions de configuration</span>
- `ja`: <span lang="ja" data-pagefind-ignore>このキーのポリシーは範囲が広すぎます。セットアップ手順の暗号化コンテキスト条件を追加してください</span>
- `pt-BR`: <span lang="pt-BR" data-pagefind-ignore>A política desta chave é ampla demais. Adicione as condições de contexto de criptografia das instruções de configuração</span>

Security invariants: 22, 23.
