Skip to content

Gossip: enforce rule-2 staked-node check against the live registry, not a static allowlist #1170

Closed

Description

@alpergundogdu

Disposition: IMPLEMENT (ADR 001).

validate_envelope checks a static config allowlist (crates/gossip/src/validation.rs:140), but the live registry cache (ChainStakerSet, subscribed to NodeRegistered/Deregistered/AutoEjected) already exists and is wired into the DHT path. Deregistered/slashed nodes can still enter peer tables.

Action: thread staker_set into the gossip service and replace the allowlist check (crates/node/src/runtime/mod.rs:1443).


Filed from the ADR→implementation gap analysis. ADR edits must be made in place with no historical/tombstone text (no "planned but cut" sentences) per repo ADR convention.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind:securityprio:highrust

Type

No type

Fields

Priority

None yet

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions