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

Issue 138753005: Add gnubby authentication to remoting host (Closed)

Created:
6 years, 11 months ago by psj
Modified:
6 years, 10 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, sanjeevr, asvitkine+watch_chromium.org, jar (doing other things), hclam+watch_chromium.org, wez+watch_chromium.org, amit, joaodasilva+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, rmsousa+watch_chromium.org, weitaosu+watch_chromium.org, alexeypa+watch_chromium.org, Ilya Sherman, sergeyu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Add gnubby authentication to remoting host The remoting host changes, including the associated policy definitions, required to proxy gnubby traffic through a Chrome Remote Desktop session. BUG=134250 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252217

Patch Set 1 #

Total comments: 16

Patch Set 2 : Address review comments #

Patch Set 3 : Actually add braces #

Total comments: 2

Patch Set 4 : Listen for requests on a Unix Domain Socket #

Patch Set 5 : Change authorization socket flag name #

Total comments: 44

Patch Set 6 : Address latest review comments #

Total comments: 42

Patch Set 7 : Address review comments #

Patch Set 8 : Change JSON parsing and some log levels #

Total comments: 8

Patch Set 9 : Encode extension message as JSON #

Patch Set 10 : Add max buffer size for active requests #

Patch Set 11 : Fix windows warnings/errors #

Patch Set 12 : Fix policy name and Windows-only code issue #

Patch Set 13 : Another Windows warning #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1347 lines, -5 lines) Patch
M chrome/browser/policy/configuration_policy_handler_list_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/test/data/policy/policy_test_cases.json View 1 2 3 4 5 6 7 8 1 chunk +8 lines, -0 lines 0 comments Download
M components/policy/resources/policy_templates.json View 1 2 3 4 5 6 7 8 9 10 2 chunks +17 lines, -1 line 0 comments Download
M remoting/host/basic_desktop_environment.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/client_session.h View 1 2 3 4 5 3 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/client_session.cc View 1 2 3 4 5 3 chunks +16 lines, -1 line 0 comments Download
M remoting/host/client_session_unittest.cc View 1 2 3 4 5 6 6 chunks +62 lines, -2 lines 0 comments Download
M remoting/host/desktop_environment.h View 1 2 3 4 5 3 chunks +13 lines, -0 lines 0 comments Download
A remoting/host/gnubby_auth_handler.h View 1 2 3 4 5 6 1 chunk +46 lines, -0 lines 0 comments Download
A remoting/host/gnubby_auth_handler_posix.h View 1 2 3 4 5 6 1 chunk +74 lines, -0 lines 0 comments Download
A remoting/host/gnubby_auth_handler_posix.cc View 1 2 3 4 5 6 7 8 9 1 chunk +279 lines, -0 lines 0 comments Download
A remoting/host/gnubby_auth_handler_posix_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +126 lines, -0 lines 0 comments Download
A remoting/host/gnubby_auth_handler_win.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +47 lines, -0 lines 0 comments Download
A remoting/host/gnubby_util.h View 1 2 3 4 5 1 chunk +30 lines, -0 lines 0 comments Download
A remoting/host/gnubby_util.cc View 1 2 3 4 5 6 7 8 1 chunk +347 lines, -0 lines 0 comments Download
A remoting/host/gnubby_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +95 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 4 5 6 3 chunks +20 lines, -0 lines 0 comments Download
M remoting/host/host_mock_objects.cc View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/host/ipc_desktop_environment.cc View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M remoting/host/me2me_desktop_environment.h View 1 2 3 4 5 5 chunks +11 lines, -0 lines 0 comments Download
M remoting/host/me2me_desktop_environment.cc View 1 2 3 4 5 6 5 chunks +26 lines, -1 line 0 comments Download
M remoting/host/policy_hack/policy_watcher.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_unittest.cc View 1 4 chunks +23 lines, -0 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 8 chunks +36 lines, -0 lines 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M remoting/remoting_test.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/tools/me2me_virtual_host.py View 1 2 3 4 5 6 7 8 9 10 5 chunks +12 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
psj
sergeyu: Please review everything under remoting/, or delegate to lambroslambrou@ or rmsousa@ as necessary dconnelly: ...
6 years, 11 months ago (2014-01-23 21:28:39 UTC) #1
Alexei Svitkine (slow)
This looks like a sizeable enough CL that it should probably have a corresponding crbug.
6 years, 11 months ago (2014-01-24 21:06:01 UTC) #2
Sergey Ulanov
On 2014/01/24 21:06:01, Alexei Svitkine wrote: > This looks like a sizeable enough CL that ...
6 years, 11 months ago (2014-01-24 22:09:34 UTC) #3
Sergey Ulanov
Thanks for working on this feature. I can't wait to try it out! https://codereview.chromium.org/138753005/diff/1/chrome/browser/policy/configuration_policy_handler_list_factory.cc File ...
6 years, 11 months ago (2014-01-25 02:03:32 UTC) #4
psj
https://codereview.chromium.org/138753005/diff/1/chrome/browser/policy/configuration_policy_handler_list_factory.cc File chrome/browser/policy/configuration_policy_handler_list_factory.cc (right): https://codereview.chromium.org/138753005/diff/1/chrome/browser/policy/configuration_policy_handler_list_factory.cc#newcode268 chrome/browser/policy/configuration_policy_handler_list_factory.cc:268: { key::kRemoteAccessHostAllowGnubbyAuth, On 2014/01/25 02:03:33, Sergey Ulanov wrote: > ...
6 years, 10 months ago (2014-01-29 09:07:14 UTC) #5
dconnelly
lgtm after you update the supported_on version. https://codereview.chromium.org/138753005/diff/320001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): https://codereview.chromium.org/138753005/diff/320001/components/policy/resources/policy_templates.json#newcode632 components/policy/resources/policy_templates.json:632: 'supported_on': ['chrome.*:30-'], ...
6 years, 10 months ago (2014-01-29 09:21:07 UTC) #6
Alexei Svitkine (slow)
histograms.xml lgtm
6 years, 10 months ago (2014-01-29 14:54:55 UTC) #7
psj
Changed implementation to use Unix Domain Sockets instead of TCP sockets https://codereview.chromium.org/138753005/diff/320001/components/policy/resources/policy_templates.json File components/policy/resources/policy_templates.json (right): ...
6 years, 10 months ago (2014-02-04 23:43:56 UTC) #8
psj
Ping. remoting code is ready for review
6 years, 10 months ago (2014-02-08 00:44:17 UTC) #9
Sergey Ulanov
I'm still not sure if we should use protocol extensions for gnubby. I'll talk Wez ...
6 years, 10 months ago (2014-02-09 22:29:53 UTC) #10
Sergey Ulanov
On 2014/02/09 22:29:53, Sergey Ulanov wrote: > I'm still not sure if we should use ...
6 years, 10 months ago (2014-02-10 19:09:26 UTC) #11
psj
Ready for another review of remoting. Thanks https://codereview.chromium.org/138753005/diff/380001/remoting/host/client_session.h File remoting/host/client_session.h (right): https://codereview.chromium.org/138753005/diff/380001/remoting/host/client_session.h#newcode101 remoting/host/client_session.h:101: bool enable_gnubby_auth); ...
6 years, 10 months ago (2014-02-10 22:57:21 UTC) #12
Sergey Ulanov
Mostly style nits left :-) https://codereview.chromium.org/138753005/diff/380001/remoting/host/gnubby_auth_handler.cc File remoting/host/gnubby_auth_handler.cc (right): https://codereview.chromium.org/138753005/diff/380001/remoting/host/gnubby_auth_handler.cc#newcode154 remoting/host/gnubby_auth_handler.cc:154: message.set_data("control " + control_type ...
6 years, 10 months ago (2014-02-11 08:20:36 UTC) #13
psj
I addressed all of your comments. Please take another look at remoting. https://codereview.chromium.org/138753005/diff/380001/remoting/host/gnubby_auth_handler.cc File remoting/host/gnubby_auth_handler.cc ...
6 years, 10 months ago (2014-02-12 09:01:00 UTC) #14
Sergey Ulanov
https://codereview.chromium.org/138753005/diff/500001/remoting/host/gnubby_auth_handler_posix.cc File remoting/host/gnubby_auth_handler_posix.cc (right): https://codereview.chromium.org/138753005/diff/500001/remoting/host/gnubby_auth_handler_posix.cc#newcode186 remoting/host/gnubby_auth_handler_posix.cc:186: if (GetJsonFromGnubbyRequest(data, len, &json)) { On 2014/02/12 09:01:01, psj ...
6 years, 10 months ago (2014-02-14 07:31:58 UTC) #15
psj
remoting ready for another look https://codereview.chromium.org/138753005/diff/500001/remoting/host/gnubby_auth_handler_posix.cc File remoting/host/gnubby_auth_handler_posix.cc (right): https://codereview.chromium.org/138753005/diff/500001/remoting/host/gnubby_auth_handler_posix.cc#newcode186 remoting/host/gnubby_auth_handler_posix.cc:186: if (GetJsonFromGnubbyRequest(data, len, &json)) ...
6 years, 10 months ago (2014-02-15 00:01:33 UTC) #16
psj
Added a buffer size limit to active_requests
6 years, 10 months ago (2014-02-15 01:31:25 UTC) #17
Sergey Ulanov
lgtm
6 years, 10 months ago (2014-02-19 09:34:27 UTC) #18
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-19 17:12:40 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/890001
6 years, 10 months ago (2014-02-19 17:18:03 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 17:35:59 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-19 17:36:00 UTC) #22
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-19 17:53:58 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/890001
6 years, 10 months ago (2014-02-19 17:58:12 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 18:14:54 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 10 months ago (2014-02-19 18:14:55 UTC) #26
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-19 19:06:43 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1220001
6 years, 10 months ago (2014-02-19 19:36:59 UTC) #28
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 20:23:48 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel
6 years, 10 months ago (2014-02-19 20:23:49 UTC) #30
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-19 21:21:39 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1430001
6 years, 10 months ago (2014-02-19 21:24:25 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-19 22:47:42 UTC) #33
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, base_unittests, browser_tests, cacheinvalidation_unittests, ...
6 years, 10 months ago (2014-02-19 22:47:49 UTC) #34
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-19 23:06:34 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1430001
6 years, 10 months ago (2014-02-19 23:17:35 UTC) #36
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-20 00:31:04 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1430001
6 years, 10 months ago (2014-02-20 01:06:42 UTC) #38
commit-bot: I haz the power
Failed to trigger a try job on win_x64_rel HTTP Error 400: Bad Request
6 years, 10 months ago (2014-02-20 01:07:44 UTC) #39
psj
The CQ bit was unchecked by psj@chromium.org
6 years, 10 months ago (2014-02-20 01:30:56 UTC) #40
psj
The CQ bit was checked by psj@chromium.org
6 years, 10 months ago (2014-02-20 01:31:40 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1710001
6 years, 10 months ago (2014-02-20 01:42:48 UTC) #42
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1710001
6 years, 10 months ago (2014-02-20 05:12:55 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1710001
6 years, 10 months ago (2014-02-20 09:08:39 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/psj@chromium.org/138753005/1710001
6 years, 10 months ago (2014-02-20 12:29:48 UTC) #45
commit-bot: I haz the power
6 years, 10 months ago (2014-02-20 13:28:22 UTC) #46
Message was sent while issue was closed.
Change committed as 252217

Powered by Google App Engine
This is Rietveld 408576698