Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: httpsredirecturl missing in the terraform provider for cs vserver #1167

Closed
michalgcsg opened this issue May 23, 2024 · 0 comments · Fixed by #1181
Closed

[Bug]: httpsredirecturl missing in the terraform provider for cs vserver #1167

michalgcsg opened this issue May 23, 2024 · 0 comments · Fixed by #1181
Assignees

Comments

@michalgcsg
Copy link

Terraform Core Version

1.8.3

citrixadc Provider Version

1.39.0

Operating system

Ubuntu 22.04.4 LTS

Affected Resource(s)

https://github.com/citrix/terraform-provider-citrixadc/blob/master/docs/resources/csvserver.md - httpsredirecturl parameter missing

Equivalent NetScaler CLI Command

add cs vserver test ssl 1.2.3.4 443 -redirectfromport 80 -httpsRedirectUrl https://test.mydomain.com/defaultpage

Expected Behavior

We should be able to add the httpsRedirectUrl as described in the manual and nitro reference: https://developer-docs.netscaler.com/en-us/adc-nitro-api/13-1/configuration/cs/csvserver.html

Actual Behavior

by default if httpsredirecturl is not specified it uses vip i.e.:

show cs vserver test
test (5.6.7.8:443) - SSL Type: CONTENT
State: DOWN[Certkey/Certkeybundle not bound]
Last state change was at Thu May 23 10:52:24 2024
Time since last state change: 0 days, 00:00:03.420
Client Idle Timeout: 180 sec
Down state flush: ENABLED
Disable Primary Vserver On Down : DISABLED
Appflow logging: ENABLED
State Update: DISABLED
Default: Content Precedence: RULE
Vserver IP and Port insertion: OFF
L2Conn: OFF Case Sensitivity: ON
Authentication: OFF
401 Based Authentication: OFF
Push: DISABLED Push VServer:
Push Label Rule: none
HTTP Redirect Port: 80
HTTPS Redirect URL: https://5.6.7.8 Dtls : OFF

The problem is that often that hostname is not included in the accepted dns names, so the SSL negotiation fails.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "citrixadc_csvserver" "tf_csvserver1" {
ipv46 = "10.10.10.22"
name = "tf_csvserver"
port = 443
servicetype = "SSL"
redirectfromport = 80
}

Steps to Reproduce

Create the cs vserver with redirectfromport parameter. The attempt to supply the httpsredirecturl gives the error:
│ Error: Unsupported argument

│ on resource.tf line 18, in resource "citrixadc_csvserver" "tf_csvserver1":
│ 18: httpsredirecturl = "https://test.domain.com/invalid_url"

│ An argument named "httpsredirecturl" is not expected here.

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants