Comprehensive technical deep dive into dstack’s Key Management Service - the critical security and governance layer
{"type": "none", "id": ""}
indicating no external key provider dependency 5 .
Local-Key-Provider Mode utilizes SGX sealing mechanisms through the gramine-sealing-key-provider for persistent key storage while maintaining strict measurement validation. This mode supports stateful operations with persistent disk storage but prohibits application upgrades, ensuring consistent cryptographic identity. The key provider information is recorded as {"type": "local-sgx", "id": "<sgx mrenclave>"}
in RTMR for verification purposes 6 .
KMS Mode enables the most flexible deployment scenario supporting application upgrades and sophisticated application identity management through blockchain-based authorization. This mode derives app-id from the deployer’s Ethereum address combined with a salt value, providing upgradeable application identity while maintaining security. The key provider is recorded as {"type": "kms", "id": "<kms-root-pubkey>"}
establishing the KMS root public key as the trust anchor 7 .