The schema.Provider.UserAgent helper function was previously being called at a point in the plugin lifecycle before the TerraformVersion for the provider was set by Terraform Core. This was resulting in the Terraform version information being missing from the User-Agent header. The call to schema.Provider.UserAgent has now been moved into the providerConfigure func as this is called later in the configure lifecycle where the Terraform version is properly set.
The
schema.Provider.UserAgent
helper function was previously being called at a point in the plugin lifecycle before theTerraformVersion
for the provider was set by Terraform Core. This was resulting in the Terraform version information being missing from the User-Agent header. The call toschema.Provider.UserAgent
has now been moved into theproviderConfigure
func as this is called later in the configure lifecycle where the Terraform version is properly set.Header Before
Terraform/ (+https://www.terraform.io) Terraform-Plugin-SDK/2.33.0 terraform-provider-tailscale/dev
Header After
Terraform/1.8.2 (+https://www.terraform.io) Terraform-Plugin-SDK/2.33.0 terraform-provider-tailscale/dev
Fixes https://github.com/tailscale/corp/issues/19630