Closed mariodescanva closed 4 months ago
Hi @mariodescanva
the headerx-hub-signature-256 = data.local_file.sha256[each.key].content
seem to be the cause of the INVALID_CHAR_IN_HEADER error, do you have the content of this header that might be an invalid character ?
Hi @mariodescanva the header
x-hub-signature-256 = data.local_file.sha256[each.key].content
seem to be the cause of the INVALID_CHAR_IN_HEADER error, do you have the content of this header that might be an invalid character ?
@HantingZhang2 I looked closer into the value that comes from datadog backend and turns out datadog doesn't prevent the provider from storing a new line in that field. It was hard to debug because in the UI, there is no way to tell whether it's a new line or not, unless you open up the browser console and try to edit the html tag.
That being said, should the provider validation be extended to not allow new line characters?
Datadog Terraform Provider Version
v3.37.0
Terraform Version
v1.5.7
What resources or data sources are affected?
datadog_synthetics_test
Terraform Configuration Files
Relevant debug or panic output
N/A - it applies successfully.
Expected Behavior
Synthetic tests should run successfully, without the need to edit the
x-hub-signature-256
header value and save it.Actual Behavior
Synthetic tests are failing with
INVALID_CHAR_IN_HEADER
Steps to Reproduce
./fixtures/event/*.json
- these need to map to thelocal.fixtures
terraform apply
Important Factoids
No response
References
No response