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
253 stars 204 forks source link

Please support VPN Notifications on Applications (or create a standalone terraform resource) #2049

Open SamuZad opened 1 month ago

SamuZad commented 1 month ago

Community Note

Description

Okta apps have the ability to add VPN Notifications through the UI and the API. This feature is documented: https://help.okta.com/en-us/content/topics/apps/apps_vpn_notification.htm https://developer.okta.com/docs/reference/api/apps/#add-application

It also seems available in the Okta golang package: https://pkg.go.dev/github.com/okta/okta-sdk-golang/okta#ApplicationSettings.Notifications

So, it would probably make sense to bring this feature to terraform

New or Affected Resource(s)

Potential Terraform Configuration

resource "okta_app_bookmark" "example" {
  label = "Example"
  url   = "https://example.com"

  vpn_notification_settings {
     connection = "ANYWHERE"
     message    = "VPN is required"
     help_url   = "linktomydocs.com"
  }
}

Alternatively, it could be its own resource as well (less convenient, but better than nothing):

resource "okta_vpn_notification" "example" {
  app_id = "1234567"

  connection = "ANYWHERE"
  message    = "VPN is required"
  help_url   = "linktomydocs.com"
}

References

duytiennguyen-okta commented 1 month ago

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