feat: harden identity and recovery operations

This commit is contained in:
2026-08-04 20:24:18 +01:00
parent 7a4ac48aaf
commit eae2a44f46
30 changed files with 1428 additions and 21 deletions

View File

@@ -0,0 +1,15 @@
<?php
test('liveness endpoint is public and does not expose internals', function () {
$this->get(route('health.live'))
->assertOk()
->assertHeader('Cache-Control', 'no-store, private')
->assertExactJson(['status' => 'ok']);
});
test('readiness endpoint checks the database and cache', function () {
$this->get(route('health.ready'))
->assertOk()
->assertJson(['status' => 'ready'])
->assertJsonMissingPath('services');
});