39 lines
2.3 KiB
Plaintext
39 lines
2.3 KiB
Plaintext
# Auth checks on the live stack (tokens are not printed)
|
|
wrong password, POST /auth/sessions: 401 in 0.030955s
|
|
Basic on GET /users/me: 401 in 0.002498s
|
|
X-User-Id only, GET /users/me: 401 in 0.002170s
|
|
Bearer, GET /users/me: 200 in 0.004881s
|
|
redis GET session:<sha256>: {"id":"5870165f-4435-45c8-a765-b607aa414470","userId":"df0e4...
|
|
redis TTL of cached copy: 60s (session itself lives 3600s)
|
|
DELETE /auth/sessions/current: 204 in 0.008615s
|
|
redis value after logout: revoked, ttl 3599s
|
|
same token after logout: 401 in 0.003347s
|
|
|
|
# Short TTL: SESSION_TTL_SECONDS=5 docker compose up -d --wait api
|
|
right after login: 200 in 0.101714s
|
|
after 6 s: 401 in 0.020896s
|
|
(api recreated back with the default 3600 s)
|
|
|
|
# Redis is stopped: docker compose stop redis
|
|
GET /health/ready: 200 in 0.005506s
|
|
GET /users/me with token: 200 in 0.006916s
|
|
GET /users/me anonymous: 401 in 0.004147s
|
|
POST /auth/sessions: 201 in 0.030189s
|
|
DELETE /auth/sessions/current: 204 in 0.006507s
|
|
same token after logout: 401 in 0.003473s
|
|
after docker compose start redis, same token: 401 in 0.014775s
|
|
2026-10-08T21:31:27.380Z WARN [eventLoopGroupProxy-6-6] c.m.m.m.i.s.a.DefaultAuthenticationService - Session cache is unavailable, reading from the database: Currently not connected. Commands are rejected.
|
|
2026-10-08T21:31:27.382Z WARN [DefaultDispatcher-worker-2] c.m.m.m.i.s.a.DefaultAuthenticationService - Session cache is unavailable, session is not cached: Currently not connected. Commands are rejected.
|
|
|
|
# PostgreSQL is stopped: docker compose stop postgres
|
|
GET /health/live: 200 in 0.003356s
|
|
GET /health/ready: 503 in 0.008268s
|
|
GET /users/me with token: 503 in 2.029986s
|
|
body: {"error":{"code":"unavailable","message":"service temporarily unavailable","request_id":"..."}}
|
|
POST /auth/sessions: 503 in 2.014048s
|
|
GET /users/me anonymous: 401 in 0.003069s
|
|
GET /users/me with X-User-Id: 401 in 0.003128s
|
|
GET /users/me unknown token: 503 in 2.007361s
|
|
after docker compose start postgres, same token: 200 in 0.006353s
|
|
GET /health/ready: 200 in 0.003154s
|