You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Terraform Version
Terraform v1.7.5
on darwin_arm64
+ provider registry.terraform.io/okta/okta v4.5.0
Your version of Terraform is out of date! The latest version
is 1.8.0. You can update by downloading from https://www.terraform.io/downloads.html
Affected Resource(s)
okta_app_group_assignments
okta_app_user_schema_property
Terraform Configuration Files
Click me
resource"okta_app_saml""example" {
label="example"sso_url="https://example.com"recipient="https://example.com"destination="https://example.com"audience="https://example.com/audience"subject_name_id_template="$${user.userName}"subject_name_id_format="urn:oasis:names:tc:SAML:1.1:nameid-format:emailAddress"response_signed=truesignature_algorithm="RSA_SHA256"digest_algorithm="SHA256"honor_force_authn=falseauthn_context_class_ref="urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport"
}
# resource "okta_app_user_schema_property" "customPropertyName_A" {# app_id = okta_app_saml.example.id# index = "customPropertyName_A"# title = "customPropertyName_A"# type = "string"# description = "My custom property name"# master = "OKTA"# }# resource "okta_app_user_schema_property" "customPropertyName_B" {# app_id = okta_app_saml.example.id# index = "customPropertyName_B"# title = "customPropertyName_B"# type = "string"# description = "My custom property name"# master = "OKTA"# }resource"okta_group""test_group_1" {name="test_group_1"}
resource"okta_group""test_group_2" {name="test_group_2"}
resource"okta_app_group_assignments""example" {
app_id=okta_app_saml.example.idgroup {
id=okta_group.test_group_1.idpriority=0profile=jsonencode({
customPropertyName_A ="A"
customPropertyName_B ="B"
})
}
group {
id=okta_group.test_group_2.idpriority=1profile=jsonencode({
customPropertyName_A ="C"
customPropertyName_B ="D"
})
}
}
Debug Output
N/A - error is always an API Layer error
Panic Output
N/A - error is always an API Layer error
Expected Behavior
If the okta_app_user_schema_property are then commented out and terraform apply is run
We would expect the upstream APU to strip the relevant values from okta_app_group_assignments.example.groups[*].profile
We would expect some drift to be present in the next terraform plan
We would expect that If the HCL is not modified before the next terraform apply that the apply will fail due to the attributes no-loger existing on the okta app
If the engineer were to capture the drift from the next terraform plan
we would expect the next terraform apply to succeed as normal
Can this be done in the Admin UI?
I don't know
Can this be done in the actual API call?
I don't know
Actual Behavior
After successfully deploying the above in two stages ( okta_app_group_assignments must go out in the 2nd apply due to race conditions)
If the okta_app_user_schema_property are then commented out and terraform apply is run
some attributes (but not all) are removed from the group assignments to the application
depending on what is left in the group assignment, the next terraform plan may fail if the hcl is unmodified, or if the engineer attempts to match the "drift" output from the terraform plan
Steps to Reproduce
Deploy the resources for okta_app_saml, okta_app_user_schema_property, and okta_group
Deploy the okta_app_group_assignments resource
Comment out the okta_app_user_schema_property resources
Terraform Apply
Note that the group assignment `profiles have not purged all of the attributes that have been removed as expected
Important Factoids
Okta Support Case 02047587
References
Okta Support Case 02047587
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version
Affected Resource(s)
okta_app_group_assignments
okta_app_user_schema_property
Terraform Configuration Files
Click me
Debug Output
N/A - error is always an API Layer error
Panic Output
N/A - error is always an API Layer error
Expected Behavior
If the
okta_app_user_schema_property
are then commented out andterraform apply
is runWe would expect the upstream APU to strip the relevant values from
okta_app_group_assignments.example.groups[*].profile
We would expect some drift to be present in the next
terraform plan
We would expect that If the HCL is not modified before the next
terraform apply
that the apply will fail due to the attributes no-loger existing on the okta appIf the engineer were to capture the drift from the next
terraform plan
we would expect the next
terraform apply
to succeed as normalCan this be done in the Admin UI?
I don't know
Can this be done in the actual API call?
I don't know
Actual Behavior
After successfully deploying the above in two stages (
okta_app_group_assignments
must go out in the 2nd apply due to race conditions)If the
okta_app_user_schema_property
are then commented out andterraform apply
is runsome attributes (but not all) are removed from the group assignments to the application
depending on what is left in the group assignment, the next
terraform plan
may fail if the hcl is unmodified, or if the engineer attempts to match the "drift" output from theterraform plan
Steps to Reproduce
okta_app_saml
,okta_app_user_schema_property
, andokta_group
okta_app_group_assignments
resourceokta_app_user_schema_property
resourcesTerraform Apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: