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

ldap_user_federation bind_credentials not changed

Open philipp1992 opened this issue 1 year ago • 1 comments

HI,

we use https://github.com/mrparkers/terraform-provider-keycloak/blob/master/provider/resource_keycloak_ldap_user_federation.go and provide bind_credential from data.password" (from a hashicorp vault value)

The issue is, that terraform never tries to store the password in keycloak. I suspect this has something to do with the DiffSuppressFunc.

"bind_credential": { Type: schema.TypeString, Optional: true, Sensitive: true, DiffSuppressFunc: func(_, remoteBindCredential, _ string, _ schema.ResourceData) bool { return remoteBindCredential == "*********" }, Description: "Password of LDAP admin.", },

philipp1992 avatar Jul 27 '23 07:07 philipp1992

I think the problem persists with the keycloak_realm auth field as well, the permissions are not getting updated there either. (Perhaps because of the asterisk, which comes from the json response)

acslev avatar Aug 02 '23 14:08 acslev