mrparkers / terraform-provider-keycloak

Terraform provider for Keycloak
https://registry.terraform.io/providers/mrparkers/keycloak/latest/docs
MIT License
598 stars 292 forks source link

`extra_config` is empty on `keycloak_openid_client` data source #884

Closed kherock closed 6 months ago

kherock commented 9 months ago

When resolving a Keycloak client's details using data.keycloak_openid_client, the extra_config object computes to an empty object. It seems like there's some code in place that prevents this value from being computed properly:

https://github.com/mrparkers/terraform-provider-keycloak/blob/bfee4d7cd1591b015f4db84cce12bea36b6e871f/provider/extra_config.go#L47-L50

I presume this is to avoid interfering with existing attributes that are managed outside of Terraform. I think we need to disable this condition when the provider is computing the value for a data source.