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

[Bug]: Some resources may be incorrectly ignoring HTTP 403 responses #788

Closed
ctreatma opened this issue Sep 27, 2024 · 0 comments
Closed
Labels
enhancement New feature or request

Comments

@ctreatma
Copy link
Contributor

Description

The Metal API can return an HTTP 403 for a read request on a Metal device that fails during provisioning or deprovisioning. Due to this API behavior, the metal_device resource in some cases treats a 403 response as a deleted device:

As far as I know, Metal devices are the only resources that exhibit this behavior, and that other resources should treat 403 responses as errors rather than deletions. However, numerous other resources are also configured to ignore 403 errors during the resource lifecycle and/or when sweeping test resources:

Searching this repo for "Forbidden" gives a better view of how broadly we ignore 403s.

Is this intentional behavior? Is it valid? I don't see any documentation that mentions these special error cases.

New or Affected Terraform Resources

equinix_metal_vlan
equinix_metal_virtual_circuit
...and more

Potential Terraform Configuration

No response

@ctreatma ctreatma added the enhancement New feature or request label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant