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 twookta_auth_server_policy_ruleresources and changes nothing else. - Callers that passed a different group list. The rules now whitelist
Test Token Generator TestUserinstead of those groups. The plan updatesgroup_whitelistin 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-originclaim. The plan updates the claim value in place to'ext'. - The
TenantOriginoutput. It now returnsext, so anything that reads it seesext. - External Experience APIs. When
is_experience_apiandexternal_appare bothtrue, the module now creates the external claims. The plan adds thecustomer_idandtitleokta_auth_server_claimresources.
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.
- Upgrade the module version.
- Run a non-prod plan. Check for the rule changes described above, if you were one of those callers. If you passed a
tenantother thanext, run a production plan too and check for the tenant changes. - Remove
tenantandtest_token_generator_group_whitelistfrom 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.