terraform-provider-authentik icon indicating copy to clipboard operation
terraform-provider-authentik copied to clipboard

Root object was present, but now absent

Open MaBauMeBad opened this issue 6 months ago • 0 comments

When creating a new OIDC Provider it failes with the following message:

Error: Provider produced inconsistent result after apply
│ 
│ When applying changes to authentik_provider_oauth2.proxmox-oidc-provider, provider "provider[\"registry.terraform.io/goauthentik/authentik\"]" produced an unexpected new value: Root object was present, but now absent.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Provider version v2024.6.1 (same issue with 6.0). Tested with tofu and terraform tofu version v1.7.3 terraform version 1.9.2 Authentik Version: 2024.6.1

resource "authentik_provider_oauth2" "proxmox-oidc-provider" {
  name                       = "Proxmox-OIDC"
  authorization_flow         = data.authentik_flow.default-authorization-implicit-flow.id
  authentication_flow        = authentik_flow.login-flow.uuid
  client_id                  = "xxxxxxxxxx"
  client_type                = "confidential"
  redirect_uris              = ["https://xxx.xxx.xxx.xxx:8006"]
  sub_mode                   = "user_email"
  include_claims_in_id_token = "true"
  signing_key                = authentik_certificate_key_pair.authentik-sign-cert.id
}

Funny thing is, it stared with creating a OIDC Provider, but seems now effecting all ressource types

MaBauMeBad avatar Jul 27 '24 18:07 MaBauMeBad