-
Notifications
You must be signed in to change notification settings - Fork 12
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
FEA-2863: Expose debug transport URL when possible #64
Conversation
Security InsightsThe items listed below may not capture all security relevant changes. Before providing a security review, be sure to review the entire PR for security impact. (1) Security relevant changes were detectedlib/sockjs.js modifiedAction Items
Questions or Comments? Reach out on Slack: #support-infosec. |
@@ -29,4 +29,4 @@ echo.on('connection', function(conn) { | |||
|
|||
var server = http.createServer(); | |||
echo.installHandlers(server, {prefix:'/echo'}); | |||
server.listen(9999, '0.0.0.0'); | |||
server.listen(9009, '0.0.0.0'); |
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.
The dart analysis server's diagnostics run on this port, so I changed it.
lib/sockjs.js
Outdated
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.
This gets auto-collapsed by Github but it's the change that should be reviewed :)
c3e4e6d
security +1
|
QA +1
@Workiva/release-management-p |
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.
+1 from RM
Motivation
For debugging purposes, it would be helpful to have access to the full URL used by the underlying SockJS transport (the one that includes the selected protocol and session ID). This is currently not exposed publicly anywhere.
Changes
sockjs.js
file wrapped by this library to settransportUrl
on theSockJS
client instance.SockJSOpenEvent
Dart type to include adebugUrl
field that gets set to the newtransportUrl
field