From a371de2748fd181618b170b6e80e176c17596102 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Aug 2026 05:36:32 +0000 Subject: [PATCH 1/2] chore(deps): bump github.com/stackitcloud/stackit-sdk-go/services/kms Bumps [github.com/stackitcloud/stackit-sdk-go/services/kms](https://github.com/stackitcloud/stackit-sdk-go) from 1.11.0 to 1.13.0. - [Release notes](https://github.com/stackitcloud/stackit-sdk-go/releases) - [Changelog](https://github.com/stackitcloud/stackit-sdk-go/blob/main/CHANGELOG.md) - [Commits](https://github.com/stackitcloud/stackit-sdk-go/compare/services/cdn/v1.11.0...services/cdn/v1.13.0) --- updated-dependencies: - dependency-name: github.com/stackitcloud/stackit-sdk-go/services/kms dependency-version: 1.13.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index 8312bd255..8a1d03404 100644 --- a/go.mod +++ b/go.mod @@ -265,7 +265,7 @@ require ( github.com/sourcegraph/conc v0.3.1-0.20240121214520-5f936abd7ae8 // indirect github.com/spf13/afero v1.15.0 // indirect github.com/spf13/cast v1.10.0 // indirect - github.com/stackitcloud/stackit-sdk-go/services/kms v1.11.0 + github.com/stackitcloud/stackit-sdk-go/services/kms v1.13.0 github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.15.1 github.com/stackitcloud/stackit-sdk-go/services/logme v1.3.0 github.com/stackitcloud/stackit-sdk-go/services/mariadb v1.1.0 diff --git a/go.sum b/go.sum index 5241138a9..789799515 100644 --- a/go.sum +++ b/go.sum @@ -610,8 +610,8 @@ github.com/stackitcloud/stackit-sdk-go/services/iaas v1.14.1 h1:P8XhOi8TLA7NbLHh github.com/stackitcloud/stackit-sdk-go/services/iaas v1.14.1/go.mod h1:/QpOsaCOQjwGgQqG8y9xXqryp25AfkorPjInX9xIeOU= github.com/stackitcloud/stackit-sdk-go/services/intake v0.11.1 h1:f9sKrmLxBK9g0zS9qGGDFVQx+6HjBALL18ibfPFOqPw= github.com/stackitcloud/stackit-sdk-go/services/intake v0.11.1/go.mod h1:UXhPs7JXjQvTp14d4ZffSLnFMQyB7y1cj100XWwQudI= -github.com/stackitcloud/stackit-sdk-go/services/kms v1.11.0 h1:OrUaDypQNr1nOXZfVQXCwUpN4YhR5y0vtvYi9/Ogoi4= -github.com/stackitcloud/stackit-sdk-go/services/kms v1.11.0/go.mod h1:pVaCmb1ZHAPGVRlSlBlVOjThp9Tb2sX9+nRX0M+d1KU= +github.com/stackitcloud/stackit-sdk-go/services/kms v1.13.0 h1:4S9gcTlijtvlF8wYZR5anbQ98oIP2+fIaEsvBXluux4= +github.com/stackitcloud/stackit-sdk-go/services/kms v1.13.0/go.mod h1:pVaCmb1ZHAPGVRlSlBlVOjThp9Tb2sX9+nRX0M+d1KU= github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.15.1 h1:+NT2okD80TlFNDTKSgaEvV/o7LevTrATqcDL0r4nuhU= github.com/stackitcloud/stackit-sdk-go/services/loadbalancer v1.15.1/go.mod h1:+Ld3dn648I+YKcBV3fEkYpDSr3fel421+LurJGywSBs= github.com/stackitcloud/stackit-sdk-go/services/logme v1.3.0 h1:GR2hjluc/LDqj+QnNUh57XH1vp9Tlcf22TlIwYtRG4Q= From 01d7886fd156dfaa066923ffad7cd6bc478371a6 Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Wed, 26 Aug 2026 07:33:02 +0200 Subject: [PATCH 2/2] chore(kms): Update to new SDK version Signed-off-by: Alexander Dahmen --- docs/stackit_kms_key_create.md | 2 +- docs/stackit_kms_wrapping-key_create.md | 2 +- internal/cmd/kms/key/create/create.go | 4 ++-- internal/cmd/kms/key/create/create_test.go | 2 +- internal/cmd/kms/key/describe/describe_test.go | 2 +- internal/cmd/kms/wrappingkey/create/create.go | 4 ++-- internal/cmd/kms/wrappingkey/create/create_test.go | 2 +- internal/cmd/kms/wrappingkey/describe/describe_test.go | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/docs/stackit_kms_key_create.md b/docs/stackit_kms_key_create.md index 3b6bfc18f..71f5c1d46 100644 --- a/docs/stackit_kms_key_create.md +++ b/docs/stackit_kms_key_create.md @@ -41,7 +41,7 @@ stackit kms key create [flags] --import-only States whether versions can be created or only imported --keyring-id string ID of the KMS key ring --name string The display name to distinguish multiple keys - --protection string The underlying system that is responsible for protecting the key material. (one of: [software]) + --protection string The underlying system that is responsible for protecting the key material. (one of: [software, hsm]) --purpose string Purpose of the key. (one of: [symmetric_encrypt_decrypt, asymmetric_encrypt_decrypt, message_authentication_code, asymmetric_sign_verify]) ``` diff --git a/docs/stackit_kms_wrapping-key_create.md b/docs/stackit_kms_wrapping-key_create.md index eb74a0374..220d9f84b 100644 --- a/docs/stackit_kms_wrapping-key_create.md +++ b/docs/stackit_kms_wrapping-key_create.md @@ -28,7 +28,7 @@ stackit kms wrapping-key create [flags] -h, --help Help for "stackit kms wrapping-key create" --keyring-id string ID of the KMS key ring --name string The display name to distinguish multiple wrapping keys - --protection string The underlying system that is responsible for protecting the key material. (one of: [software]) + --protection string The underlying system that is responsible for protecting the key material. (one of: [software, hsm]) --purpose string Purpose of the key. (one of: [wrap_symmetric_key, wrap_asymmetric_key]) ``` diff --git a/internal/cmd/kms/key/create/create.go b/internal/cmd/kms/key/create/create.go index a829f45ed..ae7ec581d 100644 --- a/internal/cmd/kms/key/create/create.go +++ b/internal/cmd/kms/key/create/create.go @@ -44,7 +44,7 @@ var ( ) protectionFlag = flags.StringEnumFlag( "protection", - kms.AllowedProtectionEnumValues, + []string{"software", "hsm"}, "The underlying system that is responsible for protecting the key material.") ) @@ -57,7 +57,7 @@ type inputModel struct { Name *string ImportOnly bool // Default false Purpose kms.Purpose - Protection kms.Protection + Protection string } func NewCmd(params *types.CmdParams) *cobra.Command { diff --git a/internal/cmd/kms/key/create/create_test.go b/internal/cmd/kms/key/create/create_test.go index 94978102f..34aaf1d12 100644 --- a/internal/cmd/kms/key/create/create_test.go +++ b/internal/cmd/kms/key/create/create_test.go @@ -23,7 +23,7 @@ const ( testPurpose = kms.PURPOSE_ASYMMETRIC_ENCRYPT_DECRYPT testDescription = "my key description" testImportOnly = "true" - testProtection = kms.PROTECTION_SOFTWARE + testProtection = "software" ) type testCtxKey struct{} diff --git a/internal/cmd/kms/key/describe/describe_test.go b/internal/cmd/kms/key/describe/describe_test.go index 0e863f2d2..885d434b5 100644 --- a/internal/cmd/kms/key/describe/describe_test.go +++ b/internal/cmd/kms/key/describe/describe_test.go @@ -167,7 +167,7 @@ func TestOutputResult(t *testing.T) { Id: testKeyID, ImportOnly: true, KeyRingId: testKeyRingID, - Protection: kms.PROTECTION_SOFTWARE, + Protection: "software", Purpose: kms.PURPOSE_SYMMETRIC_ENCRYPT_DECRYPT, State: kms.KEYSTATE_ACTIVE, }, diff --git a/internal/cmd/kms/wrappingkey/create/create.go b/internal/cmd/kms/wrappingkey/create/create.go index 8d8295329..d302d3bf5 100644 --- a/internal/cmd/kms/wrappingkey/create/create.go +++ b/internal/cmd/kms/wrappingkey/create/create.go @@ -43,7 +43,7 @@ var ( ) protectionFlag = flags.StringEnumFlag( "protection", - kms.AllowedProtectionEnumValues, + []string{"software", "hsm"}, "The underlying system that is responsible for protecting the key material.") ) @@ -55,7 +55,7 @@ type inputModel struct { Description *string Name *string Purpose kms.WrappingPurpose - Protection kms.Protection + Protection string } func NewCmd(params *types.CmdParams) *cobra.Command { diff --git a/internal/cmd/kms/wrappingkey/create/create_test.go b/internal/cmd/kms/wrappingkey/create/create_test.go index 981e60637..c60261b6d 100644 --- a/internal/cmd/kms/wrappingkey/create/create_test.go +++ b/internal/cmd/kms/wrappingkey/create/create_test.go @@ -22,7 +22,7 @@ const ( testDisplayName = "my-key" testPurpose = kms.WRAPPINGPURPOSE_WRAP_ASYMMETRIC_KEY testDescription = "my key description" - testProtection = kms.PROTECTION_SOFTWARE + testProtection = "software" ) type testCtxKey struct{} diff --git a/internal/cmd/kms/wrappingkey/describe/describe_test.go b/internal/cmd/kms/wrappingkey/describe/describe_test.go index b34d292f4..88a3c2c37 100644 --- a/internal/cmd/kms/wrappingkey/describe/describe_test.go +++ b/internal/cmd/kms/wrappingkey/describe/describe_test.go @@ -158,7 +158,7 @@ func TestOutputResult(t *testing.T) { Algorithm: kms.WRAPPINGALGORITHM_RSA_2048_OAEP_SHA256, ExpiresAt: testTime, KeyRingId: testKeyRingID, - Protection: kms.PROTECTION_SOFTWARE, + Protection: "software", PublicKey: utils.Ptr("-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQ...\n-----END PUBLIC KEY-----"), Purpose: kms.WRAPPINGPURPOSE_WRAP_ASYMMETRIC_KEY, },