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

`okta_app_*` - implement boolean toggle to disable /credentials/keys #1937

Open exitcode0 opened 5 months ago

exitcode0 commented 5 months ago

Community Note

Description

When performing a Terraform Plan okta_app_* resources call this code This calls /api/v1/apps/${applicationId}/credentials/keys which lacks a rate limit by default

These API calls are not needed for my use-case and cause the okta_app_* resource to have an outsized impact on the most restrictive Okta API rate limit

# /api/v1/ratelimit/tracked-buckets
{
  "bucketUri": "/api/v1/apps",
  "operation": "ALL",
  "matchType": "LONGEST_MATCH",
}

Long term this should likely be its own distinct resource like okta_idp_saml_key In the interim, i'd love a boolean toggle to disable fetching this data

New or Affected Resource(s)

Potential Terraform Configuration

resource "okta_app_saml" "example" {
  name = "example"
  # omit_credentials = True
  # skip_credentials = True
}

References

duytiennguyen-okta commented 4 months ago

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