api-platform-security · git:20261005.042befb · 2026-10-05 · sha256 3308fd065ab8a496
api-platform-security git:20261005.042befbA
Immutable. This exact content never changes and is served at /api/v1/blob/3308fd065ab8a496.
--- name: api-platform-security description: Secure API Platform resources with security expressions, voters, securityPostValidation, and operation-level access control capabilities: [read, search, edit, shell] tags: [api-platform, security] # projected by `bun run build` — do not edit by hand allowed-tools: - Read - Glob - Grep - Write - Edit - Bash --- # Api Platform Security (Symfony) ## Use when - Designing or evolving API Platform contracts and operations. - Aligning serialization, validation, and security behavior. ## Default workflow 1. Define operation-level contract and payload boundaries. 2. Implement resource/DTO/provider/processor changes with explicit mapping. 3. Apply operation-specific validation and security constraints. 4. Validate functional behavior across happy and negative paths. ## Guardrails - Keep API contract explicit and version-aware. - Avoid exposing internal entity fields implicitly. - Prevent drift between docs and actual serialization. ## Progressive disclosure - Use this file for execution posture and risk controls. - Open references when deep implementation details are needed. ## Output contract - API artifacts changed (resource/DTO/provider/processor). - Contract/security decisions and rationale. - Functional verification results. ## References - `reference.md`