From 61c8ff22252a2429afdf2caf8658666ab5a297e5 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Feb 2026 06:28:14 +0000 Subject: [PATCH 1/2] chore(deps): bump github.com/stackitcloud/stackit-sdk-go/services/rabbitmq Bumps [github.com/stackitcloud/stackit-sdk-go/services/rabbitmq](https://github.com/stackitcloud/stackit-sdk-go) from 0.25.6 to 0.26.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/logme/v0.25.6...services/ske/v0.26.0) --- updated-dependencies: - dependency-name: github.com/stackitcloud/stackit-sdk-go/services/rabbitmq dependency-version: 0.26.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 29b17db39..0ad0dd8f7 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( github.com/stackitcloud/stackit-sdk-go/services/observability v0.16.3 github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.6 github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.3.5 - github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6 + github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0 github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.6 github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.5 github.com/stackitcloud/stackit-sdk-go/services/scf v0.4.3 diff --git a/go.sum b/go.sum index 96c101459..6218ab211 100644 --- a/go.sum +++ b/go.sum @@ -185,8 +185,8 @@ github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.6 h1:oTVx1+O177 github.com/stackitcloud/stackit-sdk-go/services/opensearch v0.24.6/go.mod h1:6ZBeCCY6qG8w1oK7osf61Egyv3mp7Ahv6GDGxiarDGo= github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.3.5 h1:H67e3KnHQx954yI8fuQmxXwRf/myqAdLg2KvxImp00g= github.com/stackitcloud/stackit-sdk-go/services/postgresflex v1.3.5/go.mod h1:xmAWk9eom8wznvLuLfm0F4xyeiBX8LaggXsKFmos+dw= -github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6 h1:+TFfl1ON/uM5aO0FdkBNYKBa7vx0zrCYVtX6zvqQYBA= -github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.25.6/go.mod h1:hnhvlLX1Y71R8KIQqLBeoSZqkU5ZJOG0J4wz0LeUdaw= +github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0 h1:/8lmviszgrB+0Cz7HdhFELyTiTeqIs7LfnI6sNX4rW8= +github.com/stackitcloud/stackit-sdk-go/services/rabbitmq v0.26.0/go.mod h1:hnhvlLX1Y71R8KIQqLBeoSZqkU5ZJOG0J4wz0LeUdaw= github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.6 h1:CXM9cZ9WeTyJd+Aw/hnJnDsKRVAQi4qgtd0RJ3zoPwo= github.com/stackitcloud/stackit-sdk-go/services/redis v0.25.6/go.mod h1:KJNceOHRefjku1oVBoHG7idCS/SeW42WJ+55bN3AxrQ= github.com/stackitcloud/stackit-sdk-go/services/resourcemanager v0.18.5 h1:MZ5aTO2NQ1Jecmi67ByGskve5nKXHl91fE+z+vFjxt4= From 953c8f98c94a7621541334119135e21f5947f4f6 Mon Sep 17 00:00:00 2001 From: Alexander Dahmen Date: Wed, 18 Feb 2026 08:41:16 +0100 Subject: [PATCH 2/2] breaking_change(rabbitmq): TlsProtocols is now an array of strings instead of a single string Signed-off-by: Alexander Dahmen --- docs/data-sources/rabbitmq_instance.md | 2 +- docs/resources/rabbitmq_instance.md | 2 +- .../services/rabbitmq/instance/datasource.go | 5 +++-- .../services/rabbitmq/instance/resource.go | 15 ++++++++++----- .../services/rabbitmq/instance/resource_test.go | 9 ++++++--- 5 files changed, 21 insertions(+), 12 deletions(-) diff --git a/docs/data-sources/rabbitmq_instance.md b/docs/data-sources/rabbitmq_instance.md index c6205f65a..9574a5971 100644 --- a/docs/data-sources/rabbitmq_instance.md +++ b/docs/data-sources/rabbitmq_instance.md @@ -58,4 +58,4 @@ Read-Only: - `sgw_acl` (String) Comma separated list of IP networks in CIDR notation which are allowed to access this instance. - `syslog` (List of String) List of syslog servers to send logs to. - `tls_ciphers` (List of String) List of TLS ciphers to use. -- `tls_protocols` (String) TLS protocol to use. +- `tls_protocols` (List of String) TLS protocol versions to use. diff --git a/docs/resources/rabbitmq_instance.md b/docs/resources/rabbitmq_instance.md index 40cf2ab05..b6f03ca23 100644 --- a/docs/resources/rabbitmq_instance.md +++ b/docs/resources/rabbitmq_instance.md @@ -75,4 +75,4 @@ Optional: - `sgw_acl` (String) Comma separated list of IP networks in CIDR notation which are allowed to access this instance. - `syslog` (List of String) List of syslog servers to send logs to. - `tls_ciphers` (List of String) List of TLS ciphers to use. -- `tls_protocols` (String) TLS protocol to use. +- `tls_protocols` (List of String) TLS protocol versions to use. diff --git a/stackit/internal/services/rabbitmq/instance/datasource.go b/stackit/internal/services/rabbitmq/instance/datasource.go index 7cd256413..e7a7eded5 100644 --- a/stackit/internal/services/rabbitmq/instance/datasource.go +++ b/stackit/internal/services/rabbitmq/instance/datasource.go @@ -81,7 +81,7 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques "roles": "List of roles to assign to the instance.", "syslog": "List of syslog servers to send logs to.", "tls_ciphers": "List of TLS ciphers to use.", - "tls_protocols": "TLS protocol to use.", + "tls_protocols": "TLS protocol versions to use.", } resp.Schema = schema.Schema{ @@ -177,8 +177,9 @@ func (r *instanceDataSource) Schema(_ context.Context, _ datasource.SchemaReques ElementType: types.StringType, Computed: true, }, - "tls_protocols": schema.StringAttribute{ + "tls_protocols": schema.ListAttribute{ Description: parametersDescriptions["tls_protocols"], + ElementType: types.StringType, Computed: true, }, }, diff --git a/stackit/internal/services/rabbitmq/instance/resource.go b/stackit/internal/services/rabbitmq/instance/resource.go index 10b8d3404..430d619bb 100644 --- a/stackit/internal/services/rabbitmq/instance/resource.go +++ b/stackit/internal/services/rabbitmq/instance/resource.go @@ -67,7 +67,7 @@ type parametersModel struct { Roles types.List `tfsdk:"roles"` Syslog types.List `tfsdk:"syslog"` TlsCiphers types.List `tfsdk:"tls_ciphers"` - TlsProtocols types.String `tfsdk:"tls_protocols"` + TlsProtocols types.List `tfsdk:"tls_protocols"` } // Types corresponding to parametersModel @@ -84,7 +84,7 @@ var parametersTypes = map[string]attr.Type{ "roles": basetypes.ListType{ElemType: types.StringType}, "syslog": basetypes.ListType{ElemType: types.StringType}, "tls_ciphers": basetypes.ListType{ElemType: types.StringType}, - "tls_protocols": basetypes.StringType{}, + "tls_protocols": basetypes.ListType{ElemType: types.StringType}, } // NewInstanceResource is a helper function to simplify the provider implementation. @@ -144,7 +144,7 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r "roles": "List of roles to assign to the instance.", "syslog": "List of syslog servers to send logs to.", "tls_ciphers": "List of TLS ciphers to use.", - "tls_protocols": "TLS protocol to use.", + "tls_protocols": "TLS protocol versions to use.", } resp.Schema = schema.Schema{ @@ -274,8 +274,9 @@ func (r *instanceResource) Schema(_ context.Context, _ resource.SchemaRequest, r Optional: true, Computed: true, }, - "tls_protocols": schema.StringAttribute{ + "tls_protocols": schema.ListAttribute{ Description: parametersDescriptions["tls_protocols"], + ElementType: types.StringType, Optional: true, Computed: true, }, @@ -749,7 +750,6 @@ func toInstanceParams(parameters *parametersModel) (*rabbitmq.InstanceParameters payloadParams.MetricsFrequency = conversion.Int64ValueToPointer(parameters.MetricsFrequency) payloadParams.MetricsPrefix = conversion.StringValueToPointer(parameters.MetricsPrefix) payloadParams.MonitoringInstanceId = conversion.StringValueToPointer(parameters.MonitoringInstanceId) - payloadParams.TlsProtocols = rabbitmq.InstanceParametersGetTlsProtocolsAttributeType(conversion.StringValueToPointer(parameters.TlsProtocols)) var err error payloadParams.Plugins, err = conversion.StringListToPointer(parameters.Plugins) @@ -772,6 +772,11 @@ func toInstanceParams(parameters *parametersModel) (*rabbitmq.InstanceParameters return nil, fmt.Errorf("converting tls_ciphers: %w", err) } + payloadParams.TlsProtocols, err = conversion.StringListToPointer(parameters.TlsProtocols) + if err != nil { + return nil, fmt.Errorf("converting tls_protocol_versions: %w", err) + } + return payloadParams, nil } diff --git a/stackit/internal/services/rabbitmq/instance/resource_test.go b/stackit/internal/services/rabbitmq/instance/resource_test.go index 1b42d27c1..f2e26ddee 100644 --- a/stackit/internal/services/rabbitmq/instance/resource_test.go +++ b/stackit/internal/services/rabbitmq/instance/resource_test.go @@ -37,7 +37,10 @@ var fixtureModelParameters = types.ObjectValueMust(parametersTypes, map[string]a types.StringValue("ciphers1"), types.StringValue("ciphers2"), }), - "tls_protocols": types.StringValue(string(rabbitmq.INSTANCEPARAMETERSTLS_PROTOCOLS__2)), + "tls_protocols": types.ListValueMust(types.StringType, []attr.Value{ + types.StringValue("tlsv1.2"), + types.StringValue("tlsv1.3"), + }), }) var fixtureInstanceParameters = rabbitmq.InstanceParameters{ @@ -53,7 +56,7 @@ var fixtureInstanceParameters = rabbitmq.InstanceParameters{ Roles: &[]string{"role1", "role2"}, Syslog: &[]string{"syslog", "syslog2"}, TlsCiphers: &[]string{"ciphers1", "ciphers2"}, - TlsProtocols: rabbitmq.INSTANCEPARAMETERSTLS_PROTOCOLS__2.Ptr(), + TlsProtocols: &[]string{"tlsv1.2", "tlsv1.3"}, } func TestMapFields(t *testing.T) { @@ -105,7 +108,7 @@ func TestMapFields(t *testing.T) { "roles": []string{"role1", "role2"}, "syslog": []string{"syslog", "syslog2"}, "tls-ciphers": []string{"ciphers1", "ciphers2"}, - "tls-protocols": string(rabbitmq.INSTANCEPARAMETERSTLS_PROTOCOLS__2), + "tls-protocols": []string{"tlsv1.2", "tlsv1.3"}, }, }, Model{