| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: github.com/luci/luci-go/tokenserver/api/admin/v1/config.proto | 2 // source: github.com/luci/luci-go/tokenserver/api/admin/v1/config.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package admin | 5 package admin |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 | 10 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // "REQUESTOR" allows one to generate tokens that delegate their own ide
ntity | 142 // "REQUESTOR" allows one to generate tokens that delegate their own ide
ntity |
| 143 // to some target audience. | 143 // to some target audience. |
| 144 AllowedToImpersonate []string `protobuf:"bytes,4,rep,name=allowed_to_imp
ersonate,json=allowedToImpersonate" json:"allowed_to_impersonate,omitempty"` | 144 AllowedToImpersonate []string `protobuf:"bytes,4,rep,name=allowed_to_imp
ersonate,json=allowedToImpersonate" json:"allowed_to_impersonate,omitempty"` |
| 145 // A set of identities that should be able to use the new token. | 145 // A set of identities that should be able to use the new token. |
| 146 // | 146 // |
| 147 // Each element is either: | 147 // Each element is either: |
| 148 // * An identity string ("user:<email>"). | 148 // * An identity string ("user:<email>"). |
| 149 // * A group reference ("group:<name>"). | 149 // * A group reference ("group:<name>"). |
| 150 // * A special identifier "REQUESTOR" that is substituted by the reques
tor | 150 // * A special identifier "REQUESTOR" that is substituted by the reques
tor |
| 151 // identity when evaluating the rule. | 151 // identity when evaluating the rule. |
| 152 // * A special token "*" that means "any bearer can use the new token, |
| 153 // including anonymous". |
| 152 // | 154 // |
| 153 // "REQUESTOR" is typically used here for rules that allow requestors to | 155 // "REQUESTOR" is typically used here for rules that allow requestors to |
| 154 // impersonate someone else. The corresponding tokens have the requestor
as | 156 // impersonate someone else. The corresponding tokens have the requestor
as |
| 155 // the only allowed audience. | 157 // the only allowed audience. |
| 156 AllowedAudience []string `protobuf:"bytes,5,rep,name=allowed_audience,js
on=allowedAudience" json:"allowed_audience,omitempty"` | 158 AllowedAudience []string `protobuf:"bytes,5,rep,name=allowed_audience,js
on=allowedAudience" json:"allowed_audience,omitempty"` |
| 157 // A set of services that should be able to accept the new token. | 159 // A set of services that should be able to accept the new token. |
| 158 // | 160 // |
| 159 » // Each element is a service identity string ("service:<id>"). | 161 » // Each element is either: |
| 162 » // * A service identity string ("service:<id>"). |
| 163 » // * A special token "*" that mean "any LUCI service should accept the |
| 164 » // token". |
| 160 TargetService []string `protobuf:"bytes,6,rep,name=target_service,json=t
argetService" json:"target_service,omitempty"` | 165 TargetService []string `protobuf:"bytes,6,rep,name=target_service,json=t
argetService" json:"target_service,omitempty"` |
| 161 // Maximum allowed validity duration (sec) of minted delegation tokens. | 166 // Maximum allowed validity duration (sec) of minted delegation tokens. |
| 162 // | 167 // |
| 163 // Default is 12 hours. | 168 // Default is 12 hours. |
| 164 MaxValidityDuration int64 `protobuf:"varint,7,opt,name=max_validity_dura
tion,json=maxValidityDuration" json:"max_validity_duration,omitempty"` | 169 MaxValidityDuration int64 `protobuf:"varint,7,opt,name=max_validity_dura
tion,json=maxValidityDuration" json:"max_validity_duration,omitempty"` |
| 165 } | 170 } |
| 166 | 171 |
| 167 func (m *DelegationRule) Reset() { *m = DelegationRule{} } | 172 func (m *DelegationRule) Reset() { *m = DelegationRule{} } |
| 168 func (m *DelegationRule) String() string { return proto.CompactTextSt
ring(m) } | 173 func (m *DelegationRule) String() string { return proto.CompactTextSt
ring(m) } |
| 169 func (*DelegationRule) ProtoMessage() {} | 174 func (*DelegationRule) ProtoMessage() {} |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 0xa4, 0x83, 0xe6, 0x41, 0x63, 0x06, 0xce, 0x5d, 0x55, 0xd0, 0x67, 0xa4,
0xaf, 0x01, 0x83, 0x33, | 216 0xa4, 0x83, 0xe6, 0x41, 0x63, 0x06, 0xce, 0x5d, 0x55, 0xd0, 0x67, 0xa4,
0xaf, 0x01, 0x83, 0x33, |
| 212 0x56, 0x69, 0x8c, 0xc0, 0x31, 0x7b, 0xc0, 0x59, 0xe7, 0x79, 0xae, 0x76,
0x90, 0xa2, 0x75, 0x26, | 217 0x56, 0x69, 0x8c, 0xc0, 0x31, 0x7b, 0xc0, 0x59, 0xe7, 0x79, 0xae, 0x76,
0x90, 0xa2, 0x75, 0x26, |
| 213 0x8a, 0x0d, 0x68, 0xa3, 0x24, 0x7e, 0x11, 0x18, 0x89, 0x93, 0x8e, 0x6a,
0xf6, 0x56, 0x5d, 0xef, | 218 0x8a, 0x0d, 0x68, 0xa3, 0x24, 0x7e, 0x11, 0x18, 0x89, 0x93, 0x8e, 0x6a,
0xf6, 0x56, 0x5d, 0xef, |
| 214 0x39, 0xfa, 0x8a, 0x0c, 0xef, 0xbb, 0x78, 0x99, 0x0a, 0x90, 0x09, 0xf8,
0x84, 0xfa, 0xf1, 0xff, | 219 0x39, 0xfa, 0x8a, 0x0c, 0xef, 0xbb, 0x78, 0x99, 0x0a, 0x90, 0x09, 0xf8,
0x84, 0xfa, 0xf1, 0xff, |
| 215 0x35, 0x7e, 0x59, 0xc3, 0xf4, 0x25, 0x19, 0x58, 0xae, 0x33, 0xb0, 0xcc,
0x19, 0x15, 0x28, 0x0c, | 220 0x35, 0x7e, 0x59, 0xc3, 0xf4, 0x25, 0x19, 0x58, 0xae, 0x33, 0xb0, 0xcc,
0x19, 0x15, 0x28, 0x0c, |
| 216 0xbc, 0xf0, 0xb8, 0x42, 0x6f, 0x2a, 0x90, 0x5e, 0x90, 0x71, 0xc1, 0xbf,
0xb1, 0x2d, 0xcf, 0x45, | 221 0xbc, 0xf0, 0xb8, 0x42, 0x6f, 0x2a, 0x90, 0x5e, 0x90, 0x71, 0xc1, 0xbf,
0xb1, 0x2d, 0xcf, 0x45, |
| 217 0x8a, 0x9f, 0x21, 0x4b, 0x4b, 0xed, 0xcd, 0x86, 0x5d, 0x9f, 0xc0, 0x23,
0x24, 0xbf, 0xd4, 0xdc, | 222 0x8a, 0x9f, 0x21, 0x4b, 0x4b, 0xed, 0xcd, 0x86, 0x5d, 0x9f, 0xc0, 0x23,
0x24, 0xbf, 0xd4, 0xdc, |
| 218 0xbc, 0xa6, 0x96, 0x81, 0xff, 0x5b, 0xbd, 0xf9, 0x15, 0x00, 0x00, 0xff,
0xff, 0x68, 0x96, 0x3b, | 223 0xbc, 0xa6, 0x96, 0x81, 0xff, 0x5b, 0xbd, 0xf9, 0x15, 0x00, 0x00, 0xff,
0xff, 0x68, 0x96, 0x3b, |
| 219 0x9b, 0x97, 0x03, 0x00, 0x00, | 224 0x9b, 0x97, 0x03, 0x00, 0x00, |
| 220 } | 225 } |
| OLD | NEW |