-
Notifications
You must be signed in to change notification settings - Fork 14
Remove IAT from server side token. #198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughSets JWT issued-at (iat) to current time minus 5 seconds when creating tokens; token builder now accepts an optional Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
getstream/stream.py(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: CI
getstream/stream.py
[error] 1-1: Token expiration calculation off by 5 seconds for expiration=10; decoded exp != iat + expiration. Potential clock skew handling issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
tests/test_video_integration.py (1)
65-66: Expiration assertion matches new leeway semantics; consider tightening the commentThe assertion
decoded["exp"] == decoded["iat"] + 5 + 10correctly encodes “5s leeway + 10s expiration” given the new backdatediatbehavior, so the test is aligned with the intended change.If you want to make the intent a bit clearer for future readers, you could tweak the comment like this (no behavior change):
- # 5 seconds to avoid clock skew and 10 seconds - expiration - assert decoded["exp"] == decoded["iat"] + 5 + 10 + # exp should be 15s after iat: 5s leeway + 10s expiration + assert decoded["exp"] == decoded["iat"] + 5 + 10
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
📒 Files selected for processing (1)
tests/test_video_integration.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Tests (3.11)
- GitHub Check: Tests (3.13)
- GitHub Check: Tests (3.12)
- GitHub Check: Tests (3.10)
Summary by CodeRabbit
Bug Fixes
Tests
✏️ Tip: You can customize this high-level summary in your review settings.