Skip to content

fix(auth): defer unused Redis limiter connections - #589

Merged
imshashank merged 2 commits into
mainfrom
codex/fix-auth-redis-initialization
Nov 16, 2026
Merged

imshashank merged 2 commits into
mainfrom
codex/fix-auth-redis-initialization

Conversation

@imshashank

@imshashank imshashank commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Loading the login page constructs auth rate-limit storage even when no limiter operation is needed. Defer its Redis connection until the first get, set or consume operation.

The TCP regression demonstrated an unwanted connection before the fix and zero idle connections afterward. All six limiter tests passed, preserving real enforcement and existing failure behavior. An independent Node 24.22.3 check confirms the same behavior. Manual review found no additional blocker.

Current head 8a78d08 integrates main 27b73b5 as an exact disjoint union. All six current-head CI jobs, both browser suites, CodeQL and links passed. Full local verification is actively running on the frozen current source with eight guarded owned local databases; merge remains held until its actual result and exact preview are verified.

No migration or dependency change. This removes unnecessary initialization work; the cause of transient Redis connection timeouts is not established.

@coderabbitai

coderabbitai Bot commented Nov 16, 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 45 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

  • Source mode: Auto
  • Repository: Noveum/orbit
  • Branch: main
  • File: .coderabbit.yaml
  • Commit: 27b73b5
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f710617a-6439-47c9-9443-c3e42d8c05df
Commits

Reviewing files that changed from the base of the PR and between 27b73b5 and 8a78d08.

Files selected for processing: 2

  • packages/core/src/auth/rate-limit-storage.ts
  • packages/core/tests/auth/rate-limit-storage.test.ts
  • 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

@github-actions github-actions Bot added the tests Test coverage and test infrastructure label Nov 16, 2026
@imshashank
imshashank marked this pull request as ready for review November 16, 2026 19:47
@imshashank
imshashank requested a review from pulkitxm as a code owner November 16, 2026 19:47
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
orbit Ready Ready Preview Nov 16, 2026 7:48pm UTC

Request Review

@imshashank
imshashank merged commit ba2be71 into main Nov 16, 2026
16 checks passed
@imshashank
imshashank deleted the codex/fix-auth-redis-initialization branch November 16, 2026 19:55

This branch was successfully deployed

1 active deployment
Preview — 8a78d080 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant