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

Issue 1971493003: LogDog: Project READ access for user endpoints. (Closed)

Created:
4 years, 7 months ago by dnj
Modified:
4 years, 7 months ago
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Base URL:
https://github.com/luci/luci-go@logdog-project-service-config
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

LogDog: Project READ access for user endpoints. Update LogDog Coordinator to load per-project configurations and use their READ ACLs to enforce log access. Previously, any user can read any log stream. After this CL, they have to be explicitly granted READ permission in the project's configuration. This also redefines project access for the list endpoint. Previously, the user could view the project if the top-level project ACL permitted them. Now, they can view any project that they have READ access to. BUG= Committed: https://github.com/luci/luci-go/commit/f0242c6fc473f8af6acc9aa9b01af4a16680cfa9

Patch Set 1 #

Patch Set 2 : Added project archival parametrs, better support. #

Total comments: 2

Patch Set 3 : Updated patchset dependency #

Total comments: 11

Patch Set 4 : Use GetProjectConfigs, restructure a few things around that. #

Patch Set 5 : Updated patchset dependency #

Total comments: 20

Patch Set 6 : Responded to comments, split method. #

Patch Set 7 : Updated patchset dependency #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -374 lines) Patch
M appengine/logdog/coordinator/auth.go View 1 2 3 2 chunks +45 lines, -38 lines 0 comments Download
M appengine/logdog/coordinator/config/projects.go View 1 2 3 4 5 3 chunks +41 lines, -203 lines 0 comments Download
M appengine/logdog/coordinator/context.go View 1 2 3 3 chunks +19 lines, -20 lines 0 comments Download
M appengine/logdog/coordinator/coordinatorTest/context.go View 1 2 3 4 5 7 chunks +66 lines, -22 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/logs/get_test.go View 2 chunks +16 lines, -4 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/logs/list.go View 2 chunks +1 line, -7 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/logs/list_test.go View 1 chunk +8 lines, -2 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/logs/query_test.go View 1 chunk +3 lines, -3 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/logs/service.go View 3 chunks +27 lines, -6 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/registerStream.go View 1 2 3 2 chunks +8 lines, -6 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/registerStream_test.go View 1 2 2 chunks +49 lines, -3 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/service.go View 1 chunk +5 lines, -1 line 0 comments Download
M appengine/logdog/coordinator/endpoints/services/terminateStream.go View 1 2 3 3 chunks +15 lines, -7 lines 0 comments Download
M appengine/logdog/coordinator/endpoints/services/terminateStream_test.go View 1 2 3 chunks +43 lines, -5 lines 0 comments Download
A appengine/logdog/coordinator/endpoints/util.go View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M appengine/logdog/coordinator/hierarchy/hierarchy_test.go View 2 chunks +1 line, -2 lines 0 comments Download
M appengine/logdog/coordinator/hierarchy/project.go View 1 2 3 3 chunks +19 lines, -25 lines 0 comments Download
M appengine/logdog/coordinator/project.go View 1 2 3 4 5 4 chunks +44 lines, -20 lines 0 comments Download
A common/config/util.go View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 16 (7 generated)
dnj
PTAL, this adds ACLs :)
4 years, 7 months ago (2016-05-11 04:55:26 UTC) #2
nodir
https://codereview.chromium.org/1971493003/diff/20001/appengine/logdog/coordinator/project.go File appengine/logdog/coordinator/project.go (right): https://codereview.chromium.org/1971493003/diff/20001/appengine/logdog/coordinator/project.go#newcode16 appengine/logdog/coordinator/project.go:16: "golang.org/x/net/context" should be in a separate import block https://codereview.chromium.org/1971493003/diff/20001/appengine/logdog/coordinator/project.go#newcode22 ...
4 years, 7 months ago (2016-05-19 00:38:59 UTC) #5
dnj (Google)
I've updated a few places to use GetProjectConfigs (cool endpoint, didn't know it existed until ...
4 years, 7 months ago (2016-05-19 16:12:34 UTC) #7
nodir
Yeah, I have concerns it won't scale with a number of projects though
4 years, 7 months ago (2016-05-19 16:48:32 UTC) #8
nodir
https://codereview.chromium.org/1971493003/diff/80001/appengine/logdog/coordinator/auth.go File appengine/logdog/coordinator/auth.go (right): https://codereview.chromium.org/1971493003/diff/80001/appengine/logdog/coordinator/auth.go#newcode21 appengine/logdog/coordinator/auth.go:21: // I think separating these two paragraphs is unnecessary ...
4 years, 7 months ago (2016-05-19 17:17:21 UTC) #9
dnj (Google)
https://codereview.chromium.org/1971493003/diff/80001/appengine/logdog/coordinator/auth.go File appengine/logdog/coordinator/auth.go (right): https://codereview.chromium.org/1971493003/diff/80001/appengine/logdog/coordinator/auth.go#newcode21 appengine/logdog/coordinator/auth.go:21: // On 2016/05/19 17:17:20, nodir wrote: > I think ...
4 years, 7 months ago (2016-05-19 20:10:46 UTC) #10
nodir
lgtm
4 years, 7 months ago (2016-05-19 20:26:49 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1971493003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1971493003/120001
4 years, 7 months ago (2016-05-19 23:14:50 UTC) #14
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 23:20:47 UTC) #16
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://github.com/luci/luci-go/commit/f0242c6fc473f8af6acc9aa9b01af4a16680cfa9

Powered by Google App Engine
This is Rietveld 408576698