Repository navigation
fix(auth): evict nonces only after both clocks pass the window - #463
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 42 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
biggest-littlest
left a comment
There was a problem hiding this comment.
Reviewed by orchestrator: expired() requires both wall and monotonic elapsed past the TTL; tests cover forward and backward steps.
ALARGECOMPANY
left a comment
There was a problem hiding this comment.
Reviewed by orchestrator: expired() requires both wall and monotonic elapsed past the TTL; tests cover forward and backward steps.
CodeRabbit pass 1 on #462: a forward wall step past the TTL could evict a nonce that then replays after the clock steps back. Nonces now expire only when both the wall clock and the monotonic clock pass the window. The CHANGELOG line is updated to match.
Checked:
go test -raceon auth (nonce.go at 100%), vet, gofmt, gosec, qlty.