mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-13 17:11:08 -05:00
* docs: add release v2.10.0 * fix link --------- Co-authored-by: elchead <elchead@users.noreply.github.com> Co-authored-by: Thomas Tendyck <tt@edgeless.systems>
9.1 KiB
9.1 KiB
Migrations
This document describes breaking changes and migrations between Constellation releases.
Use constellation config migrate to automatically update an old config file to a new format.
Migrating from Azure's service principal authentication to managed identity authentication
- The
provider.azure.appClientIDandprovider.azure.appClientSecretfields are no longer supported and should be removed. - To keep using an existing UAMI, add the
Ownerpermission with the scope of yourresourceGroup. - Otherwise, simply create new Constellation IAM credentials and use the created UAMI.
- To migrate the authentication for an existing cluster on Azure to an UAMI with the necessary permissions:
- Remove the
aadClientIdandaadClientSecretfrom the azureconfig secret. - Set
useManagedIdentityExtensiontotrueand use theuserAssignedIdentityfrom the Constellation config for the value ofuserAssignedIdentityID. - Restart the CSI driver, cloud controller manager, cluster autoscaler, and Constellation operator pods.
- Remove the
Migrating from CLI versions before 2.10
- AWS cluster upgrades require additional IAM permissions for the newly introduced
aws-load-balancer-controller. Please upgrade your IAM roles usingiam upgrade apply. This will show necessary changes and apply them, if desired. - The global
nodeGroupsfield was added. - The fields
instanceType,stateDiskSizeGB, andstateDiskTypefor each cloud provider are now part of the configuration of individual node groups. - The
constellation createcommand no longer uses the flags--control-plane-countand--worker-count. Instead, the initial node count is configured per node group in thenodeGroupsfield.
Migrating from CLI versions before 2.9
- The
provider.azure.appClientIDandprovider.azure.clientSecretValuefields were removed to enforce migration to managed identity authentication
Migrating from CLI versions before 2.8
- The
measurementsfield for each cloud service provider was replaced with a globalattestationfield. - The
confidentialVM,idKeyDigest, andenforceIdKeyDigestfields for the Azure cloud service provider were removed in favor of using the globalattestationfield. - The optional global field
attestationVariantwas replaced by the now requiredattestationfield.
Migrating from CLI versions before 2.3
- The
sshUsersfield was deprecated in v2.2 and has been removed from the configuration in v2.3. As an alternative for SSH, check the workflow section Connect to nodes. - The
imagefield for each cloud service provider has been replaced with a globalimagefield. Use the following mapping to migrate your configuration:Show all
CSP old image new image AWS ami-06b8cbf4837a0a57cv2.2.2AWS ami-02e96dc04a9e438cdv2.2.2AWS ami-028ead928a9034b2fv2.2.2AWS ami-032ac10dd8d8266e3v2.2.1AWS ami-032e0d57cc4395088v2.2.1AWS ami-053c3e49e19b96bddv2.2.1AWS ami-0e27ebcefc38f648bv2.2.0AWS ami-098cd37f66523b7c3v2.2.0AWS ami-04a87d302e2509aadv2.2.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation/images/constellation/versions/2.2.2v2.2.2Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation_CVM/images/constellation/versions/2.2.2v2.2.2Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation/images/constellation/versions/2.2.1v2.2.1Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation_CVM/images/constellation/versions/2.2.1v2.2.1Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation/images/constellation/versions/2.2.0v2.2.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation_CVM/images/constellation/versions/2.2.0v2.2.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation/images/constellation/versions/2.1.0v2.1.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation_CVM/images/constellation/versions/2.1.0v2.1.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation/images/constellation/versions/2.0.0v2.0.0Azure /subscriptions/0d202bbb-4fa7-4af8-8125-58c269a05435/resourceGroups/constellation-images/providers/Microsoft.Compute/galleries/Constellation_CVM/images/constellation/versions/2.0.0v2.0.0GCP projects/constellation-images/global/images/constellation-v2-2-2v2.2.2GCP projects/constellation-images/global/images/constellation-v2-2-1v2.2.1GCP projects/constellation-images/global/images/constellation-v2-2-0v2.2.0GCP projects/constellation-images/global/images/constellation-v2-1-0v2.1.0GCP projects/constellation-images/global/images/constellation-v2-0-0v2.0.0 - The
enforcedMeasurementsfield has been removed and merged with themeasurementsfield.-
To migrate your config containing a new image (
v2.3or greater), remove the oldmeasurementsandenforcedMeasurementsentries from your config and runconstellation fetch-measurements -
To migrate your config containing an image older than
v2.3, remove theenforcedMeasurementsentry and replace the entries inmeasurementsas shown in the example below:measurements: - 0: DzXCFGCNk8em5ornNZtKi+Wg6Z7qkQfs5CfE3qTkOc8= + 0: + expected: DzXCFGCNk8em5ornNZtKi+Wg6Z7qkQfs5CfE3qTkOc8= + warnOnly: true - 8: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + 8: + expected: AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA= + warnOnly: false -enforcedMeasurements: - - 8
-