Expand description
Auto-bootstrap a super-admin credential on first TEE boot.
Two paths:
admin_didconfigured — create the ACL entry for the operator’s known DID and close the first-boot carve-out. The operator keeps the corresponding private key off-enclave.- No
admin_didconfigured — leave the first-boot carve-out OPEN. The operator completes the swap via the sealed-bootstrap flow (POST /bootstrap/requestwith attestation, Phase 3). The first successful swap closes the carve-out.
Legacy behavior pre-Phase-3 was to auto-generate a random admin
credential on first boot and store it under tee:admin_credential for
retrieval via GET /attestation/admin-credential. That endpoint is
gone; startup migrates any stored row out of the store.
Constants§
- BOOTSTRAP_
CARVEOUT_ CLOSED_ KEY - Sentinel indicating the TEE first-boot carve-out has been closed. Written
either by
maybe_bootstrap_admin(when an operator DID is configured) or byPOST /bootstrap/requestafter a successful Mode B swap. When present, any subsequent Mode B attempt is rejected. - LEGACY_
ADMIN_ CREDENTIAL_ KEY - Legacy store key for the pre-Phase-3 auto-generated admin credential. No longer written; cleaned up on first startup after the upgrade.
Functions§
- maybe_
bootstrap_ admin - Bootstrap a super-admin credential on first boot.