From d4201522e9c289e97a71b70351c5653ab70bdf4c Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Mon, 19 Feb 2024 14:39:29 +0100 Subject: [PATCH 1/8] fix: generate machine secret --- docs/index.md | 3 +- docs/resources/machine_user.md | 12 +++++--- examples/provider/resources/machine_user.tf | 9 +++--- zitadel/machine_user/const.go | 3 ++ zitadel/machine_user/funcs.go | 31 +++++++++++++++++++++ zitadel/machine_user/resource.go | 18 ++++++++++++ 6 files changed, 66 insertions(+), 10 deletions(-) diff --git a/docs/index.md b/docs/index.md index 132889e0..426af813 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,7 +31,7 @@ terraform { required_providers { zitadel = { source = "zitadel/zitadel" - version = "1.0.0-alpha.16" + version = "1.0.7" } } } @@ -40,7 +40,6 @@ provider "zitadel" { domain = "localhost" insecure = "true" port = "8080" - project = "170832731415117995" jwt_profile_file = "local-token" } ``` diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index eb9541af..b1dbddcd 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -13,10 +13,11 @@ Resource representing a serviceaccount situated under an organization, which the ```terraform resource "zitadel_machine_user" "default" { - org_id = data.zitadel_org.default.id - user_name = "machine@example.com" - name = "name" - description = "a machine user" + org_id = data.zitadel_org.default.id + user_name = "machine@example.com" + name = "name" + description = "a machine user" + generate_secret = true } ``` @@ -25,6 +26,7 @@ resource "zitadel_machine_user" "default" { ### Required +- `generate_secret` (Boolean) Generate machine secret, only applicable if creation or change from false - `name` (String) Name of the machine user - `user_name` (String) Username @@ -36,6 +38,8 @@ resource "zitadel_machine_user" "default" { ### Read-Only +- `client_id` (String, Sensitive) Value of the client ID +- `client_secret` (String, Sensitive) Value of the client secret - `id` (String) The ID of this resource. - `login_names` (List of String) Loginnames - `preferred_login_name` (String) Preferred login name diff --git a/examples/provider/resources/machine_user.tf b/examples/provider/resources/machine_user.tf index 358ec2e9..38b9ebf7 100644 --- a/examples/provider/resources/machine_user.tf +++ b/examples/provider/resources/machine_user.tf @@ -1,6 +1,7 @@ resource "zitadel_machine_user" "default" { - org_id = data.zitadel_org.default.id - user_name = "machine@example.com" - name = "name" - description = "a machine user" + org_id = data.zitadel_org.default.id + user_name = "machine@example.com" + name = "name" + description = "a machine user" + generate_secret = true } diff --git a/zitadel/machine_user/const.go b/zitadel/machine_user/const.go index 154e42b6..07b73472 100644 --- a/zitadel/machine_user/const.go +++ b/zitadel/machine_user/const.go @@ -15,6 +15,9 @@ const ( nameVar = "name" DescriptionVar = "description" accessTokenTypeVar = "access_token_type" + generateSecretVar = "generate_secret" + clientIDVar = "client_id" + clientSecretVar = "client_secret" ) var ( diff --git a/zitadel/machine_user/funcs.go b/zitadel/machine_user/funcs.go index a3720645..dc767c49 100644 --- a/zitadel/machine_user/funcs.go +++ b/zitadel/machine_user/funcs.go @@ -58,6 +58,22 @@ func create(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia return diag.Errorf("failed to create machine user: %v", err) } d.SetId(respUser.UserId) + + if d.Get(generateSecretVar).(bool) { + resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ + UserId: respUser.UserId, + }) + if err != nil { + return diag.Errorf("failed to generate machine user secret: %v", err) + } + if err := d.Set(clientIDVar, resp.GetClientId()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientIDVar, err) + } + if err := d.Set(clientSecretVar, resp.GetClientSecret()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientSecretVar, err) + } + } + // To avoid diffs for terraform plan -refresh=false right after creation, we query and set the computed values. // The acceptance tests rely on this, too. return read(ctx, d, m) @@ -97,6 +113,21 @@ func update(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia return diag.Errorf("failed to update machine user: %v", err) } } + + if d.HasChange(generateSecretVar) && d.Get(generateSecretVar).(bool) { + resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ + UserId: d.Id(), + }) + if err != nil { + return diag.Errorf("failed to generate machine user secret: %v", err) + } + if err := d.Set(clientIDVar, resp.GetClientId()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientIDVar, err) + } + if err := d.Set(clientSecretVar, resp.GetClientSecret()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientSecretVar, err) + } + } return nil } diff --git a/zitadel/machine_user/resource.go b/zitadel/machine_user/resource.go index 208d97de..4bf2db8c 100644 --- a/zitadel/machine_user/resource.go +++ b/zitadel/machine_user/resource.go @@ -60,6 +60,24 @@ func GetResource() *schema.Resource { }, Default: defaultAccessTokenType, }, + generateSecretVar: { + Type: schema.TypeBool, + Required: true, + Default: false, + Description: "Generate machine secret, only applicable if creation or change from false", + }, + clientIDVar: { + Type: schema.TypeString, + Computed: true, + Description: "Value of the client ID", + Sensitive: true, + }, + clientSecretVar: { + Type: schema.TypeString, + Computed: true, + Description: "Value of the client secret", + Sensitive: true, + }, }, ReadContext: read, CreateContext: create, From d4c90c432278517c74d761f8026b873c6a20cea8 Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Mon, 19 Feb 2024 15:08:16 +0100 Subject: [PATCH 2/8] fix: generate machine secret --- docs/resources/machine_user.md | 2 +- zitadel/machine_user/funcs.go | 39 ++++++++++++++++++++++---------- zitadel/machine_user/resource.go | 2 +- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index b1dbddcd..e20dd25f 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -26,7 +26,6 @@ resource "zitadel_machine_user" "default" { ### Required -- `generate_secret` (Boolean) Generate machine secret, only applicable if creation or change from false - `name` (String) Name of the machine user - `user_name` (String) Username @@ -34,6 +33,7 @@ resource "zitadel_machine_user" "default" { - `access_token_type` (String) Access token type, supported values: ACCESS_TOKEN_TYPE_BEARER, ACCESS_TOKEN_TYPE_JWT - `description` (String) Description of the user +- `generate_secret` (Boolean) Generate machine secret, only applicable if creation or change from false - `org_id` (String) ID of the organization ### Read-Only diff --git a/zitadel/machine_user/funcs.go b/zitadel/machine_user/funcs.go index dc767c49..66a6f70d 100644 --- a/zitadel/machine_user/funcs.go +++ b/zitadel/machine_user/funcs.go @@ -114,18 +114,33 @@ func update(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia } } - if d.HasChange(generateSecretVar) && d.Get(generateSecretVar).(bool) { - resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ - UserId: d.Id(), - }) - if err != nil { - return diag.Errorf("failed to generate machine user secret: %v", err) - } - if err := d.Set(clientIDVar, resp.GetClientId()); err != nil { - return diag.Errorf("failed to set %s of user: %v", clientIDVar, err) - } - if err := d.Set(clientSecretVar, resp.GetClientSecret()); err != nil { - return diag.Errorf("failed to set %s of user: %v", clientSecretVar, err) + if d.HasChange(generateSecretVar) { + if d.Get(generateSecretVar).(bool) { + resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ + UserId: d.Id(), + }) + if err != nil { + return diag.Errorf("failed to generate machine user secret: %v", err) + } + if err := d.Set(clientIDVar, resp.GetClientId()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientIDVar, err) + } + if err := d.Set(clientSecretVar, resp.GetClientSecret()); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientSecretVar, err) + } + } else { + _, err := client.RemoveMachineSecret(helper.CtxWithOrgID(ctx, d), &management.RemoveMachineSecretRequest{ + UserId: d.Id(), + }) + if err != nil { + return diag.Errorf("failed to remove machine user secret: %v", err) + } + if err := d.Set(clientIDVar, ""); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientIDVar, err) + } + if err := d.Set(clientSecretVar, ""); err != nil { + return diag.Errorf("failed to set %s of user: %v", clientSecretVar, err) + } } } return nil diff --git a/zitadel/machine_user/resource.go b/zitadel/machine_user/resource.go index 4bf2db8c..9ab20b43 100644 --- a/zitadel/machine_user/resource.go +++ b/zitadel/machine_user/resource.go @@ -62,7 +62,7 @@ func GetResource() *schema.Resource { }, generateSecretVar: { Type: schema.TypeBool, - Required: true, + Optional: true, Default: false, Description: "Generate machine secret, only applicable if creation or change from false", }, From 2fc0a127c4fd8d6c253140475fc95ed56675318c Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Mon, 19 Feb 2024 15:18:53 +0100 Subject: [PATCH 3/8] fix: generate machine secret --- examples/provider/resources/machine_user.tf | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/provider/resources/machine_user.tf b/examples/provider/resources/machine_user.tf index 38b9ebf7..9424402a 100644 --- a/examples/provider/resources/machine_user.tf +++ b/examples/provider/resources/machine_user.tf @@ -3,5 +3,4 @@ resource "zitadel_machine_user" "default" { user_name = "machine@example.com" name = "name" description = "a machine user" - generate_secret = true } From dafb5d82c38213dc1550e8b8b78e46ded67258ca Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Mon, 19 Feb 2024 15:32:36 +0100 Subject: [PATCH 4/8] fix: generate machine secret --- docs/resources/machine_user.md | 7 +++---- zitadel/machine_user/const.go | 2 +- zitadel/machine_user/funcs.go | 6 +++--- zitadel/machine_user/resource.go | 6 +++--- 4 files changed, 10 insertions(+), 11 deletions(-) diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index e20dd25f..69198acd 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -17,7 +17,6 @@ resource "zitadel_machine_user" "default" { user_name = "machine@example.com" name = "name" description = "a machine user" - generate_secret = true } ``` @@ -33,13 +32,13 @@ resource "zitadel_machine_user" "default" { - `access_token_type` (String) Access token type, supported values: ACCESS_TOKEN_TYPE_BEARER, ACCESS_TOKEN_TYPE_JWT - `description` (String) Description of the user -- `generate_secret` (Boolean) Generate machine secret, only applicable if creation or change from false - `org_id` (String) ID of the organization +- `with_secret` (Boolean) Generate machine secret, only applicable if creation or change from false ### Read-Only -- `client_id` (String, Sensitive) Value of the client ID -- `client_secret` (String, Sensitive) Value of the client secret +- `client_id` (String, Sensitive) Value of the client ID if withSecret is true +- `client_secret` (String, Sensitive) Value of the client secret if withSecret is true - `id` (String) The ID of this resource. - `login_names` (List of String) Loginnames - `preferred_login_name` (String) Preferred login name diff --git a/zitadel/machine_user/const.go b/zitadel/machine_user/const.go index 07b73472..2e5e23a9 100644 --- a/zitadel/machine_user/const.go +++ b/zitadel/machine_user/const.go @@ -15,7 +15,7 @@ const ( nameVar = "name" DescriptionVar = "description" accessTokenTypeVar = "access_token_type" - generateSecretVar = "generate_secret" + withSecretVar = "with_secret" clientIDVar = "client_id" clientSecretVar = "client_secret" ) diff --git a/zitadel/machine_user/funcs.go b/zitadel/machine_user/funcs.go index 66a6f70d..d4ba61bf 100644 --- a/zitadel/machine_user/funcs.go +++ b/zitadel/machine_user/funcs.go @@ -59,7 +59,7 @@ func create(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia } d.SetId(respUser.UserId) - if d.Get(generateSecretVar).(bool) { + if d.Get(withSecretVar).(bool) { resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ UserId: respUser.UserId, }) @@ -114,8 +114,8 @@ func update(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia } } - if d.HasChange(generateSecretVar) { - if d.Get(generateSecretVar).(bool) { + if d.HasChange(withSecretVar) { + if d.Get(withSecretVar).(bool) { resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ UserId: d.Id(), }) diff --git a/zitadel/machine_user/resource.go b/zitadel/machine_user/resource.go index 9ab20b43..4863c766 100644 --- a/zitadel/machine_user/resource.go +++ b/zitadel/machine_user/resource.go @@ -60,7 +60,7 @@ func GetResource() *schema.Resource { }, Default: defaultAccessTokenType, }, - generateSecretVar: { + withSecretVar: { Type: schema.TypeBool, Optional: true, Default: false, @@ -69,13 +69,13 @@ func GetResource() *schema.Resource { clientIDVar: { Type: schema.TypeString, Computed: true, - Description: "Value of the client ID", + Description: "Value of the client ID if withSecret is true", Sensitive: true, }, clientSecretVar: { Type: schema.TypeString, Computed: true, - Description: "Value of the client secret", + Description: "Value of the client secret if withSecret is true", Sensitive: true, }, }, From 6d59646f2ca364ee8ac5df1d977e216ade9b707f Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Mon, 19 Feb 2024 16:47:01 +0100 Subject: [PATCH 5/8] fix: generate machine secret --- docs/resources/machine_user.md | 9 +++++---- examples/provider/resources/machine_user.tf | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index 69198acd..b44dcdf1 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -13,10 +13,11 @@ Resource representing a serviceaccount situated under an organization, which the ```terraform resource "zitadel_machine_user" "default" { - org_id = data.zitadel_org.default.id - user_name = "machine@example.com" - name = "name" - description = "a machine user" + org_id = data.zitadel_org.default.id + user_name = "machine@example.com" + name = "name" + description = "a machine user" + with_secret = false } ``` diff --git a/examples/provider/resources/machine_user.tf b/examples/provider/resources/machine_user.tf index 9424402a..717ed894 100644 --- a/examples/provider/resources/machine_user.tf +++ b/examples/provider/resources/machine_user.tf @@ -1,6 +1,7 @@ resource "zitadel_machine_user" "default" { - org_id = data.zitadel_org.default.id - user_name = "machine@example.com" - name = "name" - description = "a machine user" + org_id = data.zitadel_org.default.id + user_name = "machine@example.com" + name = "name" + description = "a machine user" + with_secret = false } From f400322b08b01ef9b368af8d34fcfd2fddede587 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 22 Feb 2024 09:45:56 +0100 Subject: [PATCH 6/8] fix: import machine user with secret --- docs/resources/machine_user.md | 4 ++-- examples/provider/resources/machine_user-import.sh | 4 ++-- zitadel/helper/import.go | 5 +++++ zitadel/machine_user/const.go | 2 +- zitadel/machine_user/funcs.go | 6 +++--- zitadel/machine_user/resource.go | 9 +++++++-- zitadel/machine_user/resource_test.go | 4 ++++ 7 files changed, 24 insertions(+), 10 deletions(-) diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index b44dcdf1..6803782f 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -48,6 +48,6 @@ resource "zitadel_machine_user" "default" { ## Import ```terraform -# The resource can be imported using the ID format ``, e.g. -terraform import machine_user.imported '123456789012345678:123456789012345678' +# The resource can be imported using the ID format ``, e.g. +terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' ``` diff --git a/examples/provider/resources/machine_user-import.sh b/examples/provider/resources/machine_user-import.sh index 3bcd0fbb..f7e92638 100644 --- a/examples/provider/resources/machine_user-import.sh +++ b/examples/provider/resources/machine_user-import.sh @@ -1,2 +1,2 @@ -# The resource can be imported using the ID format ``, e.g. -terraform import machine_user.imported '123456789012345678:123456789012345678' +# The resource can be imported using the ID format ``, e.g. +terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' diff --git a/zitadel/helper/import.go b/zitadel/helper/import.go index 4ff96c21..76b10b1d 100644 --- a/zitadel/helper/import.go +++ b/zitadel/helper/import.go @@ -8,6 +8,7 @@ import ( "fmt" "io" "sort" + "strconv" "strings" "github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema" @@ -201,6 +202,10 @@ func ConvertNonEmpty(importValue string) (interface{}, error) { return importValue, nil } +func ConvertBool(importValue string) (interface{}, error) { + return strconv.ParseBool(importValue) +} + // ImportIDValidationError wraps err with a help message about the expected format if it is not nil func ImportIDValidationError(givenID string, requiredKeys, optionalKeys []string, err error) error { if err == nil { diff --git a/zitadel/machine_user/const.go b/zitadel/machine_user/const.go index 2e5e23a9..ff26d6da 100644 --- a/zitadel/machine_user/const.go +++ b/zitadel/machine_user/const.go @@ -15,7 +15,7 @@ const ( nameVar = "name" DescriptionVar = "description" accessTokenTypeVar = "access_token_type" - withSecretVar = "with_secret" + WithSecretVar = "with_secret" clientIDVar = "client_id" clientSecretVar = "client_secret" ) diff --git a/zitadel/machine_user/funcs.go b/zitadel/machine_user/funcs.go index d4ba61bf..cd5ae36b 100644 --- a/zitadel/machine_user/funcs.go +++ b/zitadel/machine_user/funcs.go @@ -59,7 +59,7 @@ func create(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia } d.SetId(respUser.UserId) - if d.Get(withSecretVar).(bool) { + if d.Get(WithSecretVar).(bool) { resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ UserId: respUser.UserId, }) @@ -114,8 +114,8 @@ func update(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Dia } } - if d.HasChange(withSecretVar) { - if d.Get(withSecretVar).(bool) { + if d.HasChange(WithSecretVar) { + if d.Get(WithSecretVar).(bool) { resp, err := client.GenerateMachineSecret(helper.CtxWithOrgID(ctx, d), &management.GenerateMachineSecretRequest{ UserId: d.Id(), }) diff --git a/zitadel/machine_user/resource.go b/zitadel/machine_user/resource.go index 4863c766..1cff76a0 100644 --- a/zitadel/machine_user/resource.go +++ b/zitadel/machine_user/resource.go @@ -60,7 +60,7 @@ func GetResource() *schema.Resource { }, Default: defaultAccessTokenType, }, - withSecretVar: { + WithSecretVar: { Type: schema.TypeBool, Optional: true, Default: false, @@ -83,6 +83,11 @@ func GetResource() *schema.Resource { CreateContext: create, DeleteContext: delete, UpdateContext: update, - Importer: helper.ImportWithIDAndOptionalOrg(UserIDVar), + Importer: helper.ImportWithIDAndOptionalOrg( + UserIDVar, + helper.NewImportAttribute(WithSecretVar, helper.ConvertBool, false), + helper.NewImportAttribute(clientIDVar, helper.ConvertNonEmpty, true), + helper.NewImportAttribute(clientSecretVar, helper.ConvertNonEmpty, true), + ), } } diff --git a/zitadel/machine_user/resource_test.go b/zitadel/machine_user/resource_test.go index 42d484fd..79594b17 100644 --- a/zitadel/machine_user/resource_test.go +++ b/zitadel/machine_user/resource_test.go @@ -2,6 +2,7 @@ package machine_user_test import ( "fmt" + "strconv" "strings" "testing" @@ -33,6 +34,9 @@ func TestAccMachineUser(t *testing.T) { test_utils.CheckIsNotFoundFromPropertyCheck(checkRemoteProperty(frame), ""), test_utils.ChainImportStateIdFuncs( test_utils.ImportResourceId(frame.BaseTestFrame), + func(state *terraform.State) (string, error) { + return strconv.FormatBool(test_utils.AttributeValue(t, machine_user.WithSecretVar, exampleAttributes).True()), nil + }, test_utils.ImportOrgId(frame), ), ) From 457892af880654ee074e6eae7b49e20e1f2f6f7e Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Thu, 22 Feb 2024 09:51:46 +0100 Subject: [PATCH 7/8] docs: import --- docs/resources/machine_user.md | 2 +- examples/provider/resources/machine_user-import.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/machine_user.md b/docs/resources/machine_user.md index 6803782f..9c1eefec 100644 --- a/docs/resources/machine_user.md +++ b/docs/resources/machine_user.md @@ -48,6 +48,6 @@ resource "zitadel_machine_user" "default" { ## Import ```terraform -# The resource can be imported using the ID format ``, e.g. +# The resource can be imported using the ID format ``, e.g. terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' ``` diff --git a/examples/provider/resources/machine_user-import.sh b/examples/provider/resources/machine_user-import.sh index f7e92638..d5eb9f00 100644 --- a/examples/provider/resources/machine_user-import.sh +++ b/examples/provider/resources/machine_user-import.sh @@ -1,2 +1,2 @@ -# The resource can be imported using the ID format ``, e.g. +# The resource can be imported using the ID format ``, e.g. terraform import machine_user.imported '123456789012345678:123456789012345678:true:my-machine-user:j76mh34CHVrGGoXPQOg80lch67FIxwc2qIXjBkZoB6oMbf31eGMkB6bvRyaPjR2t' From d7e1703288f549a5a4208066d807ea6a9e55c1b9 Mon Sep 17 00:00:00 2001 From: Stefan Benz Date: Fri, 23 Feb 2024 13:41:20 +0100 Subject: [PATCH 8/8] docs: add version for provider after release --- docs/index.md | 2 +- examples/provider/provider.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/index.md b/docs/index.md index 426af813..af2252bb 100644 --- a/docs/index.md +++ b/docs/index.md @@ -31,7 +31,7 @@ terraform { required_providers { zitadel = { source = "zitadel/zitadel" - version = "1.0.7" + version = "1.1.0" } } } diff --git a/examples/provider/provider.tf b/examples/provider/provider.tf index 70fb7c3b..649ac1c7 100644 --- a/examples/provider/provider.tf +++ b/examples/provider/provider.tf @@ -2,7 +2,7 @@ terraform { required_providers { zitadel = { source = "zitadel/zitadel" - version = "1.0.7" + version = "1.1.0" } } }