-
-
Notifications
You must be signed in to change notification settings - Fork 5
Fix X-Forwarded-For bypass #642
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
Merged
leoisadev1
merged 44 commits into
main
from
tembo/fix/rate-limit-x-forwarded-for-bypass
Feb 14, 2026
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
8628be1
Investigate Convex Upstash warnings
leoisadev1 a626c43
Investigate Convex Upstash warnings
leoisadev1 88366b2
Merge remote-tracking branch 'origin/add-upstash-rate-limits-and' int…
leoisadev1 9162dc0
Apply Cubic AI review suggestions
leoisadev1 9393e14
Address Cubic follow-up findings
leoisadev1 7cb6edd
fix(security): harden workflow endpoints and rate-limit checks
leoisadev1 3b59d07
fix(security): address remaining review findings
leoisadev1 1ba1454
fix(security): address all remaining Cubic + Tembo review findings
leoisadev1 6b80816
fix(security): use HMAC+timingSafeEqual for cleanup token comparison
leoisadev1 ee54eec
fix(security): extract cleanup action to node runtime, fix auth bypas…
leoisadev1 8302416
fix(security): stop forwarding cookies to QStash, add rate limiting a…
leoisadev1 4f97319
fix(security): fix parser passthrough, remove hardcoded HMAC keys, ha…
leoisadev1 04de610
fix(security): add NaN guard to bounds validation, log fetch errors
leoisadev1 76c4e04
fix(security): remove workflow token persistence and harden cleanup/m…
leoisadev1 7c103dc
fix(security): consume workflow auth refs once and harden error/rate …
leoisadev1 8e696e5
fix(security): harden fail-closed limits and workflow retries
leoisadev1 537b548
Fix: Broken access control in chat stream init (#621)
tembo[bot] 8034851
fix(security): close auth fallback and token replay gaps
leoisadev1 0f4e92f
fix(security): reduce workflow secret exposure and endpoint hazards
leoisadev1 ec3519e
fix(security): stabilize workflow auth and endpoint safeguards
leoisadev1 664efc2
fix(security): enforce signed workflow callbacks and safer parsing
leoisadev1 e535f6b
fix(security): harden stream limits and workflow error surfaces
leoisadev1 770d822
fix(web): restore generic proxy IP extraction path
leoisadev1 795001a
fix(security): fail closed when usage reserve is unavailable
leoisadev1 ebd3049
fix(security): reject empty workflow auth tokens
leoisadev1 059948e
fix(security): harden workflow mode selection and model headers
leoisadev1 d200d7c
fix(security): restrict cookie fallback and keep key off qstash
leoisadev1 48ca3c4
fix(security): tighten cleanup auth and usage safeguards
leoisadev1 7b5d722
fix(security): tighten workflow and error handling responses
leoisadev1 020fefa
fix(security): tighten workflow token and usage edge cases
leoisadev1 826a74b
fix(web): execute chat exports inline for reliable delivery
leoisadev1 76f7360
fix(web): tighten workflow validation and retry behavior
leoisadev1 37c88fb
fix(web): harden export workflow payload guards
leoisadev1 4575997
fix(security): harden workflow callback and auth safeguards
leoisadev1 ec1e22a
fix(web): clean up workflow validation and rate-limit UX
leoisadev1 c048027
fix(web): enforce models fallback limit and workflow callback host
leoisadev1 3500ca5
fix(web): harden model IP gating and workflow title sanitization
leoisadev1 bb0e999
fix(security): tighten workflow auth fallback and usage counters
leoisadev1 0a44f88
fix: resolve merge conflict — keep chat.ts deleted (moved to workflow)
leoisadev1 3871cbc
fix: resolve all Cubic review findings
leoisadev1 181af3f
Merge pull request #622 from opencoredev/add-upstash-rate-limits-and
leoisadev1 6722ceb
fix(server): retain deprecated jonMode/dynamicPrompt in schema for ex…
leoisadev1 abe7aa9
fix(api): validate IP addresses and prefer platform-specific proxy he…
tembo[bot] 782c70c
Merge main
leoisadev1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
P1: IPv4-mapped IPv6 addresses (e.g.,
::ffff:192.168.1.1) are rejected because the regex doesn't include.in the character class. These are common in practice — Node.js and many proxies report IPv4 addresses in this format. Affected users would get 400 errors.Include
.in the character class to support IPv4-mapped/embedded addresses.Prompt for AI agents