#[non_exhaustive]pub struct BindIdentity {
pub harness: String,
pub session: String,
pub build_class: Option<String>,
}Expand description
Per-route bind identity shared by client-facing and module-facing control.
Every field here is client-supplied and unattested. Use these claims for
attribution, never authorization; gate on the daemon-stamped Principal
instead.
Protocol 0.34 identities carry no project fields. For project-free openers,
project attribution comes from the admitted session scope::ScopeStamp’s
workdir and optional project_id; without these fields there is no project
attribution. During migration, daemon 0.39 also accepts legacy opener project
fields and prefers the legacy root over the scope workdir for internal root
attribution and compatibility bind fields. Decoding remains lenient so
readers can ignore project fields sent by older daemons during migration.
See scope::BIND_NO_PROJECT_CAPABILITY for target opt-in to project-free
bind identities.
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.harness: String§session: String§build_class: Option<String>The opener’s claim about the kind of build it is, sent on route.open.
BUILD_CLASS_PRODUCTION marks a production build whose integrity the
opener has verified.
Like every other field here it is unattested. The daemon recognizes
callosum as the caller module ID eligible for this claim. It honours
the claim only when the opener’s principal is
Reserved { module_id: "callosum" }, and only the exact value
BUILD_CLASS_PRODUCTION; any other value counts as absent. From any
other opener it is ignored. The identity on route.bind never carries
it. Targets declaring peer::PEER_BUILD_CAPABILITY receive the
honoured production claim separately as peer::RouteBindPeer::peer_build.
An absent build-class claim is omitted from the wire. A reader that
predates this field drops it, which grants nothing.
Set it on the public field after BindIdentity::new.