From 4e99df6454f900ff012a0581a1ba01689d34dd91 Mon Sep 17 00:00:00 2001 From: Divya Pola Date: Wed, 18 Dec 2024 14:07:35 -0600 Subject: [PATCH 1/2] Add replacable attribute for secret_name in hvs secret resource --- .../provider/vaultsecrets/resource_vault_secrets_secret.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal/provider/vaultsecrets/resource_vault_secrets_secret.go b/internal/provider/vaultsecrets/resource_vault_secrets_secret.go index cea6f4736..4988f9442 100644 --- a/internal/provider/vaultsecrets/resource_vault_secrets_secret.go +++ b/internal/provider/vaultsecrets/resource_vault_secrets_secret.go @@ -76,6 +76,9 @@ func (r *resourceVaultsecretsSecret) Schema(_ context.Context, _ resource.Schema "must contain only ASCII letters, numbers, and underscores; must not start with a number", ), }, + PlanModifiers: []planmodifier.String{ + stringplanmodifier.RequiresReplace(), + }, }, "secret_value": schema.StringAttribute{ Description: "The value of the secret", From e069385431199efbeb6c4b44e43af454e8d2a539 Mon Sep 17 00:00:00 2001 From: Divya Pola Date: Wed, 18 Dec 2024 14:15:52 -0600 Subject: [PATCH 2/2] add changelog --- .changelog/1157.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/1157.txt diff --git a/.changelog/1157.txt b/.changelog/1157.txt new file mode 100644 index 000000000..786460e4b --- /dev/null +++ b/.changelog/1157.txt @@ -0,0 +1,3 @@ +```release-note:bug +Fix a bug when updating HVS secret name +```