Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Commit

Permalink
Properly remove ProvisionTOken genration
Browse files Browse the repository at this point in the history
  • Loading branch information
strideynet committed Apr 30, 2024
1 parent e991c3c commit bbe7be3
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 4,528 deletions.
21 changes: 0 additions & 21 deletions terraform/protoc-gen-terraform-teleport.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ types:
- "GithubConnectorV3"
- "OIDCConnectorV3"
- "OktaImportRuleV1"
- "ProvisionTokenV2"
- "RoleV6"
- "SAMLConnectorV2"
- "ServerV2"
Expand Down Expand Up @@ -157,9 +156,6 @@ exclude_fields:
- "UserSpecV2.CreatedBy"
- "UserSpecV2.Status"

# Temporary fix to release 15.2.2
- "ProvisionTokenV2.Spec.TPM"

name_overrides:

# These fields will be marked as Computed: true
Expand Down Expand Up @@ -194,11 +190,6 @@ computed_fields:
# Github connector
- "GithubConnectorV3.Kind"

# Provision token
- "ProvisionTokenV2.Spec.AWSIIDTTL"
- "ProvisionTokenV2.Kind"
- "ProvisionTokenV2.Metadata.Name"

# OIDC connector
- "OIDCConnectorV3.Kind"

Expand Down Expand Up @@ -307,12 +298,6 @@ required_fields:
- "OktaImportRuleV1.Metadata.Name"
- "OktaImportRuleV1.Version"

# Provision token
- "ProvisionTokenV2.Spec"
- "ProvisionTokenV2.Spec.Options"
- "ProvisionTokenV2.Spec.Roles"
- "ProvisionTokenV2.Version"

# Role
- "RoleV6.Metadata.Name"
- "RoleV6.Version"
Expand Down Expand Up @@ -343,7 +328,6 @@ required_fields:

# These fields must be marked as sensitive
sensitive_fields:
- "ProvisionTokenV2.Metadata.Name"
- "SAMLConnectorV2.Spec.Cert"
- "SAMLConnectorV2.Spec.SigningKeyPair.PrivateKey"
- "SAMLConnectorV2.Spec.EncryptionKeyPair.PrivateKey"
Expand All @@ -364,9 +348,6 @@ plan_modifiers:
# Force to recreate resource if it's name changes
Metadata.Name:
- "github.com/hashicorp/terraform-plugin-framework/tfsdk.RequiresReplace()"
ProvisionTokenV2.Metadata.Name:
- "github.com/hashicorp/terraform-plugin-framework/tfsdk.RequiresReplace()"
- "github.com/hashicorp/terraform-plugin-framework/tfsdk.UseStateForUnknown()"
ServerV2.Metadata.Name:
- "github.com/hashicorp/terraform-plugin-framework/tfsdk.UseStateForUnknown()"
- "github.com/hashicorp/terraform-plugin-framework/tfsdk.RequiresReplace()"
Expand Down Expand Up @@ -395,8 +376,6 @@ validators:
- UseVersionBetween(3,3)
OktaImportRuleV1.Version:
- UseVersionBetween(1,1)
ProvisionTokenV2.Version:
- UseVersionBetween(2,2)
RoleV6.Version:
- UseVersionBetween(3,7)
SAMLConnectorV2.Version:
Expand Down
Loading

0 comments on commit bbe7be3

Please sign in to comment.