pub fn ensure_bootstrap_pubkeys_enrolled(
credentials_dir: &Path,
entries: &HashMap<String, BootstrapPubkey>,
) -> Result<()>Expand description
Fail-closed enrollment check for OS-owned deployments (hyprstream#1562 H3).
Every bootstrap entry for a service in the fixed enrollment allowlist
(hyprstream_discovery::SERVICE_KEY_ENROLLMENT_ALLOWED_SERVICES) must be
backed by an attestation in
{credentials_dir}/bootstrap-pubkeys.enrollment/{service}.json that
verifies against the node’s OS-owned deployment trust chain and names
exactly this entry’s hybrid key — the unsigned-TOFU posture is refused.
Missing, malformed, expired, or mismatched attestations are fatal. Entries
outside the allowlist cannot be enrolled by design and keep their existing
local posture. Wizard/dev (non-OsOwnedFiles) deployments never call this.