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

Issue 2902603002: Add enterprise policy for network time service (Closed)

Created:
3 years, 7 months ago by estark
Modified:
3 years, 6 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add enterprise policy for network time service The NetworkTimeQueriesEnabled policy, if set to false, will disable NetworkTimeTracker's queries to Google to fetch an accurate timestamp. NetworkTimeTracker uses these to decide when to prompt the user to fix their clock if they encounter a certificate date error. BUG=725232 Review-Url: https://codereview.chromium.org/2902603002 Cr-Commit-Position: refs/heads/master@{#474137} Committed: https://chromium.googlesource.com/chromium/src/+/80618c346d3f78823fe6061349319a98a867b6cf

Patch Set 1 #

Patch Set 2 : tweak policy template #

Patch Set 3 : fix policy test case #

Total comments: 2

Patch Set 4 : shorten caption #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -2 lines) Patch
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/policy/policy_browsertest.cc View 3 chunks +66 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M components/network_time/network_time_pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/network_time/network_time_pref_names.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M components/network_time/network_time_tracker.cc View 3 chunks +11 lines, -1 line 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 2 chunks +16 lines, -1 line 4 comments Download
M tools/metrics/histograms/enums.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (17 generated)
estark
Can the following OWNERS please review: - zea: components/network_time - jwd: histograms.xml - pastarmovj: everything ...
3 years, 7 months ago (2017-05-22 21:25:15 UTC) #6
pastarmovj
lgtm with one nit. https://codereview.chromium.org/2902603002/diff/40001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2902603002/diff/40001/components/policy/resources/policy_templates.json#newcode9562 components/policy/resources/policy_templates.json:9562: 'caption': '''Enables queries to a ...
3 years, 7 months ago (2017-05-23 07:20:41 UTC) #13
Nicolas Zea
lgtm
3 years, 7 months ago (2017-05-23 17:03:10 UTC) #14
jwd
LGTM And fyi, since it's just enums.xml, you don't need metrics owners.
3 years, 7 months ago (2017-05-23 19:02:24 UTC) #15
estark
On 2017/05/23 19:02:24, jwd wrote: > LGTM > > And fyi, since it's just enums.xml, ...
3 years, 7 months ago (2017-05-23 21:24:21 UTC) #16
estark
Thanks, all. https://codereview.chromium.org/2902603002/diff/40001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2902603002/diff/40001/components/policy/resources/policy_templates.json#newcode9562 components/policy/resources/policy_templates.json:9562: 'caption': '''Enables queries to a Google time ...
3 years, 7 months ago (2017-05-23 21:26:09 UTC) #17
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/2902603002/60001
3 years, 7 months ago (2017-05-23 21:27:13 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/80618c346d3f78823fe6061349319a98a867b6cf
3 years, 7 months ago (2017-05-24 02:48:48 UTC) #23
Nico
The test added in this Cl fails on bots doing official builds, e.g. https://build.chromium.org/p/chromium.fyi/builders/CrWinClang%20tester/builds/14344 Can ...
3 years, 7 months ago (2017-05-24 15:38:17 UTC) #25
estark
On 2017/05/24 15:38:17, Nico wrote: > The test added in this Cl fails on bots ...
3 years, 7 months ago (2017-05-24 16:02:50 UTC) #26
Thiemo Nagel
https://codereview.chromium.org/2902603002/diff/60001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2902603002/diff/60001/components/policy/resources/policy_templates.json#newcode9552 components/policy/resources/policy_templates.json:9552: 'name': 'NetworkTimeQueriesEnabled', Potentially rename this to clarify that it ...
3 years, 7 months ago (2017-05-26 11:06:52 UTC) #28
estark
https://codereview.chromium.org/2902603002/diff/60001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/2902603002/diff/60001/components/policy/resources/policy_templates.json#newcode9552 components/policy/resources/policy_templates.json:9552: 'name': 'NetworkTimeQueriesEnabled', On 2017/05/26 11:06:51, Thiemo Nagel wrote: > ...
3 years, 6 months ago (2017-05-30 16:45:22 UTC) #29
Thiemo Nagel
3 years, 6 months ago (2017-05-31 13:39:49 UTC) #30
Message was sent while issue was closed.
> Hmm. Just to clarify, this policy would not affect the use of tlsdated to set
> the system time. If this policy were enabled on ChromeOS, if the system time
did
> somehow get off and the user encountered a certificate date error as a result,
> the policy would use the Google time service to decide to show them a prompt
to
> fix the clock -- it wouldn't actually affect the system time. However, digging
> through some old email, it looks like it is possible that the prompt to fix
the
> clock is useless/confusing on ChromeOS because it does not allow the user to
> actually fix the clock. So I'll change this to non-ChromeOS.

Thank you for looking into this!

On Chrome OS, the system clock can only be changed by the user when since bootup
tlsdated did not (yet) manage to obtain the time from
https://clients3.google.com/.  There's a D-Bus call to determine whether time
has been sync'ed yet or not, thus in theory, Chrome could find out whether the
"fix your clock" prompt is actionable.  However, imho the more interesting
question would be why tlsdated didn't manage to sync the clock (do we need to
tweak the retry logic?).  Since we probably have stats for that: Does the
incidence of clock-out-of-sync on Chrome OS even warrant any further work?

Powered by Google App Engine
This is Rietveld 408576698