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

Prevent SSL related fields from being sent empty to the Fastly API. #622

Merged
merged 2 commits into from
Nov 28, 2022

Conversation

Integralist
Copy link
Collaborator

NOTE: While updating all the SSL fields for a backend to not be sent empty to the API (unless the user explicitly set them to be empty) I noticed that setting use_ssl would cause an API error...

Error: invalid configuration for Fastly Service (<REDACTED>): 
Mandatory SSL cert checks require specifying cert hostname

To fix this you have to also specify ssl_cert_hostname, so I've updated the tests to reflect this.

@@ -171,6 +171,10 @@ func TestAccFastlyServiceVCLBackend_basic(t *testing.T) {
backendName := fmt.Sprintf("backend-tf-%s", acctest.RandString(10))
backendAddress := "httpbin.org"

// The following backends are what we expect to exist after all our Terraform
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌🏼

@Integralist Integralist merged commit 44b0514 into main Nov 28, 2022
@Integralist Integralist deleted the integralist/tls-bug branch November 28, 2022 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants