Skip to content

Conversation

@emranemran
Copy link
Contributor

@emranemran emranemran commented Jun 7, 2022

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)

How did you test each of these updates (required)

  • localhost testing using e2e setup in both off-chain and on-chain (using devtool)
  • Chrome devtool inspect tab to verify headers were tagged appropriately in both off-chain and on-chain modes

Does this pull request close any open issues?

Checklist:

@emranemran emranemran force-pushed the user/emahbub/add-http-debug-headers-go-livepeer branch from 13ade9f to a6a22a0 Compare June 7, 2022 20:34
@leszko
Copy link
Contributor

leszko commented Jun 8, 2022

@emranemran Could you maybe limit the number of reviewers of this PR to 2 pers?

@leszko leszko removed their request for review June 8, 2022 05:59
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()
Copy link
Contributor Author

@emranemran emranemran Jun 9, 2022

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.

Copy link
Contributor

@leszko leszko Jun 10, 2022

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.

emranemran added a commit that referenced this pull request Jun 13, 2022
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.
@emranemran emranemran force-pushed the user/emahbub/add-http-debug-headers-go-livepeer branch from a6a22a0 to 199c80c Compare June 13, 2022 20:48
@emranemran emranemran removed the request for review from RiccardoBiosas June 13, 2022 20:49
emranemran added a commit that referenced this pull request Jun 13, 2022
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.
@emranemran emranemran force-pushed the user/emahbub/add-http-debug-headers-go-livepeer branch from 199c80c to 829108a Compare June 13, 2022 20:51
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.
@emranemran emranemran force-pushed the user/emahbub/add-http-debug-headers-go-livepeer branch from 829108a to baeb825 Compare June 13, 2022 21:37
@emranemran
Copy link
Contributor Author

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.

@emranemran emranemran closed this Jun 21, 2022
@hjpotter92 hjpotter92 deleted the user/emahbub/add-http-debug-headers-go-livepeer branch September 26, 2022 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return HTTP headers with Orchestrator information Display git tip rev hash in startup logging

3 participants