terraform-provider-okta icon indicating copy to clipboard operation
terraform-provider-okta copied to clipboard

`okta_event_hook_verification` not re-verifying after an update

Open MScottBlake opened this issue 1 year ago • 2 comments

Community Note

  • 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 version 1.6.4 Okta provider version 4.6.1

Affected Resource(s)

  • okta_event_hook
  • okta_event_hook_verification

Terraform Configuration Files

resource "okta_event_hook" "user_assigned" {
  name   = "user_assigned_to_app"
  status = "ACTIVE"

  events = [
    "application.user_membership.add",
  ]

  channel = {
    type    = "HTTP"
    version = "1.0.0"
    uri     = "https://${local.domain}/v1/user_assigned"
  }
}

resource "okta_event_hook_verification" "user_assigned" {
  event_hook_id = okta_event_hook.user_assigned.id

  depends_on = [
    module.api_gateway,
    module.user_assigned_lambda,
  ]
}

Debug Output

https://gist.github.com/MScottBlake/381794270cf5792ae449ff9582e1c864

Expected Behavior

The Okta Event Hook has changed and now shows as unverified. I would expect the okta_event_hook_verification resource to see this change.

Can this be done in the Admin UI?

Yes

Can this be done in the actual API call?

I don't know

Actual Behavior

The okta_event_hook_verification resource does not see any changes and does not run again.

Steps to Reproduce

  1. terraform apply
  2. Make a change to the okta_event_hook resource.
  3. terraform apply
  4. terraform plan

MScottBlake avatar Nov 28 '23 21:11 MScottBlake

OKTA internal reference https://oktainc.atlassian.net/browse/OKTA-673375

duytiennguyen-okta avatar Dec 05 '23 17:12 duytiennguyen-okta

It's been almost 4 months since this was confirmed as a bug. Is there an update on its progress?

MScottBlake avatar Mar 29 '24 17:03 MScottBlake