blob: 234012bc666432306b7092ab7b712b6fbbc7ce89 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/tokenserver/api/admin/v1/config.proto
package admin
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// TokenServerConfig is read from tokenserver.cfg in luci-config.
type TokenServerConfig struct {
// List of CAs we trust.
CertificateAuthority []*CertificateAuthorityConfig `protobuf:"bytes,1,rep,name=certificate_authority,json=certificateAuthority,proto3" json:"certificate_authority,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TokenServerConfig) Reset() { *m = TokenServerConfig{} }
func (m *TokenServerConfig) String() string { return proto.CompactTextString(m) }
func (*TokenServerConfig) ProtoMessage() {}
func (*TokenServerConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{0}
}
func (m *TokenServerConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TokenServerConfig.Unmarshal(m, b)
}
func (m *TokenServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TokenServerConfig.Marshal(b, m, deterministic)
}
func (m *TokenServerConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_TokenServerConfig.Merge(m, src)
}
func (m *TokenServerConfig) XXX_Size() int {
return xxx_messageInfo_TokenServerConfig.Size(m)
}
func (m *TokenServerConfig) XXX_DiscardUnknown() {
xxx_messageInfo_TokenServerConfig.DiscardUnknown(m)
}
var xxx_messageInfo_TokenServerConfig proto.InternalMessageInfo
func (m *TokenServerConfig) GetCertificateAuthority() []*CertificateAuthorityConfig {
if m != nil {
return m.CertificateAuthority
}
return nil
}
// CertificateAuthorityConfig defines a single CA we trust.
//
// Such CA issues certificates for nodes that use The Token Service. Each node
// has a private key and certificate with Common Name set to the FQDN of this
// node, e.g. "CN=slave43-c1.c.chromecompute.google.com.internal".
//
// The Token Server uses this CN to derive an identity string for a machine. It
// splits FQDN into a hostname ("slave43-c1") and a domain name
// ("c.chromecompute.google.com.internal"), searches for a domain name in
// "known_domains" set, and, if it is present, uses parameters described there
// for generating a token that contains machine's FQDN and certificate serial
// number (among other things, see MachineTokenBody in machine_token.proto).
type CertificateAuthorityConfig struct {
UniqueId int64 `protobuf:"varint,6,opt,name=unique_id,json=uniqueId,proto3" json:"unique_id,omitempty"`
Cn string `protobuf:"bytes,1,opt,name=cn,proto3" json:"cn,omitempty"`
CertPath string `protobuf:"bytes,2,opt,name=cert_path,json=certPath,proto3" json:"cert_path,omitempty"`
CrlUrl string `protobuf:"bytes,3,opt,name=crl_url,json=crlUrl,proto3" json:"crl_url,omitempty"`
UseOauth bool `protobuf:"varint,4,opt,name=use_oauth,json=useOauth,proto3" json:"use_oauth,omitempty"`
OauthScopes []string `protobuf:"bytes,7,rep,name=oauth_scopes,json=oauthScopes,proto3" json:"oauth_scopes,omitempty"`
// KnownDomains describes parameters to use for each particular domain.
KnownDomains []*DomainConfig `protobuf:"bytes,5,rep,name=known_domains,json=knownDomains,proto3" json:"known_domains,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CertificateAuthorityConfig) Reset() { *m = CertificateAuthorityConfig{} }
func (m *CertificateAuthorityConfig) String() string { return proto.CompactTextString(m) }
func (*CertificateAuthorityConfig) ProtoMessage() {}
func (*CertificateAuthorityConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{1}
}
func (m *CertificateAuthorityConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CertificateAuthorityConfig.Unmarshal(m, b)
}
func (m *CertificateAuthorityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CertificateAuthorityConfig.Marshal(b, m, deterministic)
}
func (m *CertificateAuthorityConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_CertificateAuthorityConfig.Merge(m, src)
}
func (m *CertificateAuthorityConfig) XXX_Size() int {
return xxx_messageInfo_CertificateAuthorityConfig.Size(m)
}
func (m *CertificateAuthorityConfig) XXX_DiscardUnknown() {
xxx_messageInfo_CertificateAuthorityConfig.DiscardUnknown(m)
}
var xxx_messageInfo_CertificateAuthorityConfig proto.InternalMessageInfo
func (m *CertificateAuthorityConfig) GetUniqueId() int64 {
if m != nil {
return m.UniqueId
}
return 0
}
func (m *CertificateAuthorityConfig) GetCn() string {
if m != nil {
return m.Cn
}
return ""
}
func (m *CertificateAuthorityConfig) GetCertPath() string {
if m != nil {
return m.CertPath
}
return ""
}
func (m *CertificateAuthorityConfig) GetCrlUrl() string {
if m != nil {
return m.CrlUrl
}
return ""
}
func (m *CertificateAuthorityConfig) GetUseOauth() bool {
if m != nil {
return m.UseOauth
}
return false
}
func (m *CertificateAuthorityConfig) GetOauthScopes() []string {
if m != nil {
return m.OauthScopes
}
return nil
}
func (m *CertificateAuthorityConfig) GetKnownDomains() []*DomainConfig {
if m != nil {
return m.KnownDomains
}
return nil
}
// DomainConfig is used inside CertificateAuthorityConfig.
type DomainConfig struct {
// Domain is domain names of hosts this config applies to.
//
// Machines that reside in a subdomain of given domain are also considered
// part of it, e.g. both FQDNs "host.example.com" and "host.abc.example.com"
// match domain "example.com".
Domain []string `protobuf:"bytes,1,rep,name=domain,proto3" json:"domain,omitempty"`
// MachineTokenLifetime is how long generated machine tokens live, in seconds.
//
// If 0, machine tokens are not allowed.
MachineTokenLifetime int64 `protobuf:"varint,5,opt,name=machine_token_lifetime,json=machineTokenLifetime,proto3" json:"machine_token_lifetime,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DomainConfig) Reset() { *m = DomainConfig{} }
func (m *DomainConfig) String() string { return proto.CompactTextString(m) }
func (*DomainConfig) ProtoMessage() {}
func (*DomainConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{2}
}
func (m *DomainConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DomainConfig.Unmarshal(m, b)
}
func (m *DomainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DomainConfig.Marshal(b, m, deterministic)
}
func (m *DomainConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_DomainConfig.Merge(m, src)
}
func (m *DomainConfig) XXX_Size() int {
return xxx_messageInfo_DomainConfig.Size(m)
}
func (m *DomainConfig) XXX_DiscardUnknown() {
xxx_messageInfo_DomainConfig.DiscardUnknown(m)
}
var xxx_messageInfo_DomainConfig proto.InternalMessageInfo
func (m *DomainConfig) GetDomain() []string {
if m != nil {
return m.Domain
}
return nil
}
func (m *DomainConfig) GetMachineTokenLifetime() int64 {
if m != nil {
return m.MachineTokenLifetime
}
return 0
}
// DelegationPermissions is read from delegation.cfg in luci-config.
type DelegationPermissions struct {
// Rules specify what calls to MintDelegationToken are allowed.
//
// Rules are evaluated independently. One and only one rule should match the
// request to allow the operation. If none rules or more than one rule match,
// the request will be denied.
//
// See DelegationRule comments for more details.
Rules []*DelegationRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DelegationPermissions) Reset() { *m = DelegationPermissions{} }
func (m *DelegationPermissions) String() string { return proto.CompactTextString(m) }
func (*DelegationPermissions) ProtoMessage() {}
func (*DelegationPermissions) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{3}
}
func (m *DelegationPermissions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelegationPermissions.Unmarshal(m, b)
}
func (m *DelegationPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelegationPermissions.Marshal(b, m, deterministic)
}
func (m *DelegationPermissions) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelegationPermissions.Merge(m, src)
}
func (m *DelegationPermissions) XXX_Size() int {
return xxx_messageInfo_DelegationPermissions.Size(m)
}
func (m *DelegationPermissions) XXX_DiscardUnknown() {
xxx_messageInfo_DelegationPermissions.DiscardUnknown(m)
}
var xxx_messageInfo_DelegationPermissions proto.InternalMessageInfo
func (m *DelegationPermissions) GetRules() []*DelegationRule {
if m != nil {
return m.Rules
}
return nil
}
// DelegationRule describes a single allowed case of using delegation tokens.
//
// 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.
// * 'services' - a set of services that should accept the token.
//
// A request matches a rule iff:
// * 'requestor_id' is in 'requestor' set.
// * 'delegated_identity' is in 'allowed_to_impersonate' set.
// * 'audience' is a subset of 'allowed_audience' set.
// * 'services' is a subset of 'target_service' set.
//
// The presence of a matching rule permits to mint the token. The rule also
// provides an upper bound on allowed validity_duration, and the rule's name
// is logged in the audit trail.
type DelegationRule struct {
// A descriptive name of this rule, for the audit log.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Email of developers that own this rule, to know who to contact.
Owner []string `protobuf:"bytes,2,rep,name=owner,proto3" 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,proto3" 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>").
// * A special identifier "REQUESTOR" that is substituted by the requestor
// identity when evaluating the rule.
//
// "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,proto3" 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,proto3" json:"allowed_audience,omitempty"`
// A set of services that should be able to accept the new token.
//
// 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,proto3" json:"target_service,omitempty"`
// Maximum allowed validity duration (sec) of minted delegation tokens.
//
// Default is 12 hours.
MaxValidityDuration int64 `protobuf:"varint,7,opt,name=max_validity_duration,json=maxValidityDuration,proto3" json:"max_validity_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DelegationRule) Reset() { *m = DelegationRule{} }
func (m *DelegationRule) String() string { return proto.CompactTextString(m) }
func (*DelegationRule) ProtoMessage() {}
func (*DelegationRule) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{4}
}
func (m *DelegationRule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DelegationRule.Unmarshal(m, b)
}
func (m *DelegationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DelegationRule.Marshal(b, m, deterministic)
}
func (m *DelegationRule) XXX_Merge(src proto.Message) {
xxx_messageInfo_DelegationRule.Merge(m, src)
}
func (m *DelegationRule) XXX_Size() int {
return xxx_messageInfo_DelegationRule.Size(m)
}
func (m *DelegationRule) XXX_DiscardUnknown() {
xxx_messageInfo_DelegationRule.DiscardUnknown(m)
}
var xxx_messageInfo_DelegationRule proto.InternalMessageInfo
func (m *DelegationRule) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *DelegationRule) GetOwner() []string {
if m != nil {
return m.Owner
}
return nil
}
func (m *DelegationRule) GetRequestor() []string {
if m != nil {
return m.Requestor
}
return nil
}
func (m *DelegationRule) GetAllowedToImpersonate() []string {
if m != nil {
return m.AllowedToImpersonate
}
return nil
}
func (m *DelegationRule) GetAllowedAudience() []string {
if m != nil {
return m.AllowedAudience
}
return nil
}
func (m *DelegationRule) GetTargetService() []string {
if m != nil {
return m.TargetService
}
return nil
}
func (m *DelegationRule) GetMaxValidityDuration() int64 {
if m != nil {
return m.MaxValidityDuration
}
return 0
}
// ServiceAccountsPermissions is read from service_accounts.cfg in luci-config.
type ServiceAccountsPermissions struct {
// Rules specify how MintOAuthTokenViaGrant can be used.
//
// Rules define a mapping {service account email -> authorization config},
// where 'service account email' is matched to a set of emails specified via
// 'service_account' and 'service_account_group' fields of ServiceAccountRule,
// and 'authorization config' is the rest of fields in ServiceAccountRule that
// define how exactly the given service account is allowed to be used.
//
// If a service account email matches two (or more) rules, perhaps via
// different groups, an error will be returned. Ambiguity is not allowed.
//
// See ServiceAccountRule comments for more details.
Rules []*ServiceAccountRule `protobuf:"bytes,1,rep,name=rules,proto3" json:"rules,omitempty"`
// Defaults specifies some default values applied to all rules, to reduce
// duplication.
//
// See docs for individual fields to figure out how defaults are merged into
// the rules.
Defaults *ServiceAccountRuleDefaults `protobuf:"bytes,2,opt,name=defaults,proto3" json:"defaults,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceAccountsPermissions) Reset() { *m = ServiceAccountsPermissions{} }
func (m *ServiceAccountsPermissions) String() string { return proto.CompactTextString(m) }
func (*ServiceAccountsPermissions) ProtoMessage() {}
func (*ServiceAccountsPermissions) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{5}
}
func (m *ServiceAccountsPermissions) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAccountsPermissions.Unmarshal(m, b)
}
func (m *ServiceAccountsPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAccountsPermissions.Marshal(b, m, deterministic)
}
func (m *ServiceAccountsPermissions) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAccountsPermissions.Merge(m, src)
}
func (m *ServiceAccountsPermissions) XXX_Size() int {
return xxx_messageInfo_ServiceAccountsPermissions.Size(m)
}
func (m *ServiceAccountsPermissions) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceAccountsPermissions.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceAccountsPermissions proto.InternalMessageInfo
func (m *ServiceAccountsPermissions) GetRules() []*ServiceAccountRule {
if m != nil {
return m.Rules
}
return nil
}
func (m *ServiceAccountsPermissions) GetDefaults() *ServiceAccountRuleDefaults {
if m != nil {
return m.Defaults
}
return nil
}
// ServiceAccountRule describes a single allowed case of using service accounts.
//
// The usage of a service account is initiated by an end user, through some
// "proxy" service. For example, when a user posts a Swarming task that uses
// a service account, the end user is whoever posts the task, and the proxy is
// Swarming service itself.
//
// This rule specifies which end users are allowed to act as an account, and
// through which proxies.
//
// Some proxies can be declared as "trusted", in which case they are allowed to
// use any service account declared by the rule, regardless of an end user.
type ServiceAccountRule struct {
// A descriptive name of this rule, for the audit log.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Email of developers that own this rule, to know who to contact.
Owner []string `protobuf:"bytes,2,rep,name=owner,proto3" json:"owner,omitempty"`
// Email of service accounts that this rule applies to.
//
// Can be used to explicitly list service accounts in the config.
ServiceAccount []string `protobuf:"bytes,3,rep,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// Name of a group with service account emails this rules applies to.
//
// Works in addition to the explicit service account listing.
ServiceAccountGroup []string `protobuf:"bytes,9,rep,name=service_account_group,json=serviceAccountGroup,proto3" json:"service_account_group,omitempty"`
// OAuth scopes we allow to be granted to the OAuth token.
//
// Any subset of given scopes is allowed. This field is evaluated in
// MintOAuthTokenViaGrant RPC handler, right before generating the OAuth
// token.
//
// Merged with corresponding list from ServiceAccountRuleDefaults.
AllowedScope []string `protobuf:"bytes,4,rep,name=allowed_scope,json=allowedScope,proto3" json:"allowed_scope,omitempty"`
// A set of identities that are allowed to act as the service account (perhaps
// indirectly through some other intermediary "proxy" service like Swarming).
//
// Users listed here are ultimately able to grab an OAuth token belonging to
// the service account.
//
// Each element is either:
// * An identity string ("user:<email>").
// * A group reference ("group:<name>").
EndUser []string `protobuf:"bytes,5,rep,name=end_user,json=endUser,proto3" json:"end_user,omitempty"`
// A set of identities that are allowed to act on behalf of end users when
// grabbing an OAuth token for the service account.
//
// These identities represent "proxy" services that do something with service
// accounts on behalf of end users. Only identities in this set are allowed
// to perform MintOAuthTokenGrant RPC.
//
// Each element is either:
// * An identity string ("user:<email>").
// * A group reference ("group:<name>").
Proxy []string `protobuf:"bytes,6,rep,name=proxy,proto3" json:"proxy,omitempty"`
// Same as 'proxy', except for proxies specified here the end_user check is
// skipped: these proxies can grab a token for _any_ service account listed
// in the rule, regardless of who the end user is.
//
// The trusted proxies are assumed to authorize the end user already and
// the token server trusts this decision (thus the name of the field).
TrustedProxy []string `protobuf:"bytes,8,rep,name=trusted_proxy,json=trustedProxy,proto3" json:"trusted_proxy,omitempty"`
// Maximum allowed validity duration (sec) of OAuth token grants.
//
// The grant is minted by MintOAuthTokenGrant RPC (called, for example, when
// Swarming task is posted), and checked by MintOAuthTokenViaGrant RPC (called
// when the task actually runs). So the allowed validity duration should
// account for possible queuing delays.
//
// This duration has no relation to the OAuth token lifetime. The OAuth token
// produced by MintOAuthTokenViaGrant can always live up to 1h regardless of
// validity duration of the grant.
//
// Default is taken from ServiceAccountRuleDefaults or 48 hours if not
// specified there.
MaxGrantValidityDuration int64 `protobuf:"varint,7,opt,name=max_grant_validity_duration,json=maxGrantValidityDuration,proto3" json:"max_grant_validity_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceAccountRule) Reset() { *m = ServiceAccountRule{} }
func (m *ServiceAccountRule) String() string { return proto.CompactTextString(m) }
func (*ServiceAccountRule) ProtoMessage() {}
func (*ServiceAccountRule) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{6}
}
func (m *ServiceAccountRule) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAccountRule.Unmarshal(m, b)
}
func (m *ServiceAccountRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAccountRule.Marshal(b, m, deterministic)
}
func (m *ServiceAccountRule) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAccountRule.Merge(m, src)
}
func (m *ServiceAccountRule) XXX_Size() int {
return xxx_messageInfo_ServiceAccountRule.Size(m)
}
func (m *ServiceAccountRule) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceAccountRule.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceAccountRule proto.InternalMessageInfo
func (m *ServiceAccountRule) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ServiceAccountRule) GetOwner() []string {
if m != nil {
return m.Owner
}
return nil
}
func (m *ServiceAccountRule) GetServiceAccount() []string {
if m != nil {
return m.ServiceAccount
}
return nil
}
func (m *ServiceAccountRule) GetServiceAccountGroup() []string {
if m != nil {
return m.ServiceAccountGroup
}
return nil
}
func (m *ServiceAccountRule) GetAllowedScope() []string {
if m != nil {
return m.AllowedScope
}
return nil
}
func (m *ServiceAccountRule) GetEndUser() []string {
if m != nil {
return m.EndUser
}
return nil
}
func (m *ServiceAccountRule) GetProxy() []string {
if m != nil {
return m.Proxy
}
return nil
}
func (m *ServiceAccountRule) GetTrustedProxy() []string {
if m != nil {
return m.TrustedProxy
}
return nil
}
func (m *ServiceAccountRule) GetMaxGrantValidityDuration() int64 {
if m != nil {
return m.MaxGrantValidityDuration
}
return 0
}
// ServiceAccountRuleDefaults specifies some default values applied to all
// service account rules, to reduce duplication.
type ServiceAccountRuleDefaults struct {
// OAuth scopes we allow to be granted to all generated OAuth tokens.
//
// Always merged with 'allowed_scope' fields of ServiceAccountRule rule to
// get the final list of scopes.
AllowedScope []string `protobuf:"bytes,1,rep,name=allowed_scope,json=allowedScope,proto3" json:"allowed_scope,omitempty"`
// Default value for corresponding ServiceAccountRule field, if not specified
// there.
//
// Default is 48 hours.
MaxGrantValidityDuration int64 `protobuf:"varint,2,opt,name=max_grant_validity_duration,json=maxGrantValidityDuration,proto3" json:"max_grant_validity_duration,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ServiceAccountRuleDefaults) Reset() { *m = ServiceAccountRuleDefaults{} }
func (m *ServiceAccountRuleDefaults) String() string { return proto.CompactTextString(m) }
func (*ServiceAccountRuleDefaults) ProtoMessage() {}
func (*ServiceAccountRuleDefaults) Descriptor() ([]byte, []int) {
return fileDescriptor_aeb7d66bba60fd47, []int{7}
}
func (m *ServiceAccountRuleDefaults) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ServiceAccountRuleDefaults.Unmarshal(m, b)
}
func (m *ServiceAccountRuleDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ServiceAccountRuleDefaults.Marshal(b, m, deterministic)
}
func (m *ServiceAccountRuleDefaults) XXX_Merge(src proto.Message) {
xxx_messageInfo_ServiceAccountRuleDefaults.Merge(m, src)
}
func (m *ServiceAccountRuleDefaults) XXX_Size() int {
return xxx_messageInfo_ServiceAccountRuleDefaults.Size(m)
}
func (m *ServiceAccountRuleDefaults) XXX_DiscardUnknown() {
xxx_messageInfo_ServiceAccountRuleDefaults.DiscardUnknown(m)
}
var xxx_messageInfo_ServiceAccountRuleDefaults proto.InternalMessageInfo
func (m *ServiceAccountRuleDefaults) GetAllowedScope() []string {
if m != nil {
return m.AllowedScope
}
return nil
}
func (m *ServiceAccountRuleDefaults) GetMaxGrantValidityDuration() int64 {
if m != nil {
return m.MaxGrantValidityDuration
}
return 0
}
func init() {
proto.RegisterType((*TokenServerConfig)(nil), "tokenserver.admin.TokenServerConfig")
proto.RegisterType((*CertificateAuthorityConfig)(nil), "tokenserver.admin.CertificateAuthorityConfig")
proto.RegisterType((*DomainConfig)(nil), "tokenserver.admin.DomainConfig")
proto.RegisterType((*DelegationPermissions)(nil), "tokenserver.admin.DelegationPermissions")
proto.RegisterType((*DelegationRule)(nil), "tokenserver.admin.DelegationRule")
proto.RegisterType((*ServiceAccountsPermissions)(nil), "tokenserver.admin.ServiceAccountsPermissions")
proto.RegisterType((*ServiceAccountRule)(nil), "tokenserver.admin.ServiceAccountRule")
proto.RegisterType((*ServiceAccountRuleDefaults)(nil), "tokenserver.admin.ServiceAccountRuleDefaults")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/tokenserver/api/admin/v1/config.proto", fileDescriptor_aeb7d66bba60fd47)
}
var fileDescriptor_aeb7d66bba60fd47 = []byte{
// 755 bytes of a gzipped FileDescriptorProto
0x1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