Skip to content

[BUG]: 'plaintext_value' forces delete and create instead of inplace update #2518

Closed

Description

@zilinjak

Expected Behavior

When changing 'plaintext_value' we want to replace the value inplace, as we can do in github UI. The problem is that when we are changing a lot of secrets this leads to significant downtime - 5-10 minutes, because we can see something like

github_actions_environment_secret.AZURE_SP_PASS: Still creating... [1m20s elapsed]

Actual Behavior

The force replace firstly deletes the value and then creates it which leads to secret downtime. I think it would be better to update the value INPLACE

Terraform Version

Terraform v1.8.4
on darwin_arm64

  • provider registry.terraform.io/hashicorp/azurerm v3.106.1
  • provider registry.terraform.io/hashicorp/github v6.2.1
  • provider registry.terraform.io/rewe-digital/sonarcloud v0.5.2

Affected Resource(s)

  • github_dependabot_secret
  • github_actions_secret
  • github_actions_environment_secret

maybe more that setup secrets

Terraform Configuration Files

data "azurerm_key_vault" "example" {
  name                = "..."
  resource_group_name = "..."
}

data "azurerm_key_vault_secret" "AZURE_SP_PASS" {
  name         = "${var.sp_name}-password"
  key_vault_id = data.azurerm_key_vault.example.id
}

resource "github_actions_secret" "AZURE_SP_PASS" {
  secret_name      = var.sp_password_secret_name
  repository       = var.repository
  plaintext_value  = data.azurerm_key_vault_secret.AZURE_SP_PASS.value
}

Steps to Reproduce

No response

Debug Output

No response

Panic Output

No response

Code of Conduct

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

Activity

  1. added
    Status: Triage
    Type: Bug
    on Dec 16, 2024
  2. moved this from 🆕 Triage to 🔥 Backlog in 🧰 Octokit Activeon Dec 23, 2024
  3. irizzant commented on Mar 11, 2025

    @irizzant

    Hi
    I'm hitting the same issue, any plan to release #2559?

  4. added this to the v6.11.0 Release milestone on Jan 13, 2026
  5. removed
    Status: Triage
    on Jan 13, 2026
  6. moved this from Backlog to In Progress in Terraform Provideron Jan 30, 2026
  7. moved this from In Progress to Done in Terraform Provideron Feb 3, 2026
  8. moved this from 🔥 Backlog to ✅ Done in 🧰 Octokit Activeon Feb 3, 2026
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

    Type: Bug

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions