Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User Caching Issue Completely Blocks Ability to terraform apply #434

Open
2 tasks done
ren3gadem4rm0t opened this issue Jun 11, 2024 · 0 comments
Open
2 tasks done

Comments

@ren3gadem4rm0t
Copy link

ren3gadem4rm0t commented Jun 11, 2024

Confirmation

  • My issue isn't already found on the issue tracker.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Imperva provider version

Terraform v1.5.7
on darwin_arm64

  • provider registry.terraform.io/imperva/incapsula v3.25.2

Affected resource(s)

incapsula_account_user

Terraform configuration files

Omitted

Debug output

n/a

Panic output

n/a

Expected output

Resources created/updated.

Actual output

Error: Error status code 409 from Incapsula service when adding User exampleuser@example.org: {"errors": [{"status":409, "id": "omitted", "source" : {"pointer":"/v3/idm-users"}, "title" : "Resource already exist [USER]", "detail": "User [email protected] already exist"}]}

with module. user_accounts. incapsula_account_user.parent._account_user["[email protected]_0000000"],
on modules/user_accounts/main.tf line 1, in resource "incapsula_account_user" "parent_account_user":
1: resource "incapsula_account_user" "parent_account_user" {

Releasing state lock. This may take a few moments...

then, removing the user from the state file via terraform state rm ...:

╷
│ Error: Error status code 404 from Incapsula service when getting User exampleuser@example.org: {"errors":[{"status":404,"id":"omitted","source":{"pointer":"/v3/idm-users/[email protected]"},"title":"The requested item was not found","detail":"User with email [email protected] does not exist"}]}
│ 
│ 
╵

Steps to reproduce

  1. terraform plan
  2. terraform apply
  3. terraform state rm [resource here]
  4. terraform apply

Additional factoids

This issue exists outside of the terraform provider, within the Imperva API. However, while present it completely blocks the ability to manage any aspects of Imperva via terraform.

We've been completely blocked for 6 days.

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant