Skip to content

[guardian-proxy] Route provisioning to a standby guardian backend#782

Draft
0xsiddharthks wants to merge 1 commit into
siddharth/proxy-relay-s3-rosterfrom
siddharth/proxy-standby-backend
Draft

[guardian-proxy] Route provisioning to a standby guardian backend#782
0xsiddharthks wants to merge 1 commit into
siddharth/proxy-relay-s3-rosterfrom
siddharth/proxy-standby-backend

Conversation

@0xsiddharthks

Copy link
Copy Markdown
Contributor

Summary

Arming a standby guardian (the #765#770 lifecycle) runs its KP ceremony while the old guardian still serves nodes — but the proxy had one backend, so the relay and the KP tooling's session pinning could only ever see the ACTIVE guardian, whose info hard-fails the standby prechecks (btc pubkey/limiter/epoch all set).

Changes

  • optional STANDBY_GUARDIAN_URL: the relay (share submissions + its session/threshold reads) targets it when set, while the node-facing forwarder and wid cache always front the active backend. Unset, the relay provisions the active backend — first-deploy and steady-state behavior unchanged.
  • new GetStandbyInfo on GuardianRelayService: the relay backend's GetGuardianInfo, returned untouched. kp_provision's session pinning and its pre-submit prechecks both move to it (attestation verification of the response unchanged) — KPs pin exactly the session the relay forwards to.

Arming a standby guardian (the #765-#770 lifecycle) runs its KP
ceremony while the old guardian still serves nodes — but the proxy had
one backend, so the relay and the KP tooling's session pinning could
only ever see the ACTIVE guardian, whose info hard-fails the standby
prechecks (btc pubkey/limiter/epoch all set).

Give the proxy an optional STANDBY_GUARDIAN_URL: the relay (share
submissions and its accumulator/session reads) targets it when set,
while the node-facing forwarder and wid cache always front the active
backend. Unset, the relay provisions the active backend — first-deploy
and steady-state behavior are unchanged.

KP tooling needs to pin the session it actually submits to, so the
relay service gains GetStandbyInfo (its backend's GetGuardianInfo,
returned untouched); kp_provision's session pinning and its pre-submit
prechecks both move to it. Attestation verification of the response is
unchanged.
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.

1 participant