-
Notifications
You must be signed in to change notification settings - Fork 171
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
mediaserver: add useful debug info to http response headers #2449
Conversation
13ade9f
to
a6a22a0
Compare
@emranemran Could you maybe limit the number of reviewers of this PR to 2 pers? |
server/mediaserver.go
Outdated
@@ -137,11 +137,21 @@ type authWebhookResponse struct { | |||
} | |||
|
|||
func NewLivepeerServer(rtmpAddr string, lpNode *core.LivepeerNode, httpIngest bool, transcodingOptions string) (*LivepeerServer, error) { | |||
var nodeEthAddr string = "n/a" | |||
if lpNode.Eth != nil { | |||
nodeEthAddr = lpNode.Eth.Account().Address.String() |
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.
@RiccardoBiosas: can you help confirm if it's OK to reveal a node's Eth Address in HTTP responses? It's marked as public in these structs so my assumption is yet but would like to confirm.
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.
ETH Address is public, so there are no security concerns when it comes to exposing it.
When viewing HLS manifests/segments, it is often useful to view information on how those segments were generated. This commit adds fields such as git-sha to the HTTP response headers. A future commit will be used to add additional debug info.
a6a22a0
to
199c80c
Compare
When viewing HLS manifests/segments, it is often useful to view information on how those segments were generated. This commit adds fields such as git-sha to the HTTP response headers. A future commit will be used to add additional debug info.
199c80c
to
829108a
Compare
When viewing HLS manifests/segments, it is often useful to view information on how those segments were generated. This commit adds fields such as git-sha to the HTTP response headers. A future commit will be used to add additional debug info.
829108a
to
baeb825
Compare
In its current state, this change has limited uses and the streaming workflow changes will invalidate the changes here -- we'll follow up after streaming workflow lands to achieve the requested change. |
What does this pull request do? Explain your changes. (required)
When viewing HLS manifests/segments, it is often useful to view information on how those segments were generated. This commit adds fields such as git-sha to the HTTP response headers.
Specific updates (required)
LPMSOpts
struct to include a newVidPlayerDebug
struct (defined in lpms repo) which holds additional parameters. These opts are used to pass useful debugging fields when instantiating aVidPlayer
(to playback HLS segments).How did you test each of these updates (required)
Does this pull request close any open issues?
Checklist:
make
runs successfully[ ] All tests in./test.sh
pass