-
Notifications
You must be signed in to change notification settings - Fork 26
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
SSL Verify - verify_certificate fails to apply to page_load tests #58
Comments
My workaround for anyone else who hits this in the mean time. This will run every apply for every resource. I did not see a way of having a resource provisioned run when only modified, only create/delete. resource "null_resource" "no-ssl-verify" {
for_each = local.tests
depends_on = [thousandeyes_page_load.default]
provisioner "local-exec" {
command = "curl --connect-timeout 30 --max-time 30 --retry 5 --retry-delay 30 --retry-max-time 300 --location --request POST 'https://api.thousandeyes.com/v6/tests/page-load/${thousandeyes_page_load.default[each.key].id}/update.json' --header 'Content-Type: application/json' --header 'Authorization: Bearer ${var.TE_TOKEN}' --data-raw '{\"verifyCertificate\": 0}'"
}
triggers = {
always_run = timestamp()
}
} |
FYI - I just created #59 which is a different issue but I suspect the underlying cause I outlined there probably applies to this issue as well. |
raul-te
added a commit
to raul-te/terraform-provider-thousandeyes
that referenced
this issue
Jun 17, 2022
This contribution removes unnecessary alert_rule fields from the alert_rules field of all test resources, as they were the source of the problem reported in thousandeyes#73. Fixes thousandeyes#73. Additionally, because we're bumping the thousandeyes-go-sdk dependency, this pull request also fixes thousandeyes#58.
raul-te
added a commit
to raul-te/terraform-provider-thousandeyes
that referenced
this issue
Jun 17, 2022
This contribution removes unnecessary alert_rule fields from the alert_rules field of all test resources, as they were the source of the problem reported in thousandeyes#73. Additionally, because we're bumping the thousandeyes-go-sdk dependency, this pull request also fixes thousandeyes#58. Fixes thousandeyes#73.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I've been setting the value of verify_certificate to 0 to disable SSL verification on the test. We are monitoring some back end systems which all use self-signed certificates. I can see that this field is in both this provider and the go-thousandeyes, this provider also see's that the value is different during a plan. However, it does not apply the value correctly.
For the plan the difference is detected
During the apply this comes up during the log
The agent level has a disable SSL verify, but this only applies to page load (broswer bot), however this applies to the http server test. The test then does not have a valid "Availability" despite having a completed page load.
The text was updated successfully, but these errors were encountered: