-
Notifications
You must be signed in to change notification settings - Fork 27.9k
fix(core): Simplify Websocket origin security checks #15761
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
base: master
Are you sure you want to change the base?
Conversation
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.
cubic reviewed 2 files and found no issues. Review PR in cubic.dev.
Codecov ReportAll modified and coverable lines are covered by tests ✅ 📢 Thoughts on this report? Let us know! |
I pushed a commit updating the tests. The names were not describing the failure reasons and a test for this was missing:
E.g. ignoring |
Workflow Test Results 📊 🔴 2 Failed,
|
Workflow ID | Workflow Name | Reason |
---|---|---|
243 | Agent:ReAct | Workflow contains 2 deleted data. |
258 | Agent:auto-fix:openai | Workflow contains 2 deleted data. |
⚠️ Warnings (3)
Workflow ID | Workflow Name | Reason |
---|---|---|
237 | BasicLLMChain:AzureChat | Workflow contains new data that previously did not exist. |
35 | Slack:User:getPresence info:UserProfile:get update... | Workflow contains new data that previously did not exist. |
257 | Agent:auto-fix:anthropic | Workflow contains new data that previously did not exist. |
|
1 similar comment
|
Workflow Test Results 📊 🔴 1 Failed,
|
Workflow ID | Workflow Name | Reason |
---|---|---|
243 | Agent:ReAct | Workflow contains 2 deleted data. |
⚠️ Warnings (4)
Workflow ID | Workflow Name | Reason |
---|---|---|
237 | BasicLLMChain:AzureChat | Workflow contains new data that previously did not exist. |
35 | Slack:User:getPresence info:UserProfile:get update... | Workflow contains new data that previously did not exist. |
257 | Agent:auto-fix:anthropic | Workflow contains new data that previously did not exist. |
53 | ConvertKit:CustomField:create getAll update delete... | Workflow contains new data that previously did not exist. |
|
2 similar comments
|
|
Summary
We recently updated cross-origin checks on websocket requests, but the implementation is dependent on the reverse-proxy sending a non-standard
X-Forwarded-Proto
header, which the proxy might not send or send an incorrect value of.This PR simplifies those checks to only check the host instead.
Related Linear tickets, Github issues, and Community forum posts
Fixes #15706 #15744
Review / Merge checklist
release/backport
(if the PR is an urgent fix that needs to be backported)