Open rd-robert-avram opened 1 year ago
To add to this, the same issue also occurs when importing a client.
In my case, I have a perfectly fine and working client in Keycloak that only has service accounts enabled. Importing this client into Terraform results in valid_redirect_uris
and web_origins
being [""]
, i.e. a list containing an empty string, and any subsequent modification of the resource fails with the error message in the root comment.
Modifying the state manually to replace that with []
or null
doesn't help, as the [""]
is restored during the automatic refresh on the next apply before any changes are made.
To me, this seems like the provider enforces stricter constraints than Keycloak itself, which breaks valid client definitions and requires client recreation.
Version
mrparkers/keycloak 4.0.0
Issue
Once
valid_redirect_uris
are created and managed for a client, deleting them from a resources doesn't yield changes.Steps to reproduce
standard_flow_enabled
and giving itvalid_redirect_uris
. Apply the change.The plan will state the following:
The only change the plan specifies is this:
Applying this will result in the following error:
As far as I can understand, completely removing the
valid_redirect_uris
, once created, is not possible. I was half expecting them to be defaulted to empty lists so I'm a bit concerned as this doesn't seem like intended behaviour.One can of course go work around this by directly settings them to empty lists, but still, like I mentioned, doesn't seem like intended behaviour.
Thank you in advance!