Repository navigation
KMS Release v0.6.5-mrgk
Pre-releaseOne-off build, not a regular release. Use it only to merge two KMS clusters; run ordinary 0.6.5 KMS instances for everything else. The merge logic is not part of
nextor any later release.
Purpose
Joins the roots of two independently bootstrapped KMS clusters into one keyring. The existing cluster keeps its roots as epochs 0..N-1, and the other cluster's single root becomes epoch N. The result is the same as a 0.6.5 root rotation, except that epoch N is imported from the other cluster instead of being generated.
Derived keys depend on the root keys and the app epoch, not on the root epoch number. After epoch N is activated, apps of the other cluster keep byte-identical keys, and they can keep running their current guest OS. Apps of the existing cluster rotate as usual: on a 0.6.5 guest, the disk and env migrate on boot.
Apart from the merge, this build is identical to KMS 0.6.5 (source: release/0.6.5-mrgk, #1594).
Usage
Onboard takes two extra fields; they cannot be combined with rotate:
merge_source_url: a KMS holding exactly one root epoch, such as a 0.6.3 KMS;merge_source_token: optional bearer token for its admin listener.
Procedure:
- Register epoch
Non the existing cluster's auth backend with the other cluster's root public keys, and use its bootstrap attestation as evidence. Do not activate it. - Allow this image's KMS measurement to import keys from both clusters, and to export keys on the existing cluster. The auth backend must authorize the merge source for key export at epoch
N. - Onboard one instance of this build with
source_urlset to the existing cluster andmerge_source_urlset to the other one. Onboard ordinary 0.6.5 instances from it, then retire it. - Until activation, deny the other cluster's apps on the merged cluster. Before activation the merged cluster serves the existing roots: an existing instance fails to boot, and a new instance would get keys derived from the existing roots.
- Activate epoch
Ntogether with the rotation of the existing cluster's apps, then move the other cluster's apps over. A 0.6.5 guest that has booted on the merged cluster cannot go back to the other cluster.
Onboarding refuses, without storing anything, when the merged keyring does not match the registered chain hashes, when the merge source holds more than one epoch, or when either source is not authorized. Details: docs/kms-root-merge.md.
Docker Image Information
Image: ghcr.io/dstack-tee/dstack-kms:0.6.5-mrgk
Digest (SHA256): sha256:de3fd84fb7a305357e110c6a69a860b3dc48272e10f416250f7029654f047cfc
Verification: Verify on Sigstore
Contract ABIs
This release includes the compiled contract ABIs:
DstackKms.json- Main KMS contract ABIDstackApp.json- Application contract ABI