Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(210)

Issue 2375693002: LogDnsClient now rejects responses unless they contain exactly one TXT RDATA string (Closed)

Created:
4 years, 2 months ago by Rob Percival
Modified:
4 years, 2 months ago
CC:
chromium-reviews, rsleevi+watch_chromium.org, certificate-transparency-chrome_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

LogDnsClient now rejects responses unless they contain exactly one TXT RDATA string Previously, multiple TXT RDATA strings would be concatenated if present, allowing a larger number of audit proof nodes to be delivered. However, the CT-over-DNS draft RFC (https://github.com/google/certificate-transparency-rfcs/blob/master/dns/draft-ct-over-dns.md) explicitly states that the response should contain only one string, and trying to handle other cases only causes confusion. BUG=624894 Committed: https://crrev.com/9dc75a8c1abe75bf6dd4674090f7b7591d1ea0f9 Cr-Commit-Position: refs/heads/master@{#423140}

Patch Set 1 #

Patch Set 2 : Tests #

Total comments: 2

Patch Set 3 : Adds missing #include <numeric> #

Total comments: 6

Patch Set 4 : Use checked_cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -36 lines) Patch
M components/certificate_transparency/log_dns_client.cc View 1 2 chunks +17 lines, -1 line 0 comments Download
M components/certificate_transparency/log_dns_client_unittest.cc View 1 2 4 chunks +73 lines, -11 lines 0 comments Download
M components/certificate_transparency/mock_log_dns_traffic.h View 1 2 chunks +6 lines, -6 lines 0 comments Download
M components/certificate_transparency/mock_log_dns_traffic.cc View 1 2 3 3 chunks +19 lines, -18 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 35 (20 generated)
Rob Percival
PTAL.
4 years, 2 months ago (2016-09-27 17:45:32 UTC) #3
Eran Messeri
On 2016/09/27 17:45:32, Rob Percival wrote: > PTAL. LGTM, handing over to Ryan for owners ...
4 years, 2 months ago (2016-09-27 19:44:16 UTC) #7
Eran Messeri
Is it worth having a test for this case?
4 years, 2 months ago (2016-09-27 19:44:40 UTC) #8
Rob Percival
On 2016/09/27 19:44:40, Eran Messeri wrote: > Is it worth having a test for this ...
4 years, 2 months ago (2016-09-28 13:08:14 UTC) #9
Rob Percival
On 2016/09/28 13:08:14, Rob Percival wrote: > On 2016/09/27 19:44:40, Eran Messeri wrote: > > ...
4 years, 2 months ago (2016-09-28 16:20:38 UTC) #10
Eran Messeri
still lgtm % compilation fix (see comment) https://codereview.chromium.org/2375693002/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://codereview.chromium.org/2375693002/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc#newcode464 components/certificate_transparency/log_dns_client_unittest.cc:464: std::string first_chunk_of_proof ...
4 years, 2 months ago (2016-09-30 10:02:40 UTC) #15
Rob Percival
https://codereview.chromium.org/2375693002/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc File components/certificate_transparency/log_dns_client_unittest.cc (right): https://codereview.chromium.org/2375693002/diff/20001/components/certificate_transparency/log_dns_client_unittest.cc#newcode464 components/certificate_transparency/log_dns_client_unittest.cc:464: std::string first_chunk_of_proof = std::accumulate( On 2016/09/30 10:02:40, Eran Messeri ...
4 years, 2 months ago (2016-09-30 12:04:50 UTC) #17
Ryan Sleevi
lgtm
4 years, 2 months ago (2016-10-03 23:18:15 UTC) #21
Ryan Sleevi
https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode203 components/certificate_transparency/mock_log_dns_traffic.cc:203: CHECK_LE(str.size(), 0xFFul); nit: The 0xFFul is weird to see ...
4 years, 2 months ago (2016-10-03 23:20:12 UTC) #22
Rob Percival
https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode203 components/certificate_transparency/mock_log_dns_traffic.cc:203: CHECK_LE(str.size(), 0xFFul); On 2016/10/03 23:20:12, Ryan Sleevi (slow) wrote: ...
4 years, 2 months ago (2016-10-04 11:46:47 UTC) #23
Rob Percival
https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode204 components/certificate_transparency/mock_log_dns_traffic.cc:204: answer.insert(answer.end(), static_cast<char>(str.size())); On 2016/10/04 11:46:47, Rob Percival wrote: > ...
4 years, 2 months ago (2016-10-04 15:11:05 UTC) #24
Rob Percival
https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc File components/certificate_transparency/mock_log_dns_traffic.cc (right): https://codereview.chromium.org/2375693002/diff/40001/components/certificate_transparency/mock_log_dns_traffic.cc#newcode203 components/certificate_transparency/mock_log_dns_traffic.cc:203: CHECK_LE(str.size(), 0xFFul); On 2016/10/04 11:46:47, Rob Percival wrote: > ...
4 years, 2 months ago (2016-10-05 09:27:06 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375693002/60001
4 years, 2 months ago (2016-10-05 13:26:08 UTC) #32
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-05 13:30:12 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 13:31:57 UTC) #35
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/9dc75a8c1abe75bf6dd4674090f7b7591d1ea0f9
Cr-Commit-Position: refs/heads/master@{#423140}

Powered by Google App Engine
This is Rietveld 408576698