Prerequisites

Provider v5.0.0: Terraform 1.11 or later is required. Review the breaking changes and migration guidance in Upgrading to Provider v5.0.0 before upgrading.

To integrate the Secret Server with Terraform, you need the following:

For Terraform

  • A Windows or Linux computer.

  • Minimum Terraform version 1.11.0 or later installed.

  • An https:// Secret Server URL. Provider v5.0.0 and later reject a plaintext http:// URL to a non-loopback host unless allow_insecure_http = true (or TSS_ALLOW_INSECURE_HTTP=true) is set deliberately.

For Secret Server

  • The latest version of Secret Server (11.7.60 and above).

  • Valid Secret Server user credentials with Admin or non-Admin role.

  • Appropriate view permissions for the secrets you want to manage through the Terraform provider.

  • If using token-based authentication, generate an access token. To generate and retrieve an access token to authenticate with Secret Server, make a call to the oauth2/token endpoint in the Secret Server REST API. For more information about this endpoint, see the Secret Server Authentication Rest API documentation.

  • Network reachability for the provider's backend probe (provider v5.0.0 and later): with username/password authentication the provider sends an unauthenticated GET to <tss_server_url>/api/v1/healthcheck (falling back to <tss_server_url>/health) before sending credentials, and it does not follow redirects. Any reverse proxy in front of Secret Server must let that request through and return a direct 2xx response. Token-based authentication skips the probe.