| Index: tokenserver/api/admin/v1/config.pb.go
|
| diff --git a/tokenserver/api/admin/v1/config.pb.go b/tokenserver/api/admin/v1/config.pb.go
|
| index 91edd9dae09a82d62efc8a1a6e5c8585ae98b354..31c40a69517fc8465fd4712c71fc96d22369010b 100644
|
| --- a/tokenserver/api/admin/v1/config.pb.go
|
| +++ b/tokenserver/api/admin/v1/config.pb.go
|
| @@ -105,7 +105,7 @@ func (m *DelegationPermissions) GetRules() []*DelegationRule {
|
|
|
| // DelegationRule describes a single allowed case of using delegation tokens.
|
| //
|
| -// An incoming MintDelegationToken request is basically a tuple of:
|
| +// An incoming MintDelegationTokenRequest is basically a tuple of:
|
| // * 'requestor_id' - an identity of whoever makes the request.
|
| // * 'delegated_identity' - an identity to delegate.
|
| // * 'audience' - a set of identities that will be able to use the token.
|
| @@ -127,12 +127,19 @@ type DelegationRule struct {
|
| Owner []string `protobuf:"bytes,2,rep,name=owner" json:"owner,omitempty"`
|
| // A set of callers to which this rule applies.
|
| //
|
| + // Matched against verified credentials of a caller of MintDelegationToken.
|
| + //
|
| // Each element is either:
|
| // * An identity string ("user:<email>").
|
| // * A group reference ("group:<name>").
|
| + //
|
| + // The groups specified here are expanded when MintDelegationTokenRequest is
|
| + // evaluated.
|
| Requestor []string `protobuf:"bytes,3,rep,name=requestor" json:"requestor,omitempty"`
|
| // Identities that are allowed to be delegated/impersonated by the requestor.
|
| //
|
| + // Matched against 'delegated_identity' field of MintDelegationTokenRequest.
|
| + //
|
| // Each element is either:
|
| // * An identity string ("user:<email>").
|
| // * A group reference ("group:<name>").
|
| @@ -141,22 +148,38 @@ type DelegationRule struct {
|
| //
|
| // "REQUESTOR" allows one to generate tokens that delegate their own identity
|
| // to some target audience.
|
| + //
|
| + // The groups specified here are expanded when MintDelegationTokenRequest is
|
| + // evaluated.
|
| AllowedToImpersonate []string `protobuf:"bytes,4,rep,name=allowed_to_impersonate,json=allowedToImpersonate" json:"allowed_to_impersonate,omitempty"`
|
| // A set of identities that should be able to use the new token.
|
| //
|
| + // Matched against 'audience' field of MintDelegationTokenRequest.
|
| + //
|
| // Each element is either:
|
| // * An identity string ("user:<email>").
|
| // * A group reference ("group:<name>").
|
| // * A special identifier "REQUESTOR" that is substituted by the requestor
|
| // identity when evaluating the rule.
|
| + // * A special token "*" that means "any bearer can use the new token,
|
| + // including anonymous".
|
| //
|
| // "REQUESTOR" is typically used here for rules that allow requestors to
|
| // impersonate someone else. The corresponding tokens have the requestor as
|
| // the only allowed audience.
|
| + //
|
| + // The groups specified here are NOT expanded when MintDelegationTokenRequest
|
| + // is evaluated. To match the rule, MintDelegationTokenRequest must specify
|
| + // subset of 'allowed_audience' groups explicitly in 'audience' field.
|
| AllowedAudience []string `protobuf:"bytes,5,rep,name=allowed_audience,json=allowedAudience" json:"allowed_audience,omitempty"`
|
| // A set of services that should be able to accept the new token.
|
| //
|
| - // Each element is a service identity string ("service:<id>").
|
| + // Matched against 'services' field of MintDelegationTokenRequest.
|
| + //
|
| + // Each element is either:
|
| + // * A service identity string ("service:<id>").
|
| + // * A special token "*" that mean "any LUCI service should accept the
|
| + // token".
|
| TargetService []string `protobuf:"bytes,6,rep,name=target_service,json=targetService" json:"target_service,omitempty"`
|
| // Maximum allowed validity duration (sec) of minted delegation tokens.
|
| //
|
| @@ -182,39 +205,39 @@ func init() {
|
| }
|
|
|
| var fileDescriptor2 = []byte{
|
| - // 533 bytes of a gzipped FileDescriptorProto
|
| - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x53, 0x5f, 0x6f, 0xd3, 0x3e,
|
| - 0x14, 0x55, 0xff, 0xa5, 0xad, 0x7f, 0x5b, 0x7f, 0x9d, 0x69, 0x47, 0x04, 0x48, 0x8c, 0x4a, 0x48,
|
| - 0xe5, 0x61, 0x8d, 0x18, 0x48, 0x3c, 0xf1, 0x30, 0xad, 0x2f, 0x43, 0x48, 0x54, 0xd9, 0xe0, 0xd5,
|
| - 0x72, 0x93, 0x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x0a, 0xfe, 0x4e, 0x47,
|
| - 0xa4, 0x83, 0xe6, 0x41, 0x63, 0x06, 0xce, 0x5d, 0x55, 0xd0, 0x67, 0xa4, 0xaf, 0x01, 0x83, 0x33,
|
| - 0x56, 0x69, 0x8c, 0xc0, 0x31, 0x7b, 0xc0, 0x59, 0xe7, 0x79, 0xae, 0x76, 0x90, 0xa2, 0x75, 0x26,
|
| - 0x8a, 0x0d, 0x68, 0xa3, 0x24, 0x7e, 0x11, 0x18, 0x89, 0x93, 0x8e, 0x6a, 0xf6, 0x56, 0x5d, 0xef,
|
| - 0x39, 0xfa, 0x8a, 0x0c, 0xef, 0xbb, 0x78, 0x99, 0x0a, 0x90, 0x09, 0xf8, 0x84, 0xfa, 0xf1, 0xff,
|
| - 0x35, 0x7e, 0x59, 0xc3, 0xf4, 0x25, 0x19, 0x58, 0xae, 0x33, 0xb0, 0xcc, 0x19, 0x15, 0x28, 0x0c,
|
| - 0xbc, 0xf0, 0xb8, 0x42, 0x6f, 0x2a, 0x90, 0x5e, 0x90, 0x71, 0xc1, 0xbf, 0xb1, 0x2d, 0xcf, 0x45,
|
| - 0x8a, 0x9f, 0x21, 0x4b, 0x4b, 0xed, 0xcd, 0x86, 0x5d, 0x9f, 0xc0, 0x23, 0x24, 0xbf, 0xd4, 0xdc,
|
| - 0xbc, 0xa6, 0x96, 0x81, 0xff, 0x5b, 0xbd, 0xf9, 0x15, 0x00, 0x00, 0xff, 0xff, 0x68, 0x96, 0x3b,
|
| - 0x9b, 0x97, 0x03, 0x00, 0x00,
|
| + // 539 bytes of a gzipped FileDescriptorProto
|
| + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x74, 0x93, 0x5f, 0x6f, 0xd3, 0x3c,
|
| + 0x18, 0xc5, 0x95, 0x3f, 0xcd, 0x52, 0xbf, 0xdb, 0xde, 0xce, 0x74, 0xc3, 0x02, 0x24, 0x4a, 0x25,
|
| + 0xa4, 0x72, 0x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