|
auth: Make luci-go services trust signatures produced by the token server.
Previously luci-go auth library ignored 'issued_by' field and just always
assumed tokens are signed by the auth service.
Now it fetches the certificates of both the auth service and the token server
and picks the correct key based on 'issued_by' field. It matches what luci-py
does.
It enables a migration path from "old" tokens signed by the auth service to
"new" tokens, signed by the token server.
R=maruel@chromium.org, nodir@chromium.org
BUG=
Committed: https://github.com/luci/luci-go/commit/59df90e41b87f38d73e5dde2baa0ed5ba139fe0c
Total comments: 17
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+290 lines, -72 lines) |
Patch |
 |
M |
appengine/gaeauth/server/db.go
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/auth.go
|
View
|
|
3 chunks |
+1 line, -15 lines |
0 comments
|
Download
|
 |
M |
server/auth/auth_test.go
|
View
|
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/authdb/db.go
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/authdb/erroring.go
|
View
|
|
2 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/authdb/snapshot.go
|
View
|
1
|
6 chunks |
+90 lines, -1 line |
0 comments
|
Download
|
 |
M |
server/auth/authdb/snapshot_test.go
|
View
|
1
2
|
2 chunks |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/authtest/db.go
|
View
|
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/delegation/checker.go
|
View
|
|
3 chunks |
+21 lines, -15 lines |
0 comments
|
Download
|
 |
M |
server/auth/delegation/checker_test.go
|
View
|
1
2
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
server/auth/delegation/minter_test.go
|
View
|
1
2
|
4 chunks |
+10 lines, -40 lines |
0 comments
|
Download
|
 |
M |
server/auth/internal/fetch.go
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
A |
server/auth/internal/testing.go
|
View
|
1
2
|
1 chunk |
+44 lines, -0 lines |
0 comments
|
Download
|
 |
M |
server/auth/signing/signingtest/signer.go
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 8 (3 generated)
|