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

Issue 2984843002: swarming: switch to a 'capability focused' ACL system (Closed)

Created:
3 years, 5 months ago by M-A Ruel
Modified:
3 years, 4 months ago
Reviewers:
KevinL, Vadim Sh.
CC:
chromium-reviews, infra-reviews+luci-py_chromium.org
Target Ref:
refs/heads/master
Project:
luci-py
Visibility:
Public.

Description

swarming: switch to a 'capability focused' ACL system The main visible ACL change is that privileged_users cannot get the config anymore. R=vadimsh@chromium.org,kjlubick@chromium.org BUG=746557 Review-Url: https://codereview.chromium.org/2984843002 Committed: https://github.com/luci/luci-py/commit/35f786195171478c029b17cf1a0841ac2723ec57

Patch Set 1 #

Total comments: 5

Patch Set 2 : Address comments #

Total comments: 16

Patch Set 3 : Address comments #

Total comments: 4

Patch Set 4 : Tuned permissions, added tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+459 lines, -217 lines) Patch
M appengine/swarming/handlers_bot.py View 1 1 chunk +1 line, -1 line 0 comments Download
M appengine/swarming/handlers_endpoints.py View 1 2 3 29 chunks +53 lines, -43 lines 0 comments Download
M appengine/swarming/handlers_endpoints_test.py View 1 2 3 4 chunks +13 lines, -15 lines 0 comments Download
M appengine/swarming/handlers_frontend.py View 1 6 chunks +6 lines, -6 lines 0 comments Download
M appengine/swarming/proto/config.proto View 1 2 3 1 chunk +34 lines, -0 lines 0 comments Download
M appengine/swarming/proto/config_pb2.py View 3 chunks +17 lines, -3 lines 0 comments Download
M appengine/swarming/server/acl.py View 1 2 3 2 chunks +148 lines, -38 lines 0 comments Download
M appengine/swarming/server/acl_test.py View 1 2 3 2 chunks +187 lines, -97 lines 0 comments Download
M appengine/swarming/server/task_request.py View 1 2 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
M-A Ruel
Would like your opinion on the design, if you think it's fine I'll write acl_test.py ...
3 years, 5 months ago (2017-07-21 19:43:41 UTC) #1
Vadim Sh.
I like the idea, but I think we need more rigorous structure. https://codereview.chromium.org/2984843002/diff/1/appengine/swarming/server/acl.py File appengine/swarming/server/acl.py ...
3 years, 5 months ago (2017-07-21 22:01:20 UTC) #2
M-A Ruel
I prefer to not add pool related ACL changes in this CL as it is ...
3 years, 5 months ago (2017-07-24 15:42:52 UTC) #3
Vadim Sh.
looks fine, but I want to make another more thorough review pass before submitting (so ...
3 years, 5 months ago (2017-07-24 19:16:47 UTC) #4
Vadim Sh.
https://codereview.chromium.org/2984843002/diff/20001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2984843002/diff/20001/appengine/swarming/handlers_endpoints.py#newcode72 appengine/swarming/handlers_endpoints.py:72: raise endpoints.NotFoundException('%s not found.' % task_id) strictly speaking we ...
3 years, 5 months ago (2017-07-24 23:07:26 UTC) #5
M-A Ruel
I'll make a separate CL to get rid of 'id' alone, as this is significant ...
3 years, 5 months ago (2017-07-24 23:46:46 UTC) #6
M-A Ruel
https://codereview.chromium.org/2984843002/diff/20001/appengine/swarming/handlers_endpoints.py File appengine/swarming/handlers_endpoints.py (right): https://codereview.chromium.org/2984843002/diff/20001/appengine/swarming/handlers_endpoints.py#newcode72 appengine/swarming/handlers_endpoints.py:72: raise endpoints.NotFoundException('%s not found.' % task_id) On 2017/07/24 23:07:25, ...
3 years, 5 months ago (2017-07-25 13:46:38 UTC) #7
Vadim Sh.
lgtm https://codereview.chromium.org/2984843002/diff/40001/appengine/swarming/proto/config.proto File appengine/swarming/proto/config.proto (right): https://codereview.chromium.org/2984843002/diff/40001/appengine/swarming/proto/config.proto#newcode161 appengine/swarming/proto/config.proto:161: optional string admins_group = 1; nit: \n (and ...
3 years, 5 months ago (2017-07-25 17:02:50 UTC) #8
M-A Ruel
Can you do a quick re-review of patchset #4? I've tweaked the permissions a bit, ...
3 years, 5 months ago (2017-07-25 18:11:39 UTC) #11
Vadim Sh.
lgtm
3 years, 5 months ago (2017-07-25 21:06:02 UTC) #12
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/2984843002/60001
3 years, 4 months ago (2017-07-26 14:19:45 UTC) #15
commit-bot: I haz the power
3 years, 4 months ago (2017-07-26 14:23:41 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/luci-py/commit/35f786195171478c029b17cf1a0841ac2723ec57

Powered by Google App Engine
This is Rietveld 408576698