Repository navigation
Commit 87ff841
committed
Fix revoke race returning stale approved status and clear last_seen_at on re-register
Bug 1: In client-approval mode, when markSeen returns None (because the
client was revoked/rejected between upsert and markSeen), the fallback
incorrectly returned status 'approved'. Now returns 'rejected' to prevent
credential minting for revoked/rejected clients.
Bug 2: The upsert conflict path for revoked clients cleared status,
approved_at, rejected_at, and revoked_at but never cleared last_seen_at,
causing stale 'Last connected' times after re-registration. Now resets
last_seen_at to NULL when a revoked client re-registers.1 parent 4f4335b commit 87ff841
2 files changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
333 | 333 | | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
0 commit comments