pub struct NodeIdentity {
pub node_id: String,
pub public_key_ref: String,
pub attestation: Option<()>,
}Expand description
Stable identity a fleet node presents to a control plane.
S24 carved this as a forward-looking seam: today the fleet agent inherits
AWS credentials from the ambient environment and identifies itself only by
node_id. As accredited-deployment work lands (signed heartbeats, attested
runners), the control plane needs a typed handle for who a node claims to
be and how that claim is backed.
The struct is intentionally minimal and additive:
node_idmirrorsConfig::node_id— the operator-visible name a node answers to (hostname by default).public_key_refis an opaque reference to the node’s signing key (e.g. a KMS key ARN or a key fingerprint). It is a reference, never key material — the fleet agent does not hold private keys.attestationis a placeholder for a future hardware/software attestation document. It defaults toNone; no attestation path is wired today, so the type parameter is the unit type until a concrete attestation shape is chosen in a later track.
No runtime path constructs or consumes this type yet — it is a library surface only, so the binary’s behaviour is unchanged.
Fields§
§node_id: StringOperator-visible node name (matches Config::node_id).
public_key_ref: StringOpaque reference to the node’s signing key (ARN / fingerprint / URI). Never the key material itself.
attestation: Option<()>Future attestation document. None until an attestation path is wired.
Implementations§
Trait Implementations§
Source§impl Clone for NodeIdentity
impl Clone for NodeIdentity
Source§fn clone(&self) -> NodeIdentity
fn clone(&self) -> NodeIdentity
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for NodeIdentity
impl Debug for NodeIdentity
impl Eq for NodeIdentity
Source§impl PartialEq for NodeIdentity
impl PartialEq for NodeIdentity
Source§fn eq(&self, other: &NodeIdentity) -> bool
fn eq(&self, other: &NodeIdentity) -> bool
self and other values to be equal, and is used by ==.