#[non_exhaustive]pub struct Owns {
pub service: Vec<String>,
pub arch_doc: Vec<String>,
pub node: Vec<String>,
pub extra: BTreeMap<String, Vec<String>>,
}Expand description
The owns claim — embedded ownership cheers bakes into the token at mint
time. Per W159 §Layer 2, this is what lets kamaji check resource
membership locally with no per-call cheers round-trip.
Open-ended: explicit fields for the resource kinds cheers currently writes
(service, arch_doc, node) plus a flattened catch-all for future
kinds so adding one doesn’t break the wire contract.
node (W268 §The binding: enrollment is an ownership row) is the
machine-identity resource kind: a row principal owns node:<NodeId>
records that a fleet machine (or paired end-user device) is enrolled to
principal. resource_id is the mshr NodeId in the same hex encoding
yubaba’s /identity route serves.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.service: Vec<String>§arch_doc: Vec<String>§node: Vec<String>NodeIds (hex-encoded mshr identity) enrolled to this principal.
extra: BTreeMap<String, Vec<String>>Forward-compatibility spill for resource kinds added after this lands.