Closed dimi4ik closed 1 month ago
Hi @dimi4ik,
It seems that the example is incorrect. secure_ticket_authority_urls
needs to be a list of objects, the schema for which can be found here - https://registry.terraform.io/providers/citrix/citrix/latest/docs/resources/stf_roaming_gateway#nested-schema-for-secure_ticket_authority_urls
Please let us know if you are able to get it working with this change.
We'll work on fixing the documentation example and also look into the issue you're facing with import.
Thanks for trying out and reporting this issue!
Aneesh
Hi @aneeshk-citrix
Thank you for the quick response π
When I enter secure_ticket_authority_urls as a list of objects in the Terraform file, I get the following error:
β Error: Invalid Attribute Value Length β β with citrix_stf_roaming_gateway.example-stf-roaming-gateway, β on main.tf line 166, in resource "citrix_stf_roaming_gateway" "example-stf-roaming-gateway": β 166: resource "citrix_stf_roaming_gateway" "example-stf-roaming-gateway" { β β Attribute secure_ticket_authority_urls[0].sta_validation_secret string length must be at least 1, got: 0
resource "citrix_stf_roaming_gateway" "example-stf-roaming-gateway" {
site_id = citrix_stf_deployment.stf_deployment_0.site_id
name = "Example Roaming Gateway Name"
logon_type = "Domain"
smart_card_fallback_logon_type = "None"
gateway_url = "https://example.gateway.com/"
#callback_url = "https://exampleremote.callback.com/"
version = "Version10_0_69_4"
subnet_ip_address = "10.0.0.1"
stas_bypass_duration = "0.1:0:0"
#gslb_url = "https://example.gslb.url"
session_reliability = false
request_ticket_two_stas = false
stas_use_load_balancing = false
is_cloud_gateway = false
secure_ticket_authority_urls = [
{
authority_id = null
sta_url = "https://ctx-ddc.cloud.com/scripts/ctxsta.dll"
sta_validation_enabled = false
sta_validation_secret = ""
}
]
}
Hi @dimi4ik,
Looks like sta_validation_secret
can be optional but if we have it set to Required. We're working on a fix for this and should have all of these issue fixed in the next release.
Thanks, Aneesh
Thanks for taking the time to fill out this bug report! Before submitting this issue please check the open bugs to ensure the bug has not already been reported. If it has been reported give it a π
If this bug is present when using the Citrix service UI or REST APIs then it is not a bug in the provider but rather a bug in the underlying service or the environment. In some cases there can be an enhancement in the provider to handle the error better. Please open a feature request instead of a bug in this case. For more information see CONTRIBUTING.md#provider-issue-vs-product-issue-vs-configuration-issue.
Describe the bug
Summary of the issue
When I deploy a new StoreFront instance with Terraform and use the examples from the Git documentation "https://registry.terraform.io/providers/citrix/citrix/latest/docs/resources/stf_roaming_gateway", I receive an error:
I created the resource "citrix_stf_roaming_gateway" via the GUI and imported it using the import command. When I transfer the configuration from the state to the Terraform file, I receive an error.
Where do I get the value for sta_validation_secret? Could you please provide a complete StoreFront deployment Terraform script in Git?
Terraform command (import, apply, etc): apply
Resource impacted: citrix_stf_roaming_gateway
Versions
Use the
terraform -v
command to find the Terraform and Citrix Provider versions. Terraform: citrix/citrix provider: Operation system:terraform -v Terraform v1.9.3 on windows_amd64
For on-premises customers fill out any that apply with the CU or LTSR version (eg 2402). CVAD (DDC, VDA, etc): 2311 Storefront: 2311
Terraform configuration files
Paste or attach any relevant
.tf
files with secrets and identifying information removed.Terraform console output
If the output references a file in the temp directory include it as well.
Terraform log file
If the issue is reproducible enable Terraform debug logging using one of the commands below. Then reproduce the issue and include the resulting log file. More information about Terraform logging is available here.
cmd:
Powershell:
bash: