Skip to main content

NodeIdentity

Struct NodeIdentity 

Source
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_id mirrors Config::node_id — the operator-visible name a node answers to (hostname by default).
  • public_key_ref is 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.
  • attestation is a placeholder for a future hardware/software attestation document. It defaults to None; 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: String

Operator-visible node name (matches Config::node_id).

§public_key_ref: String

Opaque 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§

Source§

impl NodeIdentity

Source

pub fn new( node_id: impl Into<String>, public_key_ref: impl Into<String>, ) -> Self

Construct a NodeIdentity with no attestation (the only shape wired today). attestation defaults to None.

Trait Implementations§

Source§

impl Clone for NodeIdentity

Source§

fn clone(&self) -> NodeIdentity

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeIdentity

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for NodeIdentity

Source§

impl PartialEq for NodeIdentity

Source§

fn eq(&self, other: &NodeIdentity) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for NodeIdentity

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more