SaltDns. Shaker. Status
(Salt v1.0.0)
A Shaker's status report (contract 3.5) and the signature over it.
The report is JSON. Its signature is Ed25519 by the node's signing key over
"shaker-status-v1\n" + node_id + "\n" +
SHA-256(the JSON object without the signature field, keys sorted,
no whitespace)with the digest appended as 32 raw bytes (see docs/shaker.md). The
canonical encoding is SaltDns.Shaker.CanonicalJSON; encode/1 here adds
the fixed prefix and node id once, so Salt and the tests cannot drift.
A report whose signature does not verify is dropped whole: it is not stored, and the previous report stays. Nothing but the status is signed — the connection itself was authenticated when it opened.
Summary
Functions
The exact bytes a Shaker signs, from the report without its signature.
Verifies a status report's Ed25519 signature with the node's signing key.
Functions
@spec signature_message(SaltDns.Shaker.Node.t() | String.t(), map()) :: binary()
The exact bytes a Shaker signs, from the report without its signature.
@spec verify(SaltDns.Shaker.Node.t(), map()) :: boolean()
Verifies a status report's Ed25519 signature with the node's signing key.