Skip to content

[FEAT]: support write-only secrets attributes for webhook resources #3628

Description

@tdyas

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

  • GitHub.com (Free, Pro, or Team)
  • GitHub Enterprise Server (on-premises)
  • GitHub Enterprise Cloud with Personal Accounts (github.com)
  • GitHub Enterprise Cloud with Managed Users/EMU (github.com)
  • GitHub Enterprise Cloud with Data Residency (*.ghe.com)
  • I don't know

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: TriageThis is being looked at and prioritizedType: FeatureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions