Describe the need
The webhook resources (github_repository_webhook and github_organization_webhook) have a secret attribute which is not write-only, and thus the secret is persisted in Terraform state.
A better pattern used in other Terraform providers is to support write-only attributes secret_wo and secret_wo_version so that the secrets can be sourced from ephemeral resources and not persisted to the Terraform state nor included in a plan.
GitHub Installation Type
Relevant log output
Code of Conduct
Describe the need
The webhook resources (
github_repository_webhookandgithub_organization_webhook) have asecretattribute which is not write-only, and thus the secret is persisted in Terraform state.A better pattern used in other Terraform providers is to support write-only attributes
secret_woandsecret_wo_versionso that the secrets can be sourced from ephemeral resources and not persisted to the Terraform state nor included in a plan.GitHub Installation Type
Relevant log output
Code of Conduct