curo1305
30ad9fd015
security(07.2-02): add user_nbf Redis NBF check to get_current_user
- Added import logging + _logger = logging.getLogger(__name__) to deps/auth.py
- Inserted user_nbf Redis check block after decode_access_token in get_current_user
- Check reads user_nbf:{payload['sub']} from Redis; rejects if payload['iat'] < stored timestamp
- Uses strict < comparison (token issued exactly at event second is allowed — D-02)
- Handles both bytes and str returns from Redis for FakeRedis/aioredis compatibility
- except HTTPException: raise guard precedes broad except Exception (T-7.2-02 Pitfall 1)
- Broad except logs warning and fails open (D-04 — Redis outage must not block requests)
- Promoted all 3 Wave 0 NBF xfail stubs to passing assertions in test_auth_deps.py
2026-06-05 19:19:06 +02:00
..
2026-05-22 08:53:28 +02:00
2026-06-04 23:15:48 +02:00
2026-06-04 23:19:40 +02:00
2026-06-05 19:08:27 +02:00
2026-06-04 19:14:48 +02:00
2026-06-04 19:10:05 +02:00
2026-05-23 13:42:37 +02:00
2026-06-04 23:15:49 +02:00
2026-06-05 19:07:30 +02:00
2026-06-05 19:19:06 +02:00
2026-05-22 19:52:36 +02:00
2026-06-04 19:14:48 +02:00
2026-05-28 21:06:14 +02:00
2026-05-28 20:58:40 +02:00
2026-05-30 18:04:09 +02:00
2026-05-31 12:04:21 +02:00
2026-06-04 23:08:16 +02:00
2026-06-05 09:30:03 +02:00
2026-05-22 08:53:28 +02:00
2026-05-28 17:10:52 +02:00
2026-05-22 09:53:39 +02:00
2026-05-28 17:10:52 +02:00
2026-06-03 18:47:49 +02:00
2026-06-01 15:43:01 +02:00
2026-06-04 18:27:49 +02:00
2026-05-31 12:04:21 +02:00
2026-05-31 15:21:02 +02:00
2026-05-23 20:32:55 +02:00
2026-05-31 15:04:53 +02:00
2026-05-30 18:56:58 +02:00
2026-05-22 19:19:52 +02:00
2026-06-05 19:15:01 +02:00
2026-05-23 20:15:44 +02:00
2026-05-31 12:04:21 +02:00
2026-05-28 21:07:18 +02:00