Skip to content

Support fixed-query discovery endpoints - #124

Draft
j0sh wants to merge 1 commit into
mainfrom
ja-codex/discovery-endpoint-queries
Draft

j0sh wants to merge 1 commit into
mainfrom
ja-codex/discovery-endpoint-queries

Conversation

@j0sh

@j0sh j0sh commented Dec 5, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Support complete discovery endpoints with fixed queries in signer webhook responses, signer Orchestrators, and standalone Nodes.
  • Preserve deployment paths for base URLs and keep advertised inventory and node URLs compatible with the discovery schema.
  • Redact source queries in standalone config output and omit the Referer when a query-bearing signer discovery URL redirects to a different host or scheme.
  • Document fixed-query endpoints in the discovery and signer guides.

Validation

go test -race -p 1 ./discovery/... ./signer ./cmd/livepeer ./orchestrator ./destination

@j0sh
j0sh requested a balanced review from Copilot December 5, 2026 08:48
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:50 — with GitHub Actions Inactive

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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

@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:51 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:51 — with GitHub Actions Inactive
@j0sh
j0sh temporarily deployed to docker-publish December 5, 2026 08:51 — with GitHub Actions Inactive

This branch was previously deployed

1 inactive deployment
docker-publish — 80494a2a Deployed Dec 5, 2026 by j0sh via docker-pr / promote #245
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.

2 participants