Repository navigation
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the fixed-query discovery endpoint changes.
No open issues 🎉
What changed in this PR
Adds fixed-query discovery endpoint support across signer and standalone discovery while preserving base-URL deployment paths and inventory compatibility.
Changes:
- Accept complete query-bearing endpoints in static configuration and webhook responses.
- Redact standalone config queries and suppress query-bearing redirect referrers across hosts or schemes.
- Expand tests and document endpoint and advertised-URL rules.
| File | Description |
|---|---|
| signer/service.go | Resolve endpoints and protect redirect referrers. |
| signer/discovery_webhook.go | Accept query-bearing webhook endpoints. |
| signer/discovery_webhook_test.go | Verify fixed queries survive fetching and refreshes. |
| signer/discovery_test.go | Test validation and redirect referrer handling. |
| signer/discovery_polling_test.go | Verify polling preserves endpoint paths and queries. |
| signer/app.go | Validate query-bearing orchestrator configuration. |
| signer/app_test.go | Test endpoint configuration and safe validation errors. |
| docs/signer.md | Document static and webhook endpoint support. |
| docs/http-api.md | Clarify advertised node URL normalization. |
| docs/discovery.md | Explain fixed queries and config redaction. |
| discovery/shared/inventory.go | Separate polling endpoint and inventory URL validation. |
| discovery/shared/inventory_test.go | Test endpoint queries and inventory restrictions. |
| discovery/server.go | Poll complete endpoints and normalize advertised URLs. |
| discovery/server_test.go | Verify polling URL deduplication. |
| discovery/app.go | Redact source queries in config output. |
| discovery/app_test.go | Test redaction, configuration sources, and advertised URLs. |
Review effort: Balanced
This branch was previously deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Orchestrators, and standaloneNodes.Refererwhen a query-bearing signer discovery URL redirects to a different host or scheme.Validation
go test -race -p 1 ./discovery/... ./signer ./cmd/livepeer ./orchestrator ./destination