You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Clarify authorized-origin gate scope: namespace-wide vs per-operator #1368
design:adrNeeds a new or updated ADR in adr/design:missing-decisionA decision the ADRs do not record yetprio:mediumScheduledrustDependabot: a Cargo update; use area: labels for Rust code otherwise
pull_origin_gate_blocks (crates/node/src/handlers/client/mod.rs:293) is:
gate.is_some_and(|dir| !dir.has_origin(hash))
which resolves through DirectoryCache::has_any (crates/node/src/dht/chain_origin_directory.rs:199). That asks whether any active operator authorizes the hash's namespace — the operator running the node is never compared against the assignment.
Consequence: a node whose [cache.origin] happens to hold H will fill and serve it opaquely as soon as H's namespace has any active authorized origin, even if the DAO assigned that namespace exclusively to a different operator. The gate is a namespace-level 'is this content claimed by someone' check, not an operator-level 'am I the origin for this' check.
ADR 037 §85 phrases it as namespace-scoped ("a hash whose namespace has no currently-authorized origin"), so this may well be deliberate. But the naming throughout (pull_through_require_authorized_origin, is_authorized_origin, "recognized origin") reads as the stronger per-operator guarantee, which is how #1366's journey originally described it.
Ask: confirm the intended scope.
If namespace-wide is intended, it's worth a sentence in ADR 037 saying explicitly that a non-assigned operator holding the bytes may still serve them, since that is the surprising half.
If per-operator was intended, the gate needs the operator comparison and has_any is too weak.
Either way an executable assertion would pin it: a second operator, a hash assigned only to that operator, and an assertion about whether this node serves it. #1366 deliberately does not encode either reading pending this decision — see the note on NodeFixture::launch_authorized_origin.
design:adrNeeds a new or updated ADR in adr/design:missing-decisionA decision the ADRs do not record yetprio:mediumScheduledrustDependabot: a Cargo update; use area: labels for Rust code otherwise
Activity
test(e2e): close soundness gaps in the G-NODE-08 wire-opacity scan
test(e2e): add G-NODE-08 authorized-origin recognition (opaque backen…
fix: origin deny-set & authorized-origin gate correctness (#1398, #1368…
refactor: remove the residual authorized-origin content-authorization…
feat(cache): live http/s3 probe-HEAD discovery for non-pinned origin …