iwarapter / terraform-provider-pingfederate

Ping Federate Terraform Provider
https://registry.terraform.io/providers/iwarapter/pingfederate/latest/docs
MIT License
17 stars 7 forks source link

Creation of new OAuth 2.0 client results in Tainting the resource #266

Closed sansub closed 1 year ago

sansub commented 1 year ago

We use PingDirectory (LDAP) to store our OAUTH client metadata (not file). We have started seeing this behaviour since we upgraded from PingFederate 9.4 to 11.1. Any new creation of OAUTH 2 Client through terraform results in the below error during the apply stage.

pingfederate_oauth_client.connected_car_client["e2e"]: Modifications complete after 0s [id=oidc_08_e2e_001] ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to │ pingfederate_oauth_client.ev_mob_app_client["e2e"], provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an │ unexpected new value: .persistent_grant_expiration_time: was │ cty.NumberIntVal(0), but now null. │ │ This is a bug in the provider, which should be reported in the provider's │ own issue tracker.

The respective plan fro the above resource is

pingfederate_oauth_client.ev_mob_app_client["e2e"] will be created

iwarapter commented 1 year ago

hi @sansub, is this a possible duplicate of https://github.com/iwarapter/terraform-provider-pingfederate/issues/263, can you just confirm what your client backing store is?

sansub commented 1 year ago

Thanks for the swift response. My client backing store is PingDirectory (LDAP). I can also confirm that this issue does not occur if the client backing store is XML file

iwarapter commented 1 year ago

This should be fixed in v0.2.0