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.10.4
on darwin_arm64
+ provider registry.terraform.io/okta/okta v4.14.0
okta_resource_set can remove entries from a resource set if they are no longer present in my configuration
Actual Behavior
There seems to be at least two bugs here:
The okta_resource_set resource seems to be unable to remove entries that use a filter query parameter
e.g /api/v1/apps?filter=name+eq+\"example\""
okta_resouce_set can contain inactive applications (This is expected), but the upstream Okta API for resource sets seems to mutate their representation when storing these in the resource set
e.g /api/v1/apps/1245" is mutated to /api/v1/apps?filter=name+eq+\"inactive-app-name\""
One potential reason for this mutation could be because the /api/v1/apps api only returns active applications by default
this justification doesn't make a lot of sense to me for a few reasons:
as the /api/v1/apps/{appId} does return inactive applications, so this could've been used instead
The /api/v1/apps can also return inactive applications if the caller uses the includeNonDeleted query parameter
The text was updated successfully, but these errors were encountered:
Community Note
Terraform Version
Affected Resource(s)
okta_resource_set
Terraform Configuration Files
Expected Behavior
okta_resource_set
can remove entries from a resource set if they are no longer present in my configurationActual Behavior
There seems to be at least two bugs here:
okta_resource_set
resource seems to be unable to remove entries that use afilter
query parameter/api/v1/apps?filter=name+eq+\"example\""
okta_resouce_set
can contain inactive applications (This is expected), but the upstream Okta API for resource sets seems to mutate their representation when storing these in the resource sete.g
/api/v1/apps/1245"
is mutated to/api/v1/apps?filter=name+eq+\"inactive-app-name\""
/api/v1/apps
api only returns active applications by default/api/v1/apps/{appId}
does return inactive applications, so this could've been used instead/api/v1/apps
can also return inactive applications if the caller uses theincludeNonDeleted
query parameterThe text was updated successfully, but these errors were encountered: