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

Issue 2413683004: token-server: Delegation config import, validation and evaluation. (Closed)

Created:
4 years, 2 months ago by Vadim Sh.
Modified:
4 years, 1 month ago
Reviewers:
nodir
CC:
chromium-reviews, infra-reviews+luci-go_chromium.org, andrew.wang, todd, tandrii+luci-go_chromium.org, M-A Ruel
Target Ref:
refs/heads/master
Project:
luci-go
Visibility:
Public.

Description

token-server: Delegation config import, validation and evaluation. R=nodir@chromium.org BUG= Committed: https://github.com/luci/luci-go/commit/3730e3576f6d20480c83c47e281a3bd12669549b

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 10

Patch Set 3 : add crapload of tests #

Patch Set 4 : also check validity_duration #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3781 lines, -1778 lines) Patch
M server/auth/authtest/state.go View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M tokenserver/api/admin/v1/admin.proto View 1 chunk +9 lines, -0 lines 0 comments Download
M tokenserver/api/admin/v1/admin.pb.go View 1 2 7 chunks +89 lines, -32 lines 0 comments Download
M tokenserver/api/admin/v1/adminserver_dec.go View 1 chunk +15 lines, -0 lines 0 comments Download
M tokenserver/api/admin/v1/certificate_authorities.pb.go View 1 2 1 chunk +46 lines, -45 lines 0 comments Download
M tokenserver/api/admin/v1/config.proto View 1 2 3 chunks +25 lines, -2 lines 0 comments Download
M tokenserver/api/admin/v1/config.pb.go View 1 2 4 chunks +60 lines, -37 lines 0 comments Download
M tokenserver/api/admin/v1/pb.discovery.go View 1 2 1 chunk +834 lines, -802 lines 0 comments Download
M tokenserver/api/machine_token.pb.go View 1 2 1 chunk +22 lines, -22 lines 0 comments Download
M tokenserver/api/minter/v1/pb.discovery.go View 1 2 1 chunk +762 lines, -746 lines 0 comments Download
M tokenserver/api/minter/v1/token_minter.proto View 2 chunks +6 lines, -3 lines 0 comments Download
M tokenserver/api/minter/v1/token_minter.pb.go View 1 2 3 chunks +63 lines, -60 lines 0 comments Download
M tokenserver/api/token_file.pb.go View 1 2 1 chunk +18 lines, -18 lines 0 comments Download
A tokenserver/appengine/delegation/config.go View 1 2 1 chunk +308 lines, -0 lines 0 comments Download
A tokenserver/appengine/delegation/config_test.go View 1 2 1 chunk +341 lines, -0 lines 0 comments Download
A tokenserver/appengine/delegation/rpc_import_delegation_configs.go View 1 2 1 chunk +96 lines, -0 lines 0 comments Download
A tokenserver/appengine/delegation/rpc_import_delegation_configs_test.go View 1 2 1 chunk +94 lines, -0 lines 0 comments Download
M tokenserver/appengine/delegation/rpc_mint_delegation_token.go View 1 2 3 2 chunks +241 lines, -1 line 0 comments Download
A tokenserver/appengine/delegation/rpc_mint_delegation_token_test.go View 1 2 3 1 chunk +295 lines, -0 lines 0 comments Download
A tokenserver/appengine/delegation/validation.go View 1 2 1 chunk +169 lines, -0 lines 0 comments Download
A tokenserver/appengine/delegation/validation_test.go View 1 2 1 chunk +211 lines, -0 lines 0 comments Download
M tokenserver/appengine/frontend/main.go View 2 chunks +35 lines, -9 lines 0 comments Download
M tokenserver/appengine/services/admin/adminsrv/service.go View 2 chunks +2 lines, -0 lines 0 comments Download
M tokenserver/appengine/services/minter/tokenminter/service.go View 1 chunk +2 lines, -1 line 0 comments Download
M tokenserver/appengine/utils/identityset/identityset.go View 1 2 2 chunks +22 lines, -0 lines 0 comments Download
M tokenserver/appengine/utils/identityset/identityset_test.go View 1 2 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
Vadim Sh.
This is the best readability I could manage. It is still a big hairy though, ...
4 years, 2 months ago (2016-10-13 04:32:03 UTC) #1
nodir
https://codereview.chromium.org/2413683004/diff/20001/tokenserver/api/admin/v1/admin.proto File tokenserver/api/admin/v1/admin.proto (right): https://codereview.chromium.org/2413683004/diff/20001/tokenserver/api/admin/v1/admin.proto#newcode27 tokenserver/api/admin/v1/admin.proto:27: // Note that regularly configs are read in background ...
4 years, 2 months ago (2016-10-13 22:03:52 UTC) #2
nodir
lgtm since we don't have time for config validator
4 years, 2 months ago (2016-10-17 22:53:20 UTC) #3
Vadim Sh.
Added tests. https://codereview.chromium.org/2413683004/diff/20001/tokenserver/appengine/delegation/config.go File tokenserver/appengine/delegation/config.go (right): https://codereview.chromium.org/2413683004/diff/20001/tokenserver/appengine/delegation/config.go#newcode149 tokenserver/appengine/delegation/config.go:149: cfg.ParsedConfig = &admin.DelegationPermissions{} On 2016/10/13 22:03:52, nodir ...
4 years, 1 month ago (2016-10-27 04:12:00 UTC) #4
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/2413683004/40001
4 years, 1 month ago (2016-10-27 04:12:11 UTC) #7
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/2413683004/60001
4 years, 1 month ago (2016-10-27 04:43:59 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: Luci-go Win Tester on luci.infra.try (JOB_FAILED, https://luci-milo.appspot.com/swarming/task/321d455869364e10)
4 years, 1 month ago (2016-10-27 06:46:31 UTC) #13
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/2413683004/60001
4 years, 1 month ago (2016-10-27 18:29:39 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-10-27 19:10:39 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://github.com/luci/luci-go/commit/3730e3576f6d20480c83c47e281a3bd12669549b

Powered by Google App Engine
This is Rietveld 408576698