okta / terraform-provider-okta

A Terraform provider to manage Okta resources, enabling infrastructure-as-code provisioning and management of users, groups, applications, and other Okta objects.
https://registry.terraform.io/providers/okta/okta
Mozilla Public License 2.0
248 stars 201 forks source link

Support Dynamic OS Version Compliance for Device Assurance Policies #1917

Open lucascantor opened 4 months ago

lucascantor commented 4 months ago

Community Note

Description

Feature request to support the new Dynamic OS version compliance feature for Device Assurance

Here is an example Device Assurance policy, with settings NOT configurable via Terraform:

Screenshot 2024-02-28 at 10 52 42 AM

New or Affected Resource(s)

Potential Terraform Configuration

resource "okta_policy_device_assurance_android" "example" {
  name                        = "Example"
  os_version_dynamic_minimum  = "LATEST_SUPPORTED"
  os_patches_required         = true
}

resource "okta_policy_device_assurance_ios" "example" {
  name                        = "Example"
  os_version_dynamic_minimum  = "SECOND_LATEST_SUPPORTED"
  os_patches_required         = true
}

resource "okta_policy_device_assurance_macos" "example" {
  name                 = "Example"
  os_version_dynamic   = "ANY_SUPPORTED"
  os_patches_required  = true
}

resource "okta_policy_device_assurance_windows" "example" {
  name                   = "Example"
  os_version_dynamic_11  = "ANY_SUPPORTED"
  os_patches_required_11 = true
  os_version_dynamic_10  = "NOT_ALLOWED"
}

References

duytiennguyen-okta commented 3 months ago

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