Skip to content

fix(auth): evict nonces only after both clocks pass the window - #463

Merged
scttbnsn merged 2 commits into
dev/v1.0from
fix/nonce-both-clocks
Nov 3, 2026
Merged

scttbnsn merged 2 commits into
dev/v1.0from
fix/nonce-both-clocks

Conversation

@scttbnsn

@scttbnsn scttbnsn commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

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 -race on auth (nonce.go at 100%), vet, gofmt, gosec, qlty.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration
Commits

Reviewing files that changed from the base of the PR and between 1950302 and 0df759f.

Files ignored due to path filters: 1
  • CHANGELOG.md is excluded by !CHANGELOG.md
Files selected for processing: 2
  • internal/auth/nonce.go
  • internal/auth/nonce_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.

@codecov

codecov Bot commented Nov 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@biggest-littlest biggest-littlest left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed by orchestrator: expired() requires both wall and monotonic elapsed past the TTL; tests cover forward and backward steps.

@ALARGECOMPANY ALARGECOMPANY left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed by orchestrator: expired() requires both wall and monotonic elapsed past the TTL; tests cover forward and backward steps.

@scttbnsn
scttbnsn merged commit 8aa810c into dev/v1.0 Nov 3, 2026
39 checks passed
@scttbnsn
scttbnsn deleted the fix/nonce-both-clocks branch November 6, 2026 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants