Skip to content

Standardized tenant and test token whitelist

Starting with 3.8.0, okta-oidc-client and okta-app-auth stop taking the Okta tenant and the non-prod test token group whitelist from the caller. The modules set both themselves. Part of platform-engineering#15, which moves pipeline inputs from HCP Terraform variables to Pulumi ESC. With this change, callers don't need to supply tenant or test_token_generator_group_whitelist at all.

What the modules do now

Before After
okta-oidc-client tenant Required. Drove the tenant-origin claim, the TenantOrigin output and whether external claims were created. Optional, deprecated, ignored. The module always uses ext.
okta-oidc-client test_token_generator_group_whitelist Optional, default []. The groups allowed on the non-prod test token generator rule and CLI token client rule. An empty set skipped both rules. Optional, deprecated, ignored. Non-prod always whitelists Test Token Generator TestUser.
okta-app-auth tenant Optional, default ext, validation rejected anything else. Not used by the module. Optional, deprecated, ignored. Any value is accepted.
is_production Required. Production gets no test token generator or CLI token client. Unchanged.

For callers that already passed tenant = "ext", the tenant-origin claim value ('ext'), external claim gating for external Experience APIs and the TenantOrigin output (ext) stay the same. For every caller, the rule grant types and scopes and every resource address stay the same. No moved blocks are needed.

Behavior change

Non-prod auth servers now always get the test token generator rule and the CLI token client rule, whitelisted to Test Token Generator TestUser. That changes the plan for two kinds of callers:

  • Callers that passed test_token_generator_group_whitelist = [] or omitted it. Both rules were skipped before. Now both get created. The policies already existed, so the plan adds two okta_auth_server_policy_rule resources and changes nothing else.
  • Callers that passed a different group list. The rules now whitelist Test Token Generator TestUser instead of those groups. The plan updates group_whitelist in place on both rules.

Callers that already passed exactly ["Test Token Generator TestUser"] see no change. The whitelist change doesn't touch production plans.

The group has to exist in the Okta org, because the module looks it up by name. It's the same group okta-external-test-users adds test users to.

The tenant change also affects okta-oidc-client callers that passed a tenant other than ext, in every environment:

  • The tenant-origin claim. The plan updates the claim value in place to 'ext'.
  • The TenantOrigin output. It now returns ext, so anything that reads it sees ext.
  • External Experience APIs. When is_experience_api and external_app are both true, the module now creates the external claims. The plan adds the customer_id and title okta_auth_server_claim resources.

okta-app-auth already rejected any tenant other than ext, so its callers see no tenant change.

Migrating

You don't have to change anything to upgrade. Passing the deprecated inputs still works, and their values don't matter.

  1. Upgrade the module version.
  2. Run a non-prod plan. Check for the rule changes described above, if you were one of those callers. If you passed a tenant other than ext, run a production plan too and check for the tenant changes.
  3. Remove tenant and test_token_generator_group_whitelist from the module call, and stop sourcing them from HCP Terraform variables or Pulumi ESC.

Both inputs will be removed in the next major version. Once they're gone, passing them fails with an unsupported argument error, so remove them before then.