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

Unable to update redirect validation entries. #278

Closed sansub closed 1 year ago

sansub commented 1 year ago

Community Note

Terraform Version

Terraform v1.3.2 Provider version v0.1.1 PingFederate 11.1.1.0

Affected Resource(s)

Terraform Configuration Files

resource "pingfederate_redirect_validation_settings" "settings" {

  redirect_validation_local_settings = {
    enable_in_error_resource_validation = true
    enable_target_resource_validation_for_slo = true
    enable_target_resource_validation_for_sso = true
    white_list = [
      {
        valid_domain              = "*.domain01.co.uk"
        allow_query_and_fragment  = false
        require_https             = true
        in_error_resource         = true
        target_resource_slo       = true
        target_resource_sso       = false
      },
      {
        valid_domain              = "*.domain02.co.uk"
        allow_query_and_fragment  = false
        require_https             = true
        in_error_resource         = true
        target_resource_slo       = true
        target_resource_sso       = false
      }
    ]
  }
}

Debug Output

Panic Output

pingfederate_redirect_validation_settings.settings will be created

Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_local_settings.white_list[0].valid_path: was null, but now cty.StringVal(""). │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_local_settings.white_list[0].idp_discovery: was null, but now cty.False. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_local_settings.white_list[1].valid_path: was null, but now cty.StringVal(""). │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_local_settings.white_list[1].idp_discovery: was null, but now cty.False. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_local_settings.enable_target_resource_validation_for_idp_discovery: was null, but now cty.False. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker. ╵ ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to pingfederate_redirect_validation_settings.settings, provider │ "provider[\"registry.terraform.io/iwarapter/pingfederate\"]" produced an unexpected new value: │ .redirect_validation_partner_settings: was null, but now │ cty.ObjectVal(map[string]cty.Value{"enable_wreply_validation_slo":cty.False}). │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker.

Expected Behavior

Redirect URL entries to be updated

Actual Behavior

Values applied in PingFederate. But panic was created. Re-running the terraform job results in the same error message.

Steps to Reproduce

  1. terraform apply

Important Factoids

References