Closed carloprone closed 1 year ago
hi @rkl3ss,
The reproducer you provided doesn't show the issue, is there some other configuration you may have missed out?
Hi @iwarapter I'm not sure: the issue happens to me every time I declare a client resource without the three parameters, but it might be related to some other config we have in place.
I can't upload the full TF config due to the privacy restriction of my employee. But I will try to reproduce the issue on a local, clean, test environment and let you know.
Hi @rkl3ss as long as that resource is accurate the only thing I can think of is client backing store, all of my tests instances use the xml store, which I guess is not your case?
@iwarapter this is probably a good hint! I tried to reproduce the error myself on a local instance of PF, which is configured with the standard XML-based clients store, and nothing happens.
In our company's environments we use an LDAP store for that, more specifically a PingDirectory cluster.
I'm going to set-up a similar store in my local environment, let's see if this changes the outcome.
hey would it be possible to get the output of that resource apply whilst running terraform with debug (env TF_LOG=DEBUG
) this would be a great help!
@iwarapter sorry for being late, I've been quite busy and I had to set-up a local PD instance to reproduce the error.
Here's the output of the terraform apply command reproducing the error: https://gist.github.com/rkl3ss/74faaff1c596edf306c124315a843ab4
Please let me know if you need any other information.
This has been fixed in v0.2.0
Community Note
Terraform Version
v1.3.9, on linux_amd64
provider version v0.1.1
PingFedeerate v11.1.1
Affected Resource(s)
Terraform Configuration Files
Debug Output
https://gist.github.com/rkl3ss/1621f7e8c70e99feb2243a66ed4696f7
Panic Output
Expected Behavior
Being able to configure a
pingfederate_oauth_client
resource without explicitly declaringpersistent_grant
attributes.Actual Behavior
When a client is created without any value for the
persistent_grant
attributes, or withpersistent_grant_expiration_type = "SERVER_DEFAULT"
(which is the default value), the error above is raised. The only way to get rid of the error is to explicitly declare thepersistent_grant
attributes, as in the last lines of the example aboce. Or, at least, this is the only workaround that I could find.Steps to Reproduce
terraform plan
terraform apply
Important Factoids
n/a
References