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

Unified Diff: tokenserver/api/minter/v1/token_minter.pb.go

Issue 2413683004: token-server: Delegation config import, validation and evaluation. (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tokenserver/api/minter/v1/token_minter.pb.go
diff --git a/tokenserver/api/minter/v1/token_minter.pb.go b/tokenserver/api/minter/v1/token_minter.pb.go
index 520cd866661013d8bb109c2731da45d28856d652..8d5d9823b5b628c67c38d05564eaffba54657629 100644
--- a/tokenserver/api/minter/v1/token_minter.pb.go
+++ b/tokenserver/api/minter/v1/token_minter.pb.go
@@ -328,8 +328,9 @@ func (m *LuciMachineToken) GetExpiry() *google_protobuf.Timestamp {
type MintDelegationTokenRequest struct {
// Identity whose authority is delegated.
//
- // A string of the form "user:<email>". The token server will check its ACLs
- // to make sure the caller is authorized to impersonate this identity.
+ // A string of the form "user:<email>" or a special token "REQUESTOR" that
+ // means to delegate caller's own identity. The token server will check its
+ // ACLs to make sure the caller is authorized to impersonate this identity.
//
// Required.
DelegatedIdentity string `protobuf:"bytes,1,opt,name=delegated_identity,json=delegatedIdentity" json:"delegated_identity,omitempty"`
@@ -340,7 +341,9 @@ type MintDelegationTokenRequest struct {
// Who will be able to use the new token.
//
// Each item can be an identity string (e.g. "user:<email>"), a "group:<name>"
- // string, or special "*" string which means "Any bearer can use the token".
+ // string, special "*" string which means "Any bearer can use the token", or
+ // "REQUESTOR" string which means "Whoever is making this call can use the
+ // token".
//
// This is semantically is a set, the order of elements doesn't matter.
//

Powered by Google App Engine
This is Rietveld 408576698