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

Side by Side Diff: tokenserver/api/admin/v1/config.pb.go

Issue 2785973002: token-server: Add protos for new API for generating service account tokens. (Closed)
Patch Set: more nits Created 3 years, 4 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 unified diff | Download patch
OLDNEW
1 // Code generated by protoc-gen-go. DO NOT EDIT. 1 // Code generated by protoc-gen-go. DO NOT EDIT.
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 3
4 package admin 4 package admin
5 5
6 import proto "github.com/golang/protobuf/proto" 6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt" 7 import fmt "fmt"
8 import math "math" 8 import math "math"
9 9
10 // Reference imports to suppress errors if they are not otherwise used. 10 // Reference imports to suppress errors if they are not otherwise used.
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 return nil 287 return nil
288 } 288 }
289 289
290 func (m *DelegationRule) GetMaxValidityDuration() int64 { 290 func (m *DelegationRule) GetMaxValidityDuration() int64 {
291 if m != nil { 291 if m != nil {
292 return m.MaxValidityDuration 292 return m.MaxValidityDuration
293 } 293 }
294 return 0 294 return 0
295 } 295 }
296 296
297 // ServiceAccountsPermissions is read from service_accounts.cfg in luci-config.
298 type ServiceAccountsPermissions struct {
299 // Rules specify how MintOAuthTokenViaGrant can be used.
300 //
301 // Rules are evaluated independently. One and only one rule should match the
302 // request to allow the operation. If none rules or more than one rule m atch,
303 // the request will be denied.
304 //
305 // See ServiceAccountRule comments for more details.
306 Rules []*ServiceAccountRule `protobuf:"bytes,1,rep,name=rules" json:"rul es,omitempty"`
307 }
308
309 func (m *ServiceAccountsPermissions) Reset() { *m = ServiceAc countsPermissions{} }
310 func (m *ServiceAccountsPermissions) String() string { return proto.C ompactTextString(m) }
311 func (*ServiceAccountsPermissions) ProtoMessage() {}
312 func (*ServiceAccountsPermissions) Descriptor() ([]byte, []int) { return fileDes criptor2, []int{5} }
313
314 func (m *ServiceAccountsPermissions) GetRules() []*ServiceAccountRule {
315 if m != nil {
316 return m.Rules
317 }
318 return nil
319 }
320
321 // ServiceAccountRule describes a single allowed case of using service accounts.
322 //
323 // TODO(vadimsh): Implement.
324 type ServiceAccountRule struct {
325 // A descriptive name of this rule, for the audit log.
326 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
327 // Email of developers that owns this rule, to know who to contact.
328 Owner []string `protobuf:"bytes,2,rep,name=owner" json:"owner,omitempty" `
329 }
330
331 func (m *ServiceAccountRule) Reset() { *m = ServiceAccountRul e{} }
332 func (m *ServiceAccountRule) String() string { return proto.CompactTe xtString(m) }
333 func (*ServiceAccountRule) ProtoMessage() {}
334 func (*ServiceAccountRule) Descriptor() ([]byte, []int) { return fileDescriptor2 , []int{6} }
335
336 func (m *ServiceAccountRule) GetName() string {
337 if m != nil {
338 return m.Name
339 }
340 return ""
341 }
342
343 func (m *ServiceAccountRule) GetOwner() []string {
344 if m != nil {
345 return m.Owner
346 }
347 return nil
348 }
349
297 func init() { 350 func init() {
298 proto.RegisterType((*TokenServerConfig)(nil), "tokenserver.admin.TokenSe rverConfig") 351 proto.RegisterType((*TokenServerConfig)(nil), "tokenserver.admin.TokenSe rverConfig")
299 proto.RegisterType((*CertificateAuthorityConfig)(nil), "tokenserver.admi n.CertificateAuthorityConfig") 352 proto.RegisterType((*CertificateAuthorityConfig)(nil), "tokenserver.admi n.CertificateAuthorityConfig")
300 proto.RegisterType((*DomainConfig)(nil), "tokenserver.admin.DomainConfig ") 353 proto.RegisterType((*DomainConfig)(nil), "tokenserver.admin.DomainConfig ")
301 proto.RegisterType((*DelegationPermissions)(nil), "tokenserver.admin.Del egationPermissions") 354 proto.RegisterType((*DelegationPermissions)(nil), "tokenserver.admin.Del egationPermissions")
302 proto.RegisterType((*DelegationRule)(nil), "tokenserver.admin.Delegation Rule") 355 proto.RegisterType((*DelegationRule)(nil), "tokenserver.admin.Delegation Rule")
356 proto.RegisterType((*ServiceAccountsPermissions)(nil), "tokenserver.admi n.ServiceAccountsPermissions")
357 proto.RegisterType((*ServiceAccountRule)(nil), "tokenserver.admin.Servic eAccountRule")
303 } 358 }
304 359
305 func init() { 360 func init() {
306 proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/admin/v1/con fig.proto", fileDescriptor2) 361 proto.RegisterFile("github.com/luci/luci-go/tokenserver/api/admin/v1/con fig.proto", fileDescriptor2)
307 } 362 }
308 363
309 var fileDescriptor2 = []byte{ 364 var fileDescriptor2 = []byte{
310 » // 539 bytes of a gzipped FileDescriptorProto 365 » // 574 bytes of a gzipped FileDescriptorProto
311 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x93, 0x5f, 0x6f, 0xd3, 0x3c, 366 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x93, 0x5f, 0x4b, 0x1b, 0x4d,
312 » 0x18, 0xc5, 0x95, 0x3f, 0xcd, 0x52, 0xbf, 0xdb, 0xde, 0xce, 0x74, 0xc3, 0x02, 0x24, 0x4a, 0x25, 367 » 0x14, 0xc6, 0x49, 0xb2, 0x89, 0x9b, 0x79, 0xd5, 0x37, 0x4e, 0xa3, 0x1d, 0x6c, 0xa1, 0x69, 0x40,
313 » 0xa4, 0x72, 0xb1, 0x46, 0x0c, 0x24, 0xae, 0xb8, 0x98, 0xd6, 0x9b, 0x55, 0x48, 0x4c, 0xd9, 0xe0, 368 » 0x48, 0x2f, 0x4c, 0xa8, 0x2d, 0xf4, 0xa2, 0xb4, 0x20, 0xe6, 0xc6, 0x50, 0xa8, 0xac, 0xb6, 0xd0,
314 » 0xd6, 0x72, 0x9d, 0xa7, 0xad, 0x35, 0xc7, 0xee, 0x1c, 0xbb, 0xdd, 0xbe, 0x07, 0x9f, 0x90, 0x4f, 369 » 0xab, 0x61, 0x9c, 0x3d, 0x26, 0x83, 0xb3, 0x33, 0x71, 0xfe, 0x18, 0xfd, 0x1e, 0xfd, 0x84, 0xfd,
315 » 0x82, 0xe2, 0x64, 0x74, 0x88, 0x72, 0x13, 0xc5, 0xe7, 0x77, 0x9e, 0xc7, 0x3a, 0x39, 0x0a, 0xfa, 370 » 0x24, 0x65, 0x67, 0xc7, 0x9a, 0x60, 0x0a, 0xbd, 0x09, 0x39, 0xcf, 0xef, 0x39, 0x67, 0x78, 0xce,
316 » 0xbc, 0x10, 0x76, 0xe9, 0x66, 0x63, 0xae, 0xcb, 0x4c, 0x3a, 0x2e, 0xfc, 0xe3, 0x74, 0xa1, 0x33, 371 » 0x61, 0xd1, 0xa7, 0xa9, 0x70, 0x33, 0x7f, 0x39, 0xe4, 0xba, 0x18, 0x49, 0xcf, 0x45, 0xf8, 0x39,
317 » 0xab, 0x6f, 0x41, 0x55, 0x60, 0xd6, 0x60, 0x32, 0xb6, 0x12, 0x19, 0x2b, 0x4a, 0xa1, 0xb2, 0xf5, 372 » 0x9c, 0xea, 0x91, 0xd3, 0xd7, 0xa0, 0x2c, 0x98, 0x5b, 0x30, 0x23, 0x36, 0x17, 0x23, 0x96, 0x17,
318 » 0xfb, 0x8c, 0x6b, 0x35, 0x17, 0x8b, 0xf1, 0xca, 0x68, 0xab, 0xf1, 0xd1, 0x13, 0xdb, 0xd8, 0x5b, 373 » 0x42, 0x8d, 0x6e, 0xdf, 0x8e, 0xb8, 0x56, 0x57, 0x62, 0x3a, 0x9c, 0x1b, 0xed, 0x34, 0xde, 0x59,
319 » 0x86, 0x1b, 0x74, 0x74, 0x53, 0x8b, 0xd7, 0x5e, 0xbc, 0xf0, 0x6e, 0x3c, 0x43, 0xc7, 0x1c, 0x8c, 374 » 0xb2, 0x0d, 0x83, 0xa5, 0xbf, 0x40, 0x3b, 0x17, 0xa5, 0x78, 0x1e, 0xc4, 0x93, 0xe0, 0xc6, 0x97,
320 » 0x15, 0x73, 0xc1, 0x99, 0x05, 0xca, 0x9c, 0x5d, 0x6a, 0x23, 0xec, 0x03, 0x09, 0x06, 0xd1, 0xe8, 375 » 0x68, 0x97, 0x83, 0x71, 0xe2, 0x4a, 0x70, 0xe6, 0x80, 0x32, 0xef, 0x66, 0xda, 0x08, 0x77, 0x4f,
321 » 0xbf, 0xb3, 0xd3, 0xf1, 0x5f, 0x7b, 0xc6, 0x17, 0x5b, 0xff, 0xf9, 0xa3, 0xbd, 0xd9, 0x96, 0xf7, 376 » 0x6a, 0xbd, 0xc6, 0xe0, 0xbf, 0xa3, 0xc3, 0xe1, 0x93, 0x39, 0xc3, 0x93, 0x47, 0xff, 0xf1, 0x83,
322 » 0xf9, 0x0e, 0x36, 0xfc, 0x19, 0xa0, 0x17, 0xff, 0x1e, 0xc2, 0x2f, 0x51, 0xd7, 0x29, 0x71, 0xe7, 377 » 0xbd, 0x9a, 0x96, 0x75, 0xf9, 0x1a, 0xd6, 0xff, 0x55, 0x43, 0xfb, 0x7f, 0x6f, 0xc2, 0x2f, 0x50,
323 » 0x80, 0x8a, 0x82, 0x24, 0x83, 0x60, 0x14, 0xe5, 0x69, 0x23, 0x5c, 0x16, 0xf8, 0x10, 0x85, 0x5c, 378 » 0xdb, 0x2b, 0x71, 0xe3, 0x81, 0x8a, 0x9c, 0xb4, 0x7a, 0xb5, 0x41, 0x23, 0x4b, 0x2b, 0xe1, 0x34,
324 » 0x91, 0x60, 0x10, 0x8c, 0xba, 0x79, 0xc8, 0x55, 0x6d, 0xae, 0xef, 0xa0, 0x2b, 0x66, 0x97, 0x24, 379 » 0xc7, 0xdb, 0xa8, 0xce, 0x15, 0xa9, 0xf5, 0x6a, 0x83, 0x76, 0x56, 0xe7, 0xaa, 0x34, 0x97, 0x6f,
325 » 0xf4, 0x72, 0x5a, 0x0b, 0x57, 0xcc, 0x2e, 0xf1, 0x73, 0xb4, 0xc7, 0x8d, 0xa4, 0xce, 0x48, 0x12, 380 » 0xd0, 0x39, 0x73, 0x33, 0x52, 0x0f, 0x72, 0x5a, 0x0a, 0x67, 0xcc, 0xcd, 0xf0, 0x73, 0xb4, 0xc1,
326 » 0x79, 0x94, 0x70, 0x23, 0xbf, 0x19, 0xe9, 0xaf, 0xa8, 0x80, 0xea, 0x3a, 0x1e, 0x89, 0x07, 0xc1, 381 » 0x8d, 0xa4, 0xde, 0x48, 0xd2, 0x08, 0xa8, 0xc5, 0x8d, 0xfc, 0x66, 0x64, 0x78, 0xc2, 0x02, 0xd5,
327 » 0x28, 0xcd, 0x53, 0x57, 0xc1, 0xd7, 0xfa, 0x8c, 0x27, 0xe8, 0xe0, 0x56, 0xe9, 0x8d, 0xa2, 0x85, 382 » 0x65, 0x3c, 0x92, 0xf4, 0x6a, 0x83, 0x34, 0x4b, 0xbd, 0x85, 0xaf, 0x65, 0x8d, 0xc7, 0x68, 0xeb,
328 » 0x2e, 0x99, 0x50, 0x15, 0xe9, 0xf8, 0xe8, 0xaf, 0x77, 0x44, 0x9f, 0x78, 0x47, 0x1b, 0x76, 0xdf, 383 » 0x5a, 0xe9, 0x85, 0xa2, 0xb9, 0x2e, 0x98, 0x50, 0x96, 0x34, 0x43, 0xf4, 0x57, 0x6b, 0xa2, 0x8f,
329 » 0x4f, 0x35, 0x52, 0x35, 0xb4, 0x68, 0xff, 0x29, 0xc5, 0x27, 0x28, 0x69, 0xf6, 0xf9, 0x2f, 0xd9, 384 » 0x83, 0x23, 0x86, 0xdd, 0x0c, 0x5d, 0x95, 0x64, 0xfb, 0x0e, 0x6d, 0x2e, 0x53, 0xbc, 0x87, 0x5a,
330 » 0xcd, 0xdb, 0x13, 0xfe, 0x88, 0x4e, 0x4a, 0xc6, 0x97, 0x42, 0x01, 0xf5, 0xfb, 0xa9, 0x14, 0x73, 385 » 0xd5, 0xbc, 0xb0, 0xc9, 0x76, 0x16, 0x2b, 0xfc, 0x1e, 0xed, 0x15, 0x8c, 0xcf, 0x84, 0x02, 0x1a,
331 » 0xb0, 0xa2, 0x04, 0xd2, 0xf1, 0xd1, 0xfb, 0x2d, 0xf5, 0x55, 0x7d, 0x69, 0xd9, 0x34, 0x4e, 0xc3, 386 » 0xe6, 0x53, 0x29, 0xae, 0xc0, 0x89, 0x02, 0x48, 0x33, 0x44, 0xef, 0x46, 0x1a, 0x4e, 0xf5, 0x25,
332 » 0x5e, 0x34, 0x8d, 0xd3, 0xa8, 0x17, 0x4f, 0xe3, 0x34, 0xee, 0x75, 0xa6, 0x71, 0x9a, 0xf4, 0xf6, 387 » 0xb2, 0x49, 0x92, 0xd6, 0x3b, 0x8d, 0x49, 0x92, 0x36, 0x3a, 0xc9, 0x24, 0x49, 0x93, 0x4e, 0x73,
333 » 0x86, 0x57, 0xe8, 0x78, 0x02, 0x12, 0x16, 0xcc, 0x0a, 0xad, 0xae, 0xc0, 0x94, 0xa2, 0xaa, 0x84, 388 » 0x92, 0xa4, 0xad, 0xce, 0x46, 0xff, 0x0c, 0xed, 0x8e, 0x41, 0xc2, 0x94, 0x39, 0xa1, 0xd5, 0x19,
334 » 0x56, 0x15, 0xfe, 0x84, 0x3a, 0xc6, 0x49, 0xa8, 0xda, 0x1e, 0xdf, 0xec, 0x0a, 0xf3, 0x7b, 0x30, 389 » 0x98, 0x42, 0x58, 0x2b, 0xb4, 0xb2, 0xf8, 0x03, 0x6a, 0x1a, 0x2f, 0xc1, 0xc6, 0x3b, 0xbe, 0x5e,
335 » 0x77, 0x12, 0xf2, 0xc6, 0x3f, 0xfc, 0x11, 0xa2, 0xc3, 0x3f, 0x09, 0xc6, 0x28, 0x56, 0xac, 0x84, 390 » 0x17, 0xe6, 0x4f, 0x63, 0xe6, 0x25, 0x64, 0x95, 0xbf, 0xff, 0xb3, 0x8e, 0xb6, 0x57, 0x09, 0xc6,
336 » 0xb6, 0x05, 0xff, 0x8e, 0xfb, 0xa8, 0xa3, 0x37, 0x0a, 0x0c, 0x09, 0x7d, 0xba, 0xe6, 0x80, 0x5f, 391 » 0x28, 0x51, 0xac, 0x80, 0x78, 0x85, 0xf0, 0x1f, 0x77, 0x51, 0x53, 0x2f, 0x14, 0x18, 0x52, 0x0f,
337 » 0xa1, 0xae, 0x81, 0x3b, 0x07, 0x95, 0xd5, 0x86, 0x44, 0x9e, 0x6c, 0x85, 0x3a, 0x3a, 0x93, 0x52, 392 » 0xe9, 0xaa, 0x02, 0xbf, 0x44, 0x6d, 0x03, 0x37, 0x1e, 0xac, 0xd3, 0x86, 0x34, 0x02, 0x79, 0x14,
338 » 0x6f, 0xa0, 0xa0, 0x56, 0x53, 0x51, 0xae, 0xc0, 0x54, 0x5a, 0x31, 0x0b, 0x24, 0xf6, 0xd6, 0x7e, 393 » 0xca, 0xe8, 0x4c, 0x4a, 0xbd, 0x80, 0x9c, 0x3a, 0x4d, 0x45, 0x31, 0x07, 0x63, 0xb5, 0x62, 0x0e,
339 » 0x4b, 0x6f, 0xf4, 0xe5, 0x96, 0xe1, 0x77, 0xa8, 0xf7, 0x38, 0xc5, 0x5c, 0x21, 0x40, 0x71, 0xf0, 394 » 0x48, 0x12, 0xac, 0xdd, 0x48, 0x2f, 0xf4, 0xe9, 0x23, 0xc3, 0x6f, 0x50, 0xe7, 0xa1, 0x8b, 0xf9,
340 » 0x0d, 0x75, 0xf3, 0xff, 0x5b, 0xfd, 0xbc, 0x95, 0xf1, 0x5b, 0x74, 0x68, 0x99, 0x59, 0x80, 0xa5, 395 » 0x5c, 0x80, 0xe2, 0x10, 0x2e, 0xd4, 0xce, 0xfe, 0x8f, 0xfa, 0x71, 0x94, 0xf1, 0x01, 0xda, 0x76,
341 » 0x75, 0x50, 0xc1, 0x81, 0x24, 0xde, 0x78, 0xd0, 0xa8, 0xd7, 0x8d, 0x88, 0xcf, 0xd0, 0x71, 0xc9, 396 » 0xcc, 0x4c, 0xc1, 0xd1, 0x32, 0xa8, 0xe0, 0x40, 0x5a, 0xc1, 0xb8, 0x55, 0xa9, 0xe7, 0x95, 0x88,
342 » 0xee, 0xe9, 0x9a, 0x49, 0x51, 0x08, 0xfb, 0x40, 0x0b, 0x67, 0x7c, 0x58, 0xb2, 0xe7, 0x1b, 0x78, 397 » 0x8f, 0xd0, 0x6e, 0xc1, 0xee, 0xe8, 0x2d, 0x93, 0x22, 0x17, 0xee, 0x9e, 0xe6, 0xde, 0x84, 0xb0,
343 » 0x56, 0xb2, 0xfb, 0xef, 0x2d, 0x9b, 0xb4, 0x68, 0x96, 0xf8, 0xdf, 0xea, 0xc3, 0xaf, 0x00, 0x00, 398 » 0x64, 0x23, 0x5c, 0xe0, 0x59, 0xc1, 0xee, 0xbe, 0x47, 0x36, 0x8e, 0xa8, 0xff, 0x03, 0xed, 0xc7,
344 » 0x00, 0xff, 0xff, 0x68, 0x96, 0x3b, 0x9b, 0x97, 0x03, 0x00, 0x00, 399 » 0xf6, 0x63, 0xce, 0xb5, 0x57, 0xce, 0x2e, 0x6f, 0xfb, 0xe3, 0xea, 0xb6, 0x0f, 0xd6, 0x6c, 0x7b,
400 » 0xb5, 0x7b, 0x79, 0xe3, 0x9f, 0x11, 0x7e, 0x0a, 0xff, 0x7d, 0xe9, 0x97, 0xad, 0xf0, 0xc5, 0xbf,
401 » 0xfb, 0x1d, 0x00, 0x00, 0xff, 0xff, 0xfa, 0x79, 0xa6, 0xb9, 0x32, 0x04, 0x00, 0x00,
345 } 402 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698