Skip to content

Surface operator eth address in decdn node status #1906

Closed

Description

@alpergundogdu

Summary

decdn node status reports the node's iroh node_id but not the operator eth
address
. Add operator_address to StatusResponse (and print it in the
decdn node status output) so an operator can see, at a glance, which wallet
the running node is operating under.

Motivation

There is currently no first-party way to read a running node's operator
address
. It is not in admin_v1_status, not in admin_v1_health, and the
keystore on disk is the minimal eth-keystore format (crypto params + id +
version) — it has no address field, so you can't even read it off the
file. Today the only way to recover it is to grep the daemon's JSON logs for an
"operator":"0x…" field emitted at bring-up:

sudo journalctl -u decdn-node | grep -oE '"operator":"0x[0-9a-fA-F]{40}"' | sort -u

That is a poor operator experience for a piece of core identity — the address
you fund, bond, register, and get paid to. The daemon already has it: the
binding check (crates/node/src/binding_check.rs) resolves the operator
Address at startup and logs it. Surfacing it in status is nearly free.

Current state

StatusResponse (crates/common/src/admin.rs:349) carries node_id,
routing, known_stakers, record_store, republish, chain_denied_origins,
… but no operator address. HealthResponse (:73) reports binding /
bound_node_id — the binding status — yet never names the operator address
that binding is under, which makes those fields half-answers on their own.

Proposed change

  • Add operator_address: Option<String> to StatusResponse — EIP-55
    checksummed 0x…, None when the operator can't be resolved (no/locked
    keystore).
  • Populate it from the same value the binding check already derives at bring-up
    (no extra RPC round-trip; sample once, like binding).
  • Print it in the decdn node status human output and include it in the JSON.

Notes / scope

  • Kept to status per operator preference; health is left unchanged in this
    issue (could be a follow-up if the address is wanted next to binding there).
  • No new secret exposure: an eth address is public. Only the address is added —
    never key material.
  • Option (not a bare string) so the field is honest when the keystore is
    absent or locked, matching how bound_node_id degrades.

References

  • crates/common/src/admin.rs — StatusResponse (:349), HealthResponse (:73).
  • crates/node/src/binding_check.rs — already resolves + logs the operator
    Address at bring-up (log(status, local, bound, operator)).
  • Keystore is address-less minimal eth-keystore: roles/decdn_node/defaults
    points at /var/lib/decdn/keystore.json; a real node's file is ~436 bytes with
    no address key.

Activity

  1. added
    kind:feature
    area:cli
    on Sep 2, 2026
  2. moved this from Backlog to In progress in deCDNon Sep 2, 2026
  3. moved this from In progress to Done in deCDNon Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:clikind:feature

Type

No type

Fields

Priority

None yet

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions