miroir/crates/miroir-proxy/src
jedarden 18f9d82415 P2.9: Expand reserved field write rejection tests
Implement write-path rejection of reserved `_miroir_*` field names
per plan §5 "Reserved fields":

- `_miroir_shard`: Always rejected (unconditional)
- `_miroir_updated_at`: Rejected when anti_entropy.enabled: true
- `_miroir_expires_at`: Never rejected for writes (clients SET it)

Changes:
- Expand unit tests in documents.rs to cover all matrix cells
- Add helper function for building reserved field errors
- Add test for orchestrator shard injection flow
- Add test for validation order (_miroir_shard before PK check)
- Fix ttl_enabled parameter passing in search.rs and multi_search.rs

All tests pass: 12 unit tests + 6 integration tests

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 07:46:43 -04:00
..
routes P2.9: Expand reserved field write rejection tests 2026-05-20 07:46:43 -04:00
admin_session.rs P10.4: ADMIN_SESSION_SEAL_KEY cookie sealing with XChaCha20-Poly1305 2026-04-19 17:18:39 -04:00
auth.rs P10.5: scoped Meilisearch key rotation with multi-pod coordination 2026-04-20 07:33:29 -04:00
client.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00
error.rs Integrate MeilisearchError into proxy (IntoResponse, auth middleware) + telemetry 2026-04-19 05:21:09 -04:00
lib.rs P10.5: scoped Meilisearch key rotation with multi-pod coordination 2026-04-20 07:33:29 -04:00
main.rs bf-1p4v: Verify compile error already fixed 2026-05-20 07:12:51 -04:00
middleware.rs P5.5 §13.5 Two-phase settings broadcast + drift reconciler (OP#4) 2026-05-05 12:50:25 -04:00
otel.rs P7.6: Implement OpenTelemetry tracing (disabled by default) 2026-04-19 10:15:39 -04:00
scoped_key_rotation.rs P3: Task Registry + Persistence — 14-table SQLite schema, Redis mirror, Helm validation 2026-04-24 15:50:20 -04:00