Skip to content

Commit

Permalink
look at status lines instead of bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
ohnorobo committed May 10, 2023
1 parent 354cd60 commit 623b7ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions table/queries/derived_satellite_scans.sql
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,11 @@ CREATE TEMP FUNCTION OutcomeString(domain_name STRING,
WHEN (SELECT LOGICAL_OR(answer.matches_control.asn)
FROM UNNEST(answers) answer)
THEN "✅answer:matches_asn"
WHEN (SELECT LOGICAL_OR(NOT a.https_response_body IS NULL)
# TODO: delete, this case is covered by all the cert cases above
WHEN (SELECT LOGICAL_OR(NOT (a.https_response_status IS NULL))
FROM UNNEST(answers) a)
THEN CONCAT("❗️answer:unvalidated_https_connection:", AnswersSignature(answers))
WHEN (SELECT LOGICAL_OR(NOT a.http_response_body IS NULL)
WHEN (SELECT LOGICAL_OR(NOT (a.http_response_status IS NULL))
FROM UNNEST(answers) a)
THEN CONCAT("❗️answer:unvalidated_http_connection:", AnswersSignature(answers))
# We only reach this point if we weren't able to connect to the answer IP over either HTTPS or HTTP
Expand Down

0 comments on commit 623b7ee

Please sign in to comment.