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
okta_app_signon_policy is forced replaced due to catch_all in v4.13.0 and panics while recreating policy leaving tenant without valid policy rules
#2182
Closed
asiyani opened this issue
Jan 20, 2025
· 3 comments
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
When upgrading provider policies created by old version should not be recreated.
Also there should not be a panic while deleting policy.
Can this be done in the Admin UI? N/A
Can this be done in the actual API call? N/A
Actual Behavior
After updating otka provider version, all okta_app_signon_policy are
force recreated causing all okta_app_signon_policy_rule re-created as well.
adding catch_all with true or false has no effect on force replacement.
When applied it actually panics while creating policy hence leaving policy with
default rule potentially locking out admins/users
Steps to Reproduce
create okta_app_signon_policy and okta_app_signon_policy_rule resources
using old provider version 4.12.0
update provider to v4.13.0
rm -rf .terraform.lock.hcl .terraform && terraform init && terraform plan
plan output will show force replacement "Plan: 2 to add, 0 to change, 2 to destroy."
run terraform apply which will result in panic
Important Factoids
we are using API Services APP (scoped OAuth 2.0 access tokens) to run terraform applier with following ENVs.
The text was updated successfully, but these errors were encountered:
asiyani
changed the title
okta_app_signon_policy is forced replaced due to catch_all in v4.13.0 and panics while recreating policy leaving tenant without any auth policy
okta_app_signon_policy is forced replaced due to catch_all in v4.13.0 and panics while recreating policy leaving tenant without valid policy rules
Jan 20, 2025
Community Note
Terraform Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
https://gist.github.com/asiyani/1c0a9fb8f17ef36ab29966233b3ff53c
Expected Behavior
When upgrading provider policies created by old version should not be
recreated
.Also there should not be a panic while deleting policy.
Can this be done in the Admin UI? N/A
Can this be done in the actual API call? N/A
Actual Behavior
After updating otka provider version, all
okta_app_signon_policy
areforce recreated causing all okta_app_signon_policy_rule re-created as well.
adding
catch_all
with true or false has no effect onforce replacement
.When applied it actually panics while creating policy hence leaving policy with
default rule potentially locking out admins/users
Steps to Reproduce
okta_app_signon_policy
andokta_app_signon_policy_rule
resourcesusing old provider version
4.12.0
v4.13.0
rm -rf .terraform.lock.hcl .terraform
&&terraform init
&&terraform plan
terraform apply
which will result in panicImportant Factoids
we are using API Services APP (scoped OAuth 2.0 access tokens) to run terraform applier with following ENVs.
References
The text was updated successfully, but these errors were encountered: