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

V5.0.0 cloudflare_zero_trust_device_posture_rule does not allow serial_number #5025

Open
3 tasks done
ajcollett opened this issue Feb 3, 2025 · 0 comments
Open
3 tasks done
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.

Comments

@ajcollett
Copy link

Confirmation

  • This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
  • I have searched the issue tracker and my issue isn't already found.
  • I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version

OpenTofu v1.9.0

Cloudflare provider: V5.0.0

Affected resource(s)

cloudflare_zero_trust_device_posture_rule

Terraform configuration files

resource "cloudflare_zero_trust_device_posture_rule" "laptop_serial_numbers" {
  account_id  = local.cloudflare_account_id
  type        = "serial_number"
  name        = "Laptop Serial Numbers"
  schedule    = "5m"
  description = null
  expiration  = null

  input = {
    id = "<snip>"
  }
}

Link to debug output

https://gist.github.com/ajcollett/4c9d45697f071ea745bbc37491efcd4c

Panic output

No response

Expected output

Allow to use this posture type to be used.

Actual output

Failed to allow it:

Acquiring state lock. This may take a few moments...
╷
│ Error: Invalid Attribute Value Match
│ 
│   with cloudflare_zero_trust_device_posture_rule.laptop_serial_numbers,
│   on device_posture_rules.tf line 81, in resource "cloudflare_zero_trust_device_posture_rule" "laptop_serial_numbers":
│   81:   type        = "serial_number"
│ 
│ Attribute type value must be one of: ["file" "application" "tanium" "gateway" "warp" "disk_encryption" "sentinelone" "carbonblack" "firewall" "os_version" "domain_joined" "client_certificate" "client_certificate_v2" "unique_client_id" "kolide" "tanium_s2s""crowdstrike_s2s" "intune" "workspace_one" "sentinelone_s2s" "custom_s2s"], got: "serial_number"

Steps to reproduce

  1. Create a resource cloudflare_zero_trust_device_posture_rule with type as "serial_number"
  2. Run "tofu plan"
  3. See the error output.
  4. Notice that "serial_number" should be allowed, as it was in versions v4.X, but is not in the list of allowed types.

Additional factoids

I know I'm using tofu, but I can't see that Terraform vs Tofu has any bearing on this bug.

References

No response

@ajcollett ajcollett added kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one.
Projects
None yet
Development

No branches or pull requests

1 participant