Skip to content

3.6.2

Release Date: May 21, 2026


โœจ New Features

Terraform Modules

Enable External and Corporate Auth Server Configurations ๐Ÿ”

Module: saif-api-service / saif-resources (api module)

Commit: c44e3859

Enables full support for external (Okta) and corporate (Entra ID) auth server discovery keys in the saif-api-service module. Previously, all App Configuration service-discovery keys for auth servers were created unconditionally โ€” which caused Terraform errors at plan time when the auth-server resources did not yet exist (because count was driven by resource outputs, which are unknown until apply).

This release introduces explicit opt-in boolean flags in service_discovery_config so that each auth server key is only created when the flag is true โ€” a value known at plan time. The companion Test-WorkspaceMigration.ps1 tooling script has also been enhanced to support full apply testing against TFC workspaces.

Key Features:

  • โœ… enable_external_auth_server โ€” Controls creation of ext:authserver and ext:authserveraudience App Configuration keys (default: false)
  • โœ… enable_corp_auth_server โ€” Controls creation of corp:authserver and corp:authserveraudience App Configuration keys (default: false)
  • โœ… Plan-time-known booleans โ€” Eliminates Terraform plan errors caused by resource-output-dependent count expressions
  • โœ… Test-WorkspaceMigration.ps1 enhancements โ€” Added -Apply and -auto-approve flags for running full applies against TFC workspaces; improved run selection logic to fall back to most-recent run when no applied run exists

Benefits:

  • ๐Ÿš€ Eliminates "The count argument depends on resource attributes that cannot be determined until apply" plan errors
  • ๐Ÿ” Allows APIs to opt in to only the auth server integrations they require
  • ๐Ÿงช Enables local module changes to be tested end-to-end against a real TFC workspace with a single command

Example:

module "saif-appservices" {
  source  = "app.terraform.io/SAIFCorp/saif-api-service/forge"
  version = "~> 3.6.0"

  # ...

  service_discovery_config = {
    enable_external_auth_server = true   # creates ext:authserver + ext:authserveraudience keys
    enable_corp_auth_server     = true   # creates corp:authserver + corp:authserveraudience keys
  }
}

๐Ÿ› Bug Fixes

Terraform Modules

Fix Missing ai_search_docs_index_name Output Gracefully ๐Ÿ”ง

Module: saif-resources (environment module)

Commit: 1db6420d

Fixes a Terraform error when the ai_search_docs_index_name output was referenced but the underlying resource did not exist in the environment. The outputs.tf in the environment module now handles the absence of this value without erroring, preventing plan failures for environments that do not have an AI Search docs index configured.

Changes:

  • โœ… outputs.tf โ€” Output value is now conditional; returns null when the AI Search docs index is not configured instead of causing a reference error

Benefits:

  • ๐Ÿ”ง Prevents plan failures in environments without an AI Search docs index
  • ๐Ÿ”ง Improves module robustness for partial environment configurations

๐Ÿ”„ Breaking Changes

None in this release โœ…


๐Ÿ“‹ Additional Notes

  • Total commits: 2
  • Files changed: 5
  • Contributors: Emmitt Johnson

Support

  • ๐Ÿ“ง Teams Support Channel: Support