Skip to content

Foreign-namespace relay opt-out: origin-only node policy #1759

Closed

Description

@alpergundogdu

Sibling axis split out of #1755 (refuse-to-serve). Distinct from both refuse-to-serve and egress-aware sourcing (#1758).

The question

Today a node relays content outside its own namespace: namespace is routing-only (ADR 002; the authorized-origin serve gate was removed — pull_through_require_authorized_origin is gone), so any node pulls and serves any hash via the paid pull-through path. That is the entire cache-miss/relay mechanism.

Some operators may want the opposite: run an origin-only node that serves and seeds only its own namespace and never relays foreign content — e.g. a publisher that wants its box dedicated to its own catalog, not acting as a general CDN edge for others.

Proposed shape

  • A node-local policy toggle: relay foreign namespaces (default, today's behavior) vs. own-namespace-only.
  • When own-namespace-only, a foreign-namespace request is declined the same way a miss is (NotFound); the client re-routes to a general relay.
  • Node-local config only; no wire/governance surface.

Notes / open questions

  • Distinguish cleanly from Refuse-to-serve / stop-serving policy (economic, margin-based) #1755: refuse-to-serve declines an unprofitable relay per-request; this declines all foreign relay categorically, by operator choice.
  • Confirm the serve path can cheaply classify own vs. foreign namespace at request time (origin-directory / namespace lookup) before committing to discovery.
  • Interaction with reputation: a categorical relay opt-out should not be read as "advertised but didn't serve" (the node never advertised foreign content).

Not part of #1755.

Activity

  1. added
    kind:feature
    rust
    prio:low
    on Aug 20, 2026
  2. moved this from Backlog to Ready in deCDNon Aug 20, 2026
  3. moved this from Ready to In progress in deCDNon Aug 20, 2026
  4. moved this from In progress to Done in deCDNon Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:featureprio:lowrust

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions