#[non_exhaustive]pub struct SecurityProperties {
pub provider: String,
pub scope: Scope,
pub guarantees: Vec<Guarantee>,
pub principal: Option<String>,
}Expand description
What a device, or a layer above it, guarantees about the bytes it carries (invariant I6): properties, never a boolean.
“AES enabled” states nothing about mode, key management, peer
authentication, anti-replay or scope, which is why this type has no
encrypted field and cannot have one. A device that provides nothing says
None from Device::security, and the management plane publishes
exactly that. A layer that seals SDUs (#158) reports what it provides and
only that; a radio that encrypts below the driver reports its own. Every
property here is hop-by-hop: it ends at the neighbour’s Zenoh, and a
router that applies key-expression ACLs sees plaintext.
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.provider: StringWho provides it: "zenoh-modem aead", a radio’s own name.
scope: ScopeHow far the guarantee reaches.
guarantees: Vec<Guarantee>What is guaranteed, each one named.
principal: Option<String>The principal the far side was authenticated as, where one was. A key
shared by more than two nodes proves only “holds the key”, and even a
pairwise key binds a key, not an identity (I5): None for both.