luci: go.chromium.org/luci/tokenserver/api/admin/v1 Index | Files

package admin

import "go.chromium.org/luci/tokenserver/api/admin/v1"

Package admin contains The Token Server Administrative and Config API.

Services defined here are used by service administrators.

Index

Package Files

admin.pb.go adminserver_dec.go certificate_authorities.pb.go certificateauthoritiesserver_dec.go config.pb.go gen.go pb.discovery.go

func FileDescriptorSet Uses

func FileDescriptorSet() *descriptor.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterAdminServer Uses

func RegisterAdminServer(s prpc.Registrar, srv AdminServer)

func RegisterCertificateAuthoritiesServer Uses

func RegisterCertificateAuthoritiesServer(s prpc.Registrar, srv CertificateAuthoritiesServer)

type AdminClient Uses

type AdminClient interface {
    // ImportCAConfigs makes the server read 'tokenserver.cfg'.
    ImportCAConfigs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error)
    // ImportDelegationConfigs makes the server read 'delegation.cfg'.
    ImportDelegationConfigs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error)
    // ImportServiceAccountsConfigs makes the server read 'service_accounts.cfg'.
    ImportServiceAccountsConfigs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ImportedConfigs, error)
    // InspectMachineToken decodes a machine token and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time and revocation status.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. it checks for revocation status even if token is already
    // expired).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectMachineTokenResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectMachineToken(ctx context.Context, in *InspectMachineTokenRequest, opts ...grpc.CallOption) (*InspectMachineTokenResponse, error)
    // InspectDelegationToken decodes a delegation token and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. attempts to decode the body even if the signing key has been
    // rotated already).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectDelegationTokenResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectDelegationToken(ctx context.Context, in *InspectDelegationTokenRequest, opts ...grpc.CallOption) (*InspectDelegationTokenResponse, error)
    // InspectOAuthTokenGrant decodes OAuth token grant and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. attempts to decode the body even if the signing key has been
    // rotated already).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectOAuthTokenGrantResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectOAuthTokenGrant(ctx context.Context, in *InspectOAuthTokenGrantRequest, opts ...grpc.CallOption) (*InspectOAuthTokenGrantResponse, error)
}

AdminClient is the client API for Admin service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewAdminClient Uses

func NewAdminClient(cc *grpc.ClientConn) AdminClient

func NewAdminPRPCClient Uses

func NewAdminPRPCClient(client *prpc.Client) AdminClient

type AdminServer Uses

type AdminServer interface {
    // ImportCAConfigs makes the server read 'tokenserver.cfg'.
    ImportCAConfigs(context.Context, *empty.Empty) (*ImportedConfigs, error)
    // ImportDelegationConfigs makes the server read 'delegation.cfg'.
    ImportDelegationConfigs(context.Context, *empty.Empty) (*ImportedConfigs, error)
    // ImportServiceAccountsConfigs makes the server read 'service_accounts.cfg'.
    ImportServiceAccountsConfigs(context.Context, *empty.Empty) (*ImportedConfigs, error)
    // InspectMachineToken decodes a machine token and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time and revocation status.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. it checks for revocation status even if token is already
    // expired).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectMachineTokenResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectMachineToken(context.Context, *InspectMachineTokenRequest) (*InspectMachineTokenResponse, error)
    // InspectDelegationToken decodes a delegation token and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. attempts to decode the body even if the signing key has been
    // rotated already).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectDelegationTokenResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectDelegationToken(context.Context, *InspectDelegationTokenRequest) (*InspectDelegationTokenResponse, error)
    // InspectOAuthTokenGrant decodes OAuth token grant and verifies it is valid.
    //
    // It verifies the token was signed by a private key of the token server and
    // checks token's expiration time.
    //
    // It tries to give as much information about the token and its status as
    // possible (e.g. attempts to decode the body even if the signing key has been
    // rotated already).
    //
    // Administrators can use this call to debug issues with tokens.
    //
    // Returns:
    //   InspectOAuthTokenGrantResponse for tokens of supported kind.
    //   grpc.InvalidArgument error for unsupported token kind.
    //   grpc.Internal error for transient errors.
    InspectOAuthTokenGrant(context.Context, *InspectOAuthTokenGrantRequest) (*InspectOAuthTokenGrantResponse, error)
}

AdminServer is the server API for Admin service.

type CRLStatus Uses

type CRLStatus struct {
    LastUpdateTime       *timestamp.Timestamp `protobuf:"bytes,1,opt,name=last_update_time,json=lastUpdateTime" json:"last_update_time,omitempty"`
    LastFetchTime        *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_fetch_time,json=lastFetchTime" json:"last_fetch_time,omitempty"`
    LastFetchEtag        string               `protobuf:"bytes,3,opt,name=last_fetch_etag,json=lastFetchEtag" json:"last_fetch_etag,omitempty"`
    RevokedCertsCount    int64                `protobuf:"varint,4,opt,name=revoked_certs_count,json=revokedCertsCount" json:"revoked_certs_count,omitempty"`
    XXX_NoUnkeyedLiteral struct{}             `json:"-"`
    XXX_unrecognized     []byte               `json:"-"`
    XXX_sizecache        int32                `json:"-"`
}

CRLStatus describes the latest known state of imported CRL.

func (*CRLStatus) Descriptor Uses

func (*CRLStatus) Descriptor() ([]byte, []int)

func (*CRLStatus) GetLastFetchEtag Uses

func (m *CRLStatus) GetLastFetchEtag() string

func (*CRLStatus) GetLastFetchTime Uses

func (m *CRLStatus) GetLastFetchTime() *timestamp.Timestamp

func (*CRLStatus) GetLastUpdateTime Uses

func (m *CRLStatus) GetLastUpdateTime() *timestamp.Timestamp

func (*CRLStatus) GetRevokedCertsCount Uses

func (m *CRLStatus) GetRevokedCertsCount() int64

func (*CRLStatus) ProtoMessage Uses

func (*CRLStatus) ProtoMessage()

func (*CRLStatus) Reset Uses

func (m *CRLStatus) Reset()

func (*CRLStatus) String Uses

func (m *CRLStatus) String() string

func (*CRLStatus) XXX_DiscardUnknown Uses

func (m *CRLStatus) XXX_DiscardUnknown()

func (*CRLStatus) XXX_Marshal Uses

func (m *CRLStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CRLStatus) XXX_Merge Uses

func (dst *CRLStatus) XXX_Merge(src proto.Message)

func (*CRLStatus) XXX_Size Uses

func (m *CRLStatus) XXX_Size() int

func (*CRLStatus) XXX_Unmarshal Uses

func (m *CRLStatus) XXX_Unmarshal(b []byte) error

type CertificateAuthoritiesClient Uses

type CertificateAuthoritiesClient interface {
    // FetchCRL makes the server fetch a CRL for some CA.
    FetchCRL(ctx context.Context, in *FetchCRLRequest, opts ...grpc.CallOption) (*FetchCRLResponse, error)
    // ListCAs returns a list of Common Names of registered CAs.
    ListCAs(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ListCAsResponse, error)
    // GetCAStatus returns configuration of some CA defined in the config.
    GetCAStatus(ctx context.Context, in *GetCAStatusRequest, opts ...grpc.CallOption) (*GetCAStatusResponse, error)
    // IsRevokedCert says whether a certificate serial number is in the CRL.
    IsRevokedCert(ctx context.Context, in *IsRevokedCertRequest, opts ...grpc.CallOption) (*IsRevokedCertResponse, error)
    // CheckCertificate says whether a certificate is valid or not.
    CheckCertificate(ctx context.Context, in *CheckCertificateRequest, opts ...grpc.CallOption) (*CheckCertificateResponse, error)
}

CertificateAuthoritiesClient is the client API for CertificateAuthorities service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewCertificateAuthoritiesClient Uses

func NewCertificateAuthoritiesClient(cc *grpc.ClientConn) CertificateAuthoritiesClient

func NewCertificateAuthoritiesPRPCClient Uses

func NewCertificateAuthoritiesPRPCClient(client *prpc.Client) CertificateAuthoritiesClient

type CertificateAuthoritiesServer Uses

type CertificateAuthoritiesServer interface {
    // FetchCRL makes the server fetch a CRL for some CA.
    FetchCRL(context.Context, *FetchCRLRequest) (*FetchCRLResponse, error)
    // ListCAs returns a list of Common Names of registered CAs.
    ListCAs(context.Context, *empty.Empty) (*ListCAsResponse, error)
    // GetCAStatus returns configuration of some CA defined in the config.
    GetCAStatus(context.Context, *GetCAStatusRequest) (*GetCAStatusResponse, error)
    // IsRevokedCert says whether a certificate serial number is in the CRL.
    IsRevokedCert(context.Context, *IsRevokedCertRequest) (*IsRevokedCertResponse, error)
    // CheckCertificate says whether a certificate is valid or not.
    CheckCertificate(context.Context, *CheckCertificateRequest) (*CheckCertificateResponse, error)
}

CertificateAuthoritiesServer is the server API for CertificateAuthorities service.

type CertificateAuthorityConfig Uses

type CertificateAuthorityConfig struct {
    UniqueId    int64    `protobuf:"varint,6,opt,name=unique_id,json=uniqueId" json:"unique_id,omitempty"`
    Cn          string   `protobuf:"bytes,1,opt,name=cn" json:"cn,omitempty"`
    CertPath    string   `protobuf:"bytes,2,opt,name=cert_path,json=certPath" json:"cert_path,omitempty"`
    CrlUrl      string   `protobuf:"bytes,3,opt,name=crl_url,json=crlUrl" json:"crl_url,omitempty"`
    UseOauth    bool     `protobuf:"varint,4,opt,name=use_oauth,json=useOauth" json:"use_oauth,omitempty"`
    OauthScopes []string `protobuf:"bytes,7,rep,name=oauth_scopes,json=oauthScopes" json:"oauth_scopes,omitempty"`
    // KnownDomains describes parameters to use for each particular domain.
    KnownDomains         []*DomainConfig `protobuf:"bytes,5,rep,name=known_domains,json=knownDomains" json:"known_domains,omitempty"`
    XXX_NoUnkeyedLiteral struct{}        `json:"-"`
    XXX_unrecognized     []byte          `json:"-"`
    XXX_sizecache        int32           `json:"-"`
}

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).

func (*CertificateAuthorityConfig) Descriptor Uses

func (*CertificateAuthorityConfig) Descriptor() ([]byte, []int)

func (*CertificateAuthorityConfig) GetCertPath Uses

func (m *CertificateAuthorityConfig) GetCertPath() string

func (*CertificateAuthorityConfig) GetCn Uses

func (m *CertificateAuthorityConfig) GetCn() string

func (*CertificateAuthorityConfig) GetCrlUrl Uses

func (m *CertificateAuthorityConfig) GetCrlUrl() string

func (*CertificateAuthorityConfig) GetKnownDomains Uses

func (m *CertificateAuthorityConfig) GetKnownDomains() []*DomainConfig

func (*CertificateAuthorityConfig) GetOauthScopes Uses

func (m *CertificateAuthorityConfig) GetOauthScopes() []string

func (*CertificateAuthorityConfig) GetUniqueId Uses

func (m *CertificateAuthorityConfig) GetUniqueId() int64

func (*CertificateAuthorityConfig) GetUseOauth Uses

func (m *CertificateAuthorityConfig) GetUseOauth() bool

func (*CertificateAuthorityConfig) ProtoMessage Uses

func (*CertificateAuthorityConfig) ProtoMessage()

func (*CertificateAuthorityConfig) Reset Uses

func (m *CertificateAuthorityConfig) Reset()

func (*CertificateAuthorityConfig) String Uses

func (m *CertificateAuthorityConfig) String() string

func (*CertificateAuthorityConfig) XXX_DiscardUnknown Uses

func (m *CertificateAuthorityConfig) XXX_DiscardUnknown()

func (*CertificateAuthorityConfig) XXX_Marshal Uses

func (m *CertificateAuthorityConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CertificateAuthorityConfig) XXX_Merge Uses

func (dst *CertificateAuthorityConfig) XXX_Merge(src proto.Message)

func (*CertificateAuthorityConfig) XXX_Size Uses

func (m *CertificateAuthorityConfig) XXX_Size() int

func (*CertificateAuthorityConfig) XXX_Unmarshal Uses

func (m *CertificateAuthorityConfig) XXX_Unmarshal(b []byte) error

type CheckCertificateRequest Uses

type CheckCertificateRequest struct {
    CertPem              string   `protobuf:"bytes,1,opt,name=cert_pem,json=certPem" json:"cert_pem,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

CheckCertificateRequest contains a pem encoded certificate to check.

func (*CheckCertificateRequest) Descriptor Uses

func (*CheckCertificateRequest) Descriptor() ([]byte, []int)

func (*CheckCertificateRequest) GetCertPem Uses

func (m *CheckCertificateRequest) GetCertPem() string

func (*CheckCertificateRequest) ProtoMessage Uses

func (*CheckCertificateRequest) ProtoMessage()

func (*CheckCertificateRequest) Reset Uses

func (m *CheckCertificateRequest) Reset()

func (*CheckCertificateRequest) String Uses

func (m *CheckCertificateRequest) String() string

func (*CheckCertificateRequest) XXX_DiscardUnknown Uses

func (m *CheckCertificateRequest) XXX_DiscardUnknown()

func (*CheckCertificateRequest) XXX_Marshal Uses

func (m *CheckCertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckCertificateRequest) XXX_Merge Uses

func (dst *CheckCertificateRequest) XXX_Merge(src proto.Message)

func (*CheckCertificateRequest) XXX_Size Uses

func (m *CheckCertificateRequest) XXX_Size() int

func (*CheckCertificateRequest) XXX_Unmarshal Uses

func (m *CheckCertificateRequest) XXX_Unmarshal(b []byte) error

type CheckCertificateResponse Uses

type CheckCertificateResponse struct {
    IsValid              bool     `protobuf:"varint,1,opt,name=is_valid,json=isValid" json:"is_valid,omitempty"`
    InvalidReason        string   `protobuf:"bytes,2,opt,name=invalid_reason,json=invalidReason" json:"invalid_reason,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

CheckCertificateResponse is returned by CheckCertificate.

func (*CheckCertificateResponse) Descriptor Uses

func (*CheckCertificateResponse) Descriptor() ([]byte, []int)

func (*CheckCertificateResponse) GetInvalidReason Uses

func (m *CheckCertificateResponse) GetInvalidReason() string

func (*CheckCertificateResponse) GetIsValid Uses

func (m *CheckCertificateResponse) GetIsValid() bool

func (*CheckCertificateResponse) ProtoMessage Uses

func (*CheckCertificateResponse) ProtoMessage()

func (*CheckCertificateResponse) Reset Uses

func (m *CheckCertificateResponse) Reset()

func (*CheckCertificateResponse) String Uses

func (m *CheckCertificateResponse) String() string

func (*CheckCertificateResponse) XXX_DiscardUnknown Uses

func (m *CheckCertificateResponse) XXX_DiscardUnknown()

func (*CheckCertificateResponse) XXX_Marshal Uses

func (m *CheckCertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CheckCertificateResponse) XXX_Merge Uses

func (dst *CheckCertificateResponse) XXX_Merge(src proto.Message)

func (*CheckCertificateResponse) XXX_Size Uses

func (m *CheckCertificateResponse) XXX_Size() int

func (*CheckCertificateResponse) XXX_Unmarshal Uses

func (m *CheckCertificateResponse) XXX_Unmarshal(b []byte) error

type DecoratedAdmin Uses

type DecoratedAdmin struct {
    // Service is the service to decorate.
    Service AdminServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedAdmin) ImportCAConfigs Uses

func (s *DecoratedAdmin) ImportCAConfigs(c context.Context, req *empty.Empty) (rsp *ImportedConfigs, err error)

func (*DecoratedAdmin) ImportDelegationConfigs Uses

func (s *DecoratedAdmin) ImportDelegationConfigs(c context.Context, req *empty.Empty) (rsp *ImportedConfigs, err error)

func (*DecoratedAdmin) ImportServiceAccountsConfigs Uses

func (s *DecoratedAdmin) ImportServiceAccountsConfigs(c context.Context, req *empty.Empty) (rsp *ImportedConfigs, err error)

func (*DecoratedAdmin) InspectDelegationToken Uses

func (s *DecoratedAdmin) InspectDelegationToken(c context.Context, req *InspectDelegationTokenRequest) (rsp *InspectDelegationTokenResponse, err error)

func (*DecoratedAdmin) InspectMachineToken Uses

func (s *DecoratedAdmin) InspectMachineToken(c context.Context, req *InspectMachineTokenRequest) (rsp *InspectMachineTokenResponse, err error)

func (*DecoratedAdmin) InspectOAuthTokenGrant Uses

func (s *DecoratedAdmin) InspectOAuthTokenGrant(c context.Context, req *InspectOAuthTokenGrantRequest) (rsp *InspectOAuthTokenGrantResponse, err error)

type DecoratedCertificateAuthorities Uses

type DecoratedCertificateAuthorities struct {
    // Service is the service to decorate.
    Service CertificateAuthoritiesServer
    // Prelude is called for each method before forwarding the call to Service.
    // If Prelude returns an error, then the call is skipped and the error is
    // processed via the Postlude (if one is defined), or it is returned directly.
    Prelude func(c context.Context, methodName string, req proto.Message) (context.Context, error)
    // Postlude is called for each method after Service has processed the call, or
    // after the Prelude has returned an error. This takes the the Service's
    // response proto (which may be nil) and/or any error. The decorated
    // service will return the response (possibly mutated) and error that Postlude
    // returns.
    Postlude func(c context.Context, methodName string, rsp proto.Message, err error) error
}

func (*DecoratedCertificateAuthorities) CheckCertificate Uses

func (s *DecoratedCertificateAuthorities) CheckCertificate(c context.Context, req *CheckCertificateRequest) (rsp *CheckCertificateResponse, err error)

func (*DecoratedCertificateAuthorities) FetchCRL Uses

func (s *DecoratedCertificateAuthorities) FetchCRL(c context.Context, req *FetchCRLRequest) (rsp *FetchCRLResponse, err error)

func (*DecoratedCertificateAuthorities) GetCAStatus Uses

func (s *DecoratedCertificateAuthorities) GetCAStatus(c context.Context, req *GetCAStatusRequest) (rsp *GetCAStatusResponse, err error)

func (*DecoratedCertificateAuthorities) IsRevokedCert Uses

func (s *DecoratedCertificateAuthorities) IsRevokedCert(c context.Context, req *IsRevokedCertRequest) (rsp *IsRevokedCertResponse, err error)

func (*DecoratedCertificateAuthorities) ListCAs Uses

func (s *DecoratedCertificateAuthorities) ListCAs(c context.Context, req *empty.Empty) (rsp *ListCAsResponse, err error)

type DelegationPermissions Uses

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" json:"rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{}          `json:"-"`
    XXX_unrecognized     []byte            `json:"-"`
    XXX_sizecache        int32             `json:"-"`
}

DelegationPermissions is read from delegation.cfg in luci-config.

func (*DelegationPermissions) Descriptor Uses

func (*DelegationPermissions) Descriptor() ([]byte, []int)

func (*DelegationPermissions) GetRules Uses

func (m *DelegationPermissions) GetRules() []*DelegationRule

func (*DelegationPermissions) ProtoMessage Uses

func (*DelegationPermissions) ProtoMessage()

func (*DelegationPermissions) Reset Uses

func (m *DelegationPermissions) Reset()

func (*DelegationPermissions) String Uses

func (m *DelegationPermissions) String() string

func (*DelegationPermissions) XXX_DiscardUnknown Uses

func (m *DelegationPermissions) XXX_DiscardUnknown()

func (*DelegationPermissions) XXX_Marshal Uses

func (m *DelegationPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationPermissions) XXX_Merge Uses

func (dst *DelegationPermissions) XXX_Merge(src proto.Message)

func (*DelegationPermissions) XXX_Size Uses

func (m *DelegationPermissions) XXX_Size() int

func (*DelegationPermissions) XXX_Unmarshal Uses

func (m *DelegationPermissions) XXX_Unmarshal(b []byte) error

type DelegationRule Uses

type DelegationRule struct {
    // A descriptive name of this rule, for the audit log.
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // Email of developers that own this rule, to know who to contact.
    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>").
    //  * 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" 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.
    //
    // 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.
    //
    // Default is 12 hours.
    MaxValidityDuration  int64    `protobuf:"varint,7,opt,name=max_validity_duration,json=maxValidityDuration" json:"max_validity_duration,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

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.

func (*DelegationRule) Descriptor Uses

func (*DelegationRule) Descriptor() ([]byte, []int)

func (*DelegationRule) GetAllowedAudience Uses

func (m *DelegationRule) GetAllowedAudience() []string

func (*DelegationRule) GetAllowedToImpersonate Uses

func (m *DelegationRule) GetAllowedToImpersonate() []string

func (*DelegationRule) GetMaxValidityDuration Uses

func (m *DelegationRule) GetMaxValidityDuration() int64

func (*DelegationRule) GetName Uses

func (m *DelegationRule) GetName() string

func (*DelegationRule) GetOwner Uses

func (m *DelegationRule) GetOwner() []string

func (*DelegationRule) GetRequestor Uses

func (m *DelegationRule) GetRequestor() []string

func (*DelegationRule) GetTargetService Uses

func (m *DelegationRule) GetTargetService() []string

func (*DelegationRule) ProtoMessage Uses

func (*DelegationRule) ProtoMessage()

func (*DelegationRule) Reset Uses

func (m *DelegationRule) Reset()

func (*DelegationRule) String Uses

func (m *DelegationRule) String() string

func (*DelegationRule) XXX_DiscardUnknown Uses

func (m *DelegationRule) XXX_DiscardUnknown()

func (*DelegationRule) XXX_Marshal Uses

func (m *DelegationRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DelegationRule) XXX_Merge Uses

func (dst *DelegationRule) XXX_Merge(src proto.Message)

func (*DelegationRule) XXX_Size Uses

func (m *DelegationRule) XXX_Size() int

func (*DelegationRule) XXX_Unmarshal Uses

func (m *DelegationRule) XXX_Unmarshal(b []byte) error

type DomainConfig Uses

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" 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" json:"machine_token_lifetime,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

DomainConfig is used inside CertificateAuthorityConfig.

func (*DomainConfig) Descriptor Uses

func (*DomainConfig) Descriptor() ([]byte, []int)

func (*DomainConfig) GetDomain Uses

func (m *DomainConfig) GetDomain() []string

func (*DomainConfig) GetMachineTokenLifetime Uses

func (m *DomainConfig) GetMachineTokenLifetime() int64

func (*DomainConfig) ProtoMessage Uses

func (*DomainConfig) ProtoMessage()

func (*DomainConfig) Reset Uses

func (m *DomainConfig) Reset()

func (*DomainConfig) String Uses

func (m *DomainConfig) String() string

func (*DomainConfig) XXX_DiscardUnknown Uses

func (m *DomainConfig) XXX_DiscardUnknown()

func (*DomainConfig) XXX_Marshal Uses

func (m *DomainConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DomainConfig) XXX_Merge Uses

func (dst *DomainConfig) XXX_Merge(src proto.Message)

func (*DomainConfig) XXX_Size Uses

func (m *DomainConfig) XXX_Size() int

func (*DomainConfig) XXX_Unmarshal Uses

func (m *DomainConfig) XXX_Unmarshal(b []byte) error

type FetchCRLRequest Uses

type FetchCRLRequest struct {
    Cn                   string   `protobuf:"bytes,1,opt,name=cn" json:"cn,omitempty"`
    Force                bool     `protobuf:"varint,2,opt,name=force" json:"force,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

FetchCRLRequest identifies a name of CA to fetch CRL for.

func (*FetchCRLRequest) Descriptor Uses

func (*FetchCRLRequest) Descriptor() ([]byte, []int)

func (*FetchCRLRequest) GetCn Uses

func (m *FetchCRLRequest) GetCn() string

func (*FetchCRLRequest) GetForce Uses

func (m *FetchCRLRequest) GetForce() bool

func (*FetchCRLRequest) ProtoMessage Uses

func (*FetchCRLRequest) ProtoMessage()

func (*FetchCRLRequest) Reset Uses

func (m *FetchCRLRequest) Reset()

func (*FetchCRLRequest) String Uses

func (m *FetchCRLRequest) String() string

func (*FetchCRLRequest) XXX_DiscardUnknown Uses

func (m *FetchCRLRequest) XXX_DiscardUnknown()

func (*FetchCRLRequest) XXX_Marshal Uses

func (m *FetchCRLRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FetchCRLRequest) XXX_Merge Uses

func (dst *FetchCRLRequest) XXX_Merge(src proto.Message)

func (*FetchCRLRequest) XXX_Size Uses

func (m *FetchCRLRequest) XXX_Size() int

func (*FetchCRLRequest) XXX_Unmarshal Uses

func (m *FetchCRLRequest) XXX_Unmarshal(b []byte) error

type FetchCRLResponse Uses

type FetchCRLResponse struct {
    CrlStatus            *CRLStatus `protobuf:"bytes,1,opt,name=crl_status,json=crlStatus" json:"crl_status,omitempty"`
    XXX_NoUnkeyedLiteral struct{}   `json:"-"`
    XXX_unrecognized     []byte     `json:"-"`
    XXX_sizecache        int32      `json:"-"`
}

FetchCRLResponse is returned by FetchCRL.

func (*FetchCRLResponse) Descriptor Uses

func (*FetchCRLResponse) Descriptor() ([]byte, []int)

func (*FetchCRLResponse) GetCrlStatus Uses

func (m *FetchCRLResponse) GetCrlStatus() *CRLStatus

func (*FetchCRLResponse) ProtoMessage Uses

func (*FetchCRLResponse) ProtoMessage()

func (*FetchCRLResponse) Reset Uses

func (m *FetchCRLResponse) Reset()

func (*FetchCRLResponse) String Uses

func (m *FetchCRLResponse) String() string

func (*FetchCRLResponse) XXX_DiscardUnknown Uses

func (m *FetchCRLResponse) XXX_DiscardUnknown()

func (*FetchCRLResponse) XXX_Marshal Uses

func (m *FetchCRLResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FetchCRLResponse) XXX_Merge Uses

func (dst *FetchCRLResponse) XXX_Merge(src proto.Message)

func (*FetchCRLResponse) XXX_Size Uses

func (m *FetchCRLResponse) XXX_Size() int

func (*FetchCRLResponse) XXX_Unmarshal Uses

func (m *FetchCRLResponse) XXX_Unmarshal(b []byte) error

type GetCAStatusRequest Uses

type GetCAStatusRequest struct {
    Cn                   string   `protobuf:"bytes,1,opt,name=cn" json:"cn,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

GetCAStatusRequest identifies a name of CA to fetch.

func (*GetCAStatusRequest) Descriptor Uses

func (*GetCAStatusRequest) Descriptor() ([]byte, []int)

func (*GetCAStatusRequest) GetCn Uses

func (m *GetCAStatusRequest) GetCn() string

func (*GetCAStatusRequest) ProtoMessage Uses

func (*GetCAStatusRequest) ProtoMessage()

func (*GetCAStatusRequest) Reset Uses

func (m *GetCAStatusRequest) Reset()

func (*GetCAStatusRequest) String Uses

func (m *GetCAStatusRequest) String() string

func (*GetCAStatusRequest) XXX_DiscardUnknown Uses

func (m *GetCAStatusRequest) XXX_DiscardUnknown()

func (*GetCAStatusRequest) XXX_Marshal Uses

func (m *GetCAStatusRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCAStatusRequest) XXX_Merge Uses

func (dst *GetCAStatusRequest) XXX_Merge(src proto.Message)

func (*GetCAStatusRequest) XXX_Size Uses

func (m *GetCAStatusRequest) XXX_Size() int

func (*GetCAStatusRequest) XXX_Unmarshal Uses

func (m *GetCAStatusRequest) XXX_Unmarshal(b []byte) error

type GetCAStatusResponse Uses

type GetCAStatusResponse struct {
    Config               *CertificateAuthorityConfig `protobuf:"bytes,1,opt,name=config" json:"config,omitempty"`
    Cert                 string                      `protobuf:"bytes,2,opt,name=cert" json:"cert,omitempty"`
    Removed              bool                        `protobuf:"varint,3,opt,name=removed" json:"removed,omitempty"`
    Ready                bool                        `protobuf:"varint,4,opt,name=ready" json:"ready,omitempty"`
    AddedRev             string                      `protobuf:"bytes,5,opt,name=added_rev,json=addedRev" json:"added_rev,omitempty"`
    UpdatedRev           string                      `protobuf:"bytes,6,opt,name=updated_rev,json=updatedRev" json:"updated_rev,omitempty"`
    RemovedRev           string                      `protobuf:"bytes,7,opt,name=removed_rev,json=removedRev" json:"removed_rev,omitempty"`
    CrlStatus            *CRLStatus                  `protobuf:"bytes,8,opt,name=crl_status,json=crlStatus" json:"crl_status,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
    XXX_unrecognized     []byte                      `json:"-"`
    XXX_sizecache        int32                       `json:"-"`
}

GetCAStatusResponse is returned by GetCAStatus method.

If requested CA doesn't exist, all fields are empty.

func (*GetCAStatusResponse) Descriptor Uses

func (*GetCAStatusResponse) Descriptor() ([]byte, []int)

func (*GetCAStatusResponse) GetAddedRev Uses

func (m *GetCAStatusResponse) GetAddedRev() string

func (*GetCAStatusResponse) GetCert Uses

func (m *GetCAStatusResponse) GetCert() string

func (*GetCAStatusResponse) GetConfig Uses

func (m *GetCAStatusResponse) GetConfig() *CertificateAuthorityConfig

func (*GetCAStatusResponse) GetCrlStatus Uses

func (m *GetCAStatusResponse) GetCrlStatus() *CRLStatus

func (*GetCAStatusResponse) GetReady Uses

func (m *GetCAStatusResponse) GetReady() bool

func (*GetCAStatusResponse) GetRemoved Uses

func (m *GetCAStatusResponse) GetRemoved() bool

func (*GetCAStatusResponse) GetRemovedRev Uses

func (m *GetCAStatusResponse) GetRemovedRev() string

func (*GetCAStatusResponse) GetUpdatedRev Uses

func (m *GetCAStatusResponse) GetUpdatedRev() string

func (*GetCAStatusResponse) ProtoMessage Uses

func (*GetCAStatusResponse) ProtoMessage()

func (*GetCAStatusResponse) Reset Uses

func (m *GetCAStatusResponse) Reset()

func (*GetCAStatusResponse) String Uses

func (m *GetCAStatusResponse) String() string

func (*GetCAStatusResponse) XXX_DiscardUnknown Uses

func (m *GetCAStatusResponse) XXX_DiscardUnknown()

func (*GetCAStatusResponse) XXX_Marshal Uses

func (m *GetCAStatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GetCAStatusResponse) XXX_Merge Uses

func (dst *GetCAStatusResponse) XXX_Merge(src proto.Message)

func (*GetCAStatusResponse) XXX_Size Uses

func (m *GetCAStatusResponse) XXX_Size() int

func (*GetCAStatusResponse) XXX_Unmarshal Uses

func (m *GetCAStatusResponse) XXX_Unmarshal(b []byte) error

type ImportedConfigs Uses

type ImportedConfigs struct {
    // The revision of the configs that are now in the datastore.
    //
    // It's either the imported revision, if configs change, or a previously known
    // revision, if configs at HEAD are same.
    Revision             string   `protobuf:"bytes,1,opt,name=revision" json:"revision,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ImportedConfigs is returned by Import<something>Configs methods on success.

func (*ImportedConfigs) Descriptor Uses

func (*ImportedConfigs) Descriptor() ([]byte, []int)

func (*ImportedConfigs) GetRevision Uses

func (m *ImportedConfigs) GetRevision() string

func (*ImportedConfigs) ProtoMessage Uses

func (*ImportedConfigs) ProtoMessage()

func (*ImportedConfigs) Reset Uses

func (m *ImportedConfigs) Reset()

func (*ImportedConfigs) String Uses

func (m *ImportedConfigs) String() string

func (*ImportedConfigs) XXX_DiscardUnknown Uses

func (m *ImportedConfigs) XXX_DiscardUnknown()

func (*ImportedConfigs) XXX_Marshal Uses

func (m *ImportedConfigs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImportedConfigs) XXX_Merge Uses

func (dst *ImportedConfigs) XXX_Merge(src proto.Message)

func (*ImportedConfigs) XXX_Size Uses

func (m *ImportedConfigs) XXX_Size() int

func (*ImportedConfigs) XXX_Unmarshal Uses

func (m *ImportedConfigs) XXX_Unmarshal(b []byte) error

type InspectDelegationTokenRequest Uses

type InspectDelegationTokenRequest struct {
    // The token body.
    Token                string   `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

InspectDelegationTokenRequest is body of InspectDelegationToken RPC call.

func (*InspectDelegationTokenRequest) Descriptor Uses

func (*InspectDelegationTokenRequest) Descriptor() ([]byte, []int)

func (*InspectDelegationTokenRequest) GetToken Uses

func (m *InspectDelegationTokenRequest) GetToken() string

func (*InspectDelegationTokenRequest) ProtoMessage Uses

func (*InspectDelegationTokenRequest) ProtoMessage()

func (*InspectDelegationTokenRequest) Reset Uses

func (m *InspectDelegationTokenRequest) Reset()

func (*InspectDelegationTokenRequest) String Uses

func (m *InspectDelegationTokenRequest) String() string

func (*InspectDelegationTokenRequest) XXX_DiscardUnknown Uses

func (m *InspectDelegationTokenRequest) XXX_DiscardUnknown()

func (*InspectDelegationTokenRequest) XXX_Marshal Uses

func (m *InspectDelegationTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectDelegationTokenRequest) XXX_Merge Uses

func (dst *InspectDelegationTokenRequest) XXX_Merge(src proto.Message)

func (*InspectDelegationTokenRequest) XXX_Size Uses

func (m *InspectDelegationTokenRequest) XXX_Size() int

func (*InspectDelegationTokenRequest) XXX_Unmarshal Uses

func (m *InspectDelegationTokenRequest) XXX_Unmarshal(b []byte) error

type InspectDelegationTokenResponse Uses

type InspectDelegationTokenResponse struct {
    // True if the token is valid.
    //
    // A token is valid if its signature is correct and it hasn't expired yet.
    Valid bool `protobuf:"varint,1,opt,name=valid" json:"valid,omitempty"`
    // Human readable summary of why token is invalid.
    //
    // Summarizes the rest of the fields of this struct. Set only if 'valid' is
    // false.
    InvalidityReason string `protobuf:"bytes,2,opt,name=invalidity_reason,json=invalidityReason" json:"invalidity_reason,omitempty"`
    // True if the token signature was verified.
    //
    // It means the token was generated by the token server and its body is not
    // a garbage. Note that a token can be correctly signed, but invalid (if it
    // has expired).
    //
    // If 'signed' is false, the fields below may (or may not) be a garbage.
    //
    // The token server uses private keys managed by Google Cloud Platform, they
    // are constantly being rotated and "old" signatures become invalid over time
    // (when corresponding keys are rotated out of existence).
    //
    // If 'signed' is false, use the rest of the response only as FYI, possibly
    // invalid or even maliciously constructed.
    Signed bool `protobuf:"varint,3,opt,name=signed" json:"signed,omitempty"`
    // True if the token signature was verified and token hasn't expired yet.
    //
    // We use "non_" prefix to make default 'false' value safer.
    NonExpired bool `protobuf:"varint,4,opt,name=non_expired,json=nonExpired" json:"non_expired,omitempty"`
    // The deserialized token envelope.
    //
    // May be empty if token was malformed and couldn't be deserialized.
    Envelope *messages.DelegationToken `protobuf:"bytes,5,opt,name=envelope" json:"envelope,omitempty"`
    // The deserialized token body (deserialized 'envelope.serialized_subtoken').
    //
    // May be empty if token was malformed and couldn't be deserialized.
    Subtoken             *messages.Subtoken `protobuf:"bytes,6,opt,name=subtoken" json:"subtoken,omitempty"`
    XXX_NoUnkeyedLiteral struct{}           `json:"-"`
    XXX_unrecognized     []byte             `json:"-"`
    XXX_sizecache        int32              `json:"-"`
}

InspectDelegationTokenResponse is return value of InspectDelegationToken RPC.

func (*InspectDelegationTokenResponse) Descriptor Uses

func (*InspectDelegationTokenResponse) Descriptor() ([]byte, []int)

func (*InspectDelegationTokenResponse) GetEnvelope Uses

func (m *InspectDelegationTokenResponse) GetEnvelope() *messages.DelegationToken

func (*InspectDelegationTokenResponse) GetInvalidityReason Uses

func (m *InspectDelegationTokenResponse) GetInvalidityReason() string

func (*InspectDelegationTokenResponse) GetNonExpired Uses

func (m *InspectDelegationTokenResponse) GetNonExpired() bool

func (*InspectDelegationTokenResponse) GetSigned Uses

func (m *InspectDelegationTokenResponse) GetSigned() bool

func (*InspectDelegationTokenResponse) GetSubtoken Uses

func (m *InspectDelegationTokenResponse) GetSubtoken() *messages.Subtoken

func (*InspectDelegationTokenResponse) GetValid Uses

func (m *InspectDelegationTokenResponse) GetValid() bool

func (*InspectDelegationTokenResponse) ProtoMessage Uses

func (*InspectDelegationTokenResponse) ProtoMessage()

func (*InspectDelegationTokenResponse) Reset Uses

func (m *InspectDelegationTokenResponse) Reset()

func (*InspectDelegationTokenResponse) String Uses

func (m *InspectDelegationTokenResponse) String() string

func (*InspectDelegationTokenResponse) XXX_DiscardUnknown Uses

func (m *InspectDelegationTokenResponse) XXX_DiscardUnknown()

func (*InspectDelegationTokenResponse) XXX_Marshal Uses

func (m *InspectDelegationTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectDelegationTokenResponse) XXX_Merge Uses

func (dst *InspectDelegationTokenResponse) XXX_Merge(src proto.Message)

func (*InspectDelegationTokenResponse) XXX_Size Uses

func (m *InspectDelegationTokenResponse) XXX_Size() int

func (*InspectDelegationTokenResponse) XXX_Unmarshal Uses

func (m *InspectDelegationTokenResponse) XXX_Unmarshal(b []byte) error

type InspectMachineTokenRequest Uses

type InspectMachineTokenRequest struct {
    // The type of token being checked.
    //
    // Currently only LUCI_MACHINE_TOKEN is supported. This is also the default.
    TokenType api.MachineTokenType `protobuf:"varint,1,opt,name=token_type,json=tokenType,enum=tokenserver.MachineTokenType" json:"token_type,omitempty"`
    // The token body. Exact meaning depends on token_type.
    Token                string   `protobuf:"bytes,2,opt,name=token" json:"token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

InspectMachineTokenRequest is body of InspectMachineToken RPC call.

It contains machine token of some kind.

func (*InspectMachineTokenRequest) Descriptor Uses

func (*InspectMachineTokenRequest) Descriptor() ([]byte, []int)

func (*InspectMachineTokenRequest) GetToken Uses

func (m *InspectMachineTokenRequest) GetToken() string

func (*InspectMachineTokenRequest) GetTokenType Uses

func (m *InspectMachineTokenRequest) GetTokenType() api.MachineTokenType

func (*InspectMachineTokenRequest) ProtoMessage Uses

func (*InspectMachineTokenRequest) ProtoMessage()

func (*InspectMachineTokenRequest) Reset Uses

func (m *InspectMachineTokenRequest) Reset()

func (*InspectMachineTokenRequest) String Uses

func (m *InspectMachineTokenRequest) String() string

func (*InspectMachineTokenRequest) XXX_DiscardUnknown Uses

func (m *InspectMachineTokenRequest) XXX_DiscardUnknown()

func (*InspectMachineTokenRequest) XXX_Marshal Uses

func (m *InspectMachineTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectMachineTokenRequest) XXX_Merge Uses

func (dst *InspectMachineTokenRequest) XXX_Merge(src proto.Message)

func (*InspectMachineTokenRequest) XXX_Size Uses

func (m *InspectMachineTokenRequest) XXX_Size() int

func (*InspectMachineTokenRequest) XXX_Unmarshal Uses

func (m *InspectMachineTokenRequest) XXX_Unmarshal(b []byte) error

type InspectMachineTokenResponse Uses

type InspectMachineTokenResponse struct {
    // True if the token is valid.
    //
    // A token is valid if its signature is correct, it hasn't expired yet and
    // the credentials it was built from (e.g. a certificate) wasn't revoked.
    Valid bool `protobuf:"varint,1,opt,name=valid" json:"valid,omitempty"`
    // Human readable summary of why token is invalid.
    //
    // Summarizes the rest of the fields of this struct. Set only if 'valid' is
    // false.
    InvalidityReason string `protobuf:"bytes,2,opt,name=invalidity_reason,json=invalidityReason" json:"invalidity_reason,omitempty"`
    // True if the token signature was verified.
    //
    // It means the token was generated by the token server and its body is not
    // a garbage. Note that a token can be correctly signed, but invalid (if it
    // has expired or was revoked).
    //
    // If 'signed' is false, the fields below may (or may not) be a garbage.
    //
    // The token server uses private keys managed by Google Cloud Platform, they
    // are constantly being rotated and "old" signatures become invalid over time
    // (when corresponding keys are rotated out of existence).
    //
    // If 'signed' is false, use the rest of the response only as FYI, possibly
    // invalid or even maliciously constructed.
    Signed bool `protobuf:"varint,3,opt,name=signed" json:"signed,omitempty"`
    // True if the token signature was verified and token hasn't expired yet.
    //
    // We use "non_" prefix to make default 'false' value safer.
    NonExpired bool `protobuf:"varint,4,opt,name=non_expired,json=nonExpired" json:"non_expired,omitempty"`
    // True if the token signature was verified and the token wasn't revoked.
    //
    // It is possible for an expired token to be non revoked. They are independent
    // properties.
    //
    // We use "non_" prefix to make default 'false' value safer.
    NonRevoked bool `protobuf:"varint,5,opt,name=non_revoked,json=nonRevoked" json:"non_revoked,omitempty"`
    // Id of a private key used to sign this token, if applicable.
    SigningKeyId string `protobuf:"bytes,6,opt,name=signing_key_id,json=signingKeyId" json:"signing_key_id,omitempty"`
    // Name of a CA that issued the cert the token is based on, if applicable.
    //
    // Resolved from 'ca_id' field of the token body.
    CertCaName string `protobuf:"bytes,7,opt,name=cert_ca_name,json=certCaName" json:"cert_ca_name,omitempty"`
    // The decoded token body (depends on token_type request parameter). Empty if
    // token was malformed and couldn't be deserialized.
    //
    // Types that are valid to be assigned to TokenType:
    //	*InspectMachineTokenResponse_LuciMachineToken
    TokenType            isInspectMachineTokenResponse_TokenType `protobuf_oneof:"token_type"`
    XXX_NoUnkeyedLiteral struct{}                                `json:"-"`
    XXX_unrecognized     []byte                                  `json:"-"`
    XXX_sizecache        int32                                   `json:"-"`
}

InspectMachineTokenResponse is return value of InspectMachineToken RPC call.

func (*InspectMachineTokenResponse) Descriptor Uses

func (*InspectMachineTokenResponse) Descriptor() ([]byte, []int)

func (*InspectMachineTokenResponse) GetCertCaName Uses

func (m *InspectMachineTokenResponse) GetCertCaName() string

func (*InspectMachineTokenResponse) GetInvalidityReason Uses

func (m *InspectMachineTokenResponse) GetInvalidityReason() string

func (*InspectMachineTokenResponse) GetLuciMachineToken Uses

func (m *InspectMachineTokenResponse) GetLuciMachineToken() *api.MachineTokenBody

func (*InspectMachineTokenResponse) GetNonExpired Uses

func (m *InspectMachineTokenResponse) GetNonExpired() bool

func (*InspectMachineTokenResponse) GetNonRevoked Uses

func (m *InspectMachineTokenResponse) GetNonRevoked() bool

func (*InspectMachineTokenResponse) GetSigned Uses

func (m *InspectMachineTokenResponse) GetSigned() bool

func (*InspectMachineTokenResponse) GetSigningKeyId Uses

func (m *InspectMachineTokenResponse) GetSigningKeyId() string

func (*InspectMachineTokenResponse) GetTokenType Uses

func (m *InspectMachineTokenResponse) GetTokenType() isInspectMachineTokenResponse_TokenType

func (*InspectMachineTokenResponse) GetValid Uses

func (m *InspectMachineTokenResponse) GetValid() bool

func (*InspectMachineTokenResponse) ProtoMessage Uses

func (*InspectMachineTokenResponse) ProtoMessage()

func (*InspectMachineTokenResponse) Reset Uses

func (m *InspectMachineTokenResponse) Reset()

func (*InspectMachineTokenResponse) String Uses

func (m *InspectMachineTokenResponse) String() string

func (*InspectMachineTokenResponse) XXX_DiscardUnknown Uses

func (m *InspectMachineTokenResponse) XXX_DiscardUnknown()

func (*InspectMachineTokenResponse) XXX_Marshal Uses

func (m *InspectMachineTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectMachineTokenResponse) XXX_Merge Uses

func (dst *InspectMachineTokenResponse) XXX_Merge(src proto.Message)

func (*InspectMachineTokenResponse) XXX_OneofFuncs Uses

func (*InspectMachineTokenResponse) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

func (*InspectMachineTokenResponse) XXX_Size Uses

func (m *InspectMachineTokenResponse) XXX_Size() int

func (*InspectMachineTokenResponse) XXX_Unmarshal Uses

func (m *InspectMachineTokenResponse) XXX_Unmarshal(b []byte) error

type InspectMachineTokenResponse_LuciMachineToken Uses

type InspectMachineTokenResponse_LuciMachineToken struct {
    LuciMachineToken *api.MachineTokenBody `protobuf:"bytes,20,opt,name=luci_machine_token,json=luciMachineToken,oneof"`
}

type InspectOAuthTokenGrantRequest Uses

type InspectOAuthTokenGrantRequest struct {
    // The token body.
    Token                string   `protobuf:"bytes,1,opt,name=token" json:"token,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

InspectOAuthTokenGrantRequest is body of InspectOAuthTokenGrant RPC call.

func (*InspectOAuthTokenGrantRequest) Descriptor Uses

func (*InspectOAuthTokenGrantRequest) Descriptor() ([]byte, []int)

func (*InspectOAuthTokenGrantRequest) GetToken Uses

func (m *InspectOAuthTokenGrantRequest) GetToken() string

func (*InspectOAuthTokenGrantRequest) ProtoMessage Uses

func (*InspectOAuthTokenGrantRequest) ProtoMessage()

func (*InspectOAuthTokenGrantRequest) Reset Uses

func (m *InspectOAuthTokenGrantRequest) Reset()

func (*InspectOAuthTokenGrantRequest) String Uses

func (m *InspectOAuthTokenGrantRequest) String() string

func (*InspectOAuthTokenGrantRequest) XXX_DiscardUnknown Uses

func (m *InspectOAuthTokenGrantRequest) XXX_DiscardUnknown()

func (*InspectOAuthTokenGrantRequest) XXX_Marshal Uses

func (m *InspectOAuthTokenGrantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectOAuthTokenGrantRequest) XXX_Merge Uses

func (dst *InspectOAuthTokenGrantRequest) XXX_Merge(src proto.Message)

func (*InspectOAuthTokenGrantRequest) XXX_Size Uses

func (m *InspectOAuthTokenGrantRequest) XXX_Size() int

func (*InspectOAuthTokenGrantRequest) XXX_Unmarshal Uses

func (m *InspectOAuthTokenGrantRequest) XXX_Unmarshal(b []byte) error

type InspectOAuthTokenGrantResponse Uses

type InspectOAuthTokenGrantResponse struct {
    // True if the token is valid.
    //
    // A token is valid if its signature is correct, it hasn't expired yet and
    // token server rules still allow it.
    Valid bool `protobuf:"varint,1,opt,name=valid" json:"valid,omitempty"`
    // Human readable summary of why token is invalid.
    //
    // Summarizes the rest of the fields of this struct. Set only if 'valid' is
    // false.
    InvalidityReason string `protobuf:"bytes,2,opt,name=invalidity_reason,json=invalidityReason" json:"invalidity_reason,omitempty"`
    // True if the token signature was verified.
    //
    // It means the token was generated by the token server and its body is not
    // a garbage. Note that a token can be correctly signed, but invalid (if it
    // has expired).
    //
    // If 'signed' is false, the fields below may (or may not) be a garbage.
    //
    // The token server uses private keys managed by Google Cloud Platform, they
    // are constantly being rotated and "old" signatures become invalid over time
    // (when corresponding keys are rotated out of existence).
    //
    // If 'signed' is false, use the rest of the response only as FYI, possibly
    // invalid or even maliciously constructed.
    Signed bool `protobuf:"varint,3,opt,name=signed" json:"signed,omitempty"`
    // True if the token signature was verified and token hasn't expired yet.
    //
    // We use "non_" prefix to make default 'false' value safer.
    NonExpired bool `protobuf:"varint,4,opt,name=non_expired,json=nonExpired" json:"non_expired,omitempty"`
    // ID of a token server private key used to sign the token.
    SigningKeyId string `protobuf:"bytes,5,opt,name=signing_key_id,json=signingKeyId" json:"signing_key_id,omitempty"`
    // The deserialized token body.
    //
    // May be empty if token was malformed and couldn't be deserialized.
    TokenBody *api.OAuthTokenGrantBody `protobuf:"bytes,6,opt,name=token_body,json=tokenBody" json:"token_body,omitempty"`
    // The service_accounts.cfg rule that governs the service account usage.
    //
    // May be present even if the token is not allowed by it.
    MatchingRule *ServiceAccountRule `protobuf:"bytes,7,opt,name=matching_rule,json=matchingRule" json:"matching_rule,omitempty"`
    // True if current service_accounts.cfg rules allow this token.
    AllowedByRules       bool     `protobuf:"varint,8,opt,name=allowed_by_rules,json=allowedByRules" json:"allowed_by_rules,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

InspectOAuthTokenGrantResponse is return value of InspectOAuthTokenGrant RPC.

func (*InspectOAuthTokenGrantResponse) Descriptor Uses

func (*InspectOAuthTokenGrantResponse) Descriptor() ([]byte, []int)

func (*InspectOAuthTokenGrantResponse) GetAllowedByRules Uses

func (m *InspectOAuthTokenGrantResponse) GetAllowedByRules() bool

func (*InspectOAuthTokenGrantResponse) GetInvalidityReason Uses

func (m *InspectOAuthTokenGrantResponse) GetInvalidityReason() string

func (*InspectOAuthTokenGrantResponse) GetMatchingRule Uses

func (m *InspectOAuthTokenGrantResponse) GetMatchingRule() *ServiceAccountRule

func (*InspectOAuthTokenGrantResponse) GetNonExpired Uses

func (m *InspectOAuthTokenGrantResponse) GetNonExpired() bool

func (*InspectOAuthTokenGrantResponse) GetSigned Uses

func (m *InspectOAuthTokenGrantResponse) GetSigned() bool

func (*InspectOAuthTokenGrantResponse) GetSigningKeyId Uses

func (m *InspectOAuthTokenGrantResponse) GetSigningKeyId() string

func (*InspectOAuthTokenGrantResponse) GetTokenBody Uses

func (m *InspectOAuthTokenGrantResponse) GetTokenBody() *api.OAuthTokenGrantBody

func (*InspectOAuthTokenGrantResponse) GetValid Uses

func (m *InspectOAuthTokenGrantResponse) GetValid() bool

func (*InspectOAuthTokenGrantResponse) ProtoMessage Uses

func (*InspectOAuthTokenGrantResponse) ProtoMessage()

func (*InspectOAuthTokenGrantResponse) Reset Uses

func (m *InspectOAuthTokenGrantResponse) Reset()

func (*InspectOAuthTokenGrantResponse) String Uses

func (m *InspectOAuthTokenGrantResponse) String() string

func (*InspectOAuthTokenGrantResponse) XXX_DiscardUnknown Uses

func (m *InspectOAuthTokenGrantResponse) XXX_DiscardUnknown()

func (*InspectOAuthTokenGrantResponse) XXX_Marshal Uses

func (m *InspectOAuthTokenGrantResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*InspectOAuthTokenGrantResponse) XXX_Merge Uses

func (dst *InspectOAuthTokenGrantResponse) XXX_Merge(src proto.Message)

func (*InspectOAuthTokenGrantResponse) XXX_Size Uses

func (m *InspectOAuthTokenGrantResponse) XXX_Size() int

func (*InspectOAuthTokenGrantResponse) XXX_Unmarshal Uses

func (m *InspectOAuthTokenGrantResponse) XXX_Unmarshal(b []byte) error

type IsRevokedCertRequest Uses

type IsRevokedCertRequest struct {
    Ca                   string   `protobuf:"bytes,1,opt,name=ca" json:"ca,omitempty"`
    Sn                   string   `protobuf:"bytes,2,opt,name=sn" json:"sn,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

IsRevokedCertRequest contains a name of the CA and a cert serial number.

func (*IsRevokedCertRequest) Descriptor Uses

func (*IsRevokedCertRequest) Descriptor() ([]byte, []int)

func (*IsRevokedCertRequest) GetCa Uses

func (m *IsRevokedCertRequest) GetCa() string

func (*IsRevokedCertRequest) GetSn Uses

func (m *IsRevokedCertRequest) GetSn() string

func (*IsRevokedCertRequest) ProtoMessage Uses

func (*IsRevokedCertRequest) ProtoMessage()

func (*IsRevokedCertRequest) Reset Uses

func (m *IsRevokedCertRequest) Reset()

func (*IsRevokedCertRequest) String Uses

func (m *IsRevokedCertRequest) String() string

func (*IsRevokedCertRequest) XXX_DiscardUnknown Uses

func (m *IsRevokedCertRequest) XXX_DiscardUnknown()

func (*IsRevokedCertRequest) XXX_Marshal Uses

func (m *IsRevokedCertRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsRevokedCertRequest) XXX_Merge Uses

func (dst *IsRevokedCertRequest) XXX_Merge(src proto.Message)

func (*IsRevokedCertRequest) XXX_Size Uses

func (m *IsRevokedCertRequest) XXX_Size() int

func (*IsRevokedCertRequest) XXX_Unmarshal Uses

func (m *IsRevokedCertRequest) XXX_Unmarshal(b []byte) error

type IsRevokedCertResponse Uses

type IsRevokedCertResponse struct {
    Revoked              bool     `protobuf:"varint,1,opt,name=revoked" json:"revoked,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

IsRevokedCertResponse is returned by IsRevokedCert

func (*IsRevokedCertResponse) Descriptor Uses

func (*IsRevokedCertResponse) Descriptor() ([]byte, []int)

func (*IsRevokedCertResponse) GetRevoked Uses

func (m *IsRevokedCertResponse) GetRevoked() bool

func (*IsRevokedCertResponse) ProtoMessage Uses

func (*IsRevokedCertResponse) ProtoMessage()

func (*IsRevokedCertResponse) Reset Uses

func (m *IsRevokedCertResponse) Reset()

func (*IsRevokedCertResponse) String Uses

func (m *IsRevokedCertResponse) String() string

func (*IsRevokedCertResponse) XXX_DiscardUnknown Uses

func (m *IsRevokedCertResponse) XXX_DiscardUnknown()

func (*IsRevokedCertResponse) XXX_Marshal Uses

func (m *IsRevokedCertResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*IsRevokedCertResponse) XXX_Merge Uses

func (dst *IsRevokedCertResponse) XXX_Merge(src proto.Message)

func (*IsRevokedCertResponse) XXX_Size Uses

func (m *IsRevokedCertResponse) XXX_Size() int

func (*IsRevokedCertResponse) XXX_Unmarshal Uses

func (m *IsRevokedCertResponse) XXX_Unmarshal(b []byte) error

type ListCAsResponse Uses

type ListCAsResponse struct {
    Cn                   []string `protobuf:"bytes,1,rep,name=cn" json:"cn,omitempty"`
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

ListCAsResponse is returned by ListCAs.

func (*ListCAsResponse) Descriptor Uses

func (*ListCAsResponse) Descriptor() ([]byte, []int)

func (*ListCAsResponse) GetCn Uses

func (m *ListCAsResponse) GetCn() []string

func (*ListCAsResponse) ProtoMessage Uses

func (*ListCAsResponse) ProtoMessage()

func (*ListCAsResponse) Reset Uses

func (m *ListCAsResponse) Reset()

func (*ListCAsResponse) String Uses

func (m *ListCAsResponse) String() string

func (*ListCAsResponse) XXX_DiscardUnknown Uses

func (m *ListCAsResponse) XXX_DiscardUnknown()

func (*ListCAsResponse) XXX_Marshal Uses

func (m *ListCAsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ListCAsResponse) XXX_Merge Uses

func (dst *ListCAsResponse) XXX_Merge(src proto.Message)

func (*ListCAsResponse) XXX_Size Uses

func (m *ListCAsResponse) XXX_Size() int

func (*ListCAsResponse) XXX_Unmarshal Uses

func (m *ListCAsResponse) XXX_Unmarshal(b []byte) error

type ServiceAccountRule Uses

type ServiceAccountRule struct {
    // A descriptive name of this rule, for the audit log.
    Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    // Email of developers that own this rule, to know who to contact.
    Owner []string `protobuf:"bytes,2,rep,name=owner" 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" 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" 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" 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" 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" 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" 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" json:"max_grant_validity_duration,omitempty"`
    XXX_NoUnkeyedLiteral     struct{} `json:"-"`
    XXX_unrecognized         []byte   `json:"-"`
    XXX_sizecache            int32    `json:"-"`
}

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.

func (*ServiceAccountRule) Descriptor Uses

func (*ServiceAccountRule) Descriptor() ([]byte, []int)

func (*ServiceAccountRule) GetAllowedScope Uses

func (m *ServiceAccountRule) GetAllowedScope() []string

func (*ServiceAccountRule) GetEndUser Uses

func (m *ServiceAccountRule) GetEndUser() []string

func (*ServiceAccountRule) GetMaxGrantValidityDuration Uses

func (m *ServiceAccountRule) GetMaxGrantValidityDuration() int64

func (*ServiceAccountRule) GetName Uses

func (m *ServiceAccountRule) GetName() string

func (*ServiceAccountRule) GetOwner Uses

func (m *ServiceAccountRule) GetOwner() []string

func (*ServiceAccountRule) GetProxy Uses

func (m *ServiceAccountRule) GetProxy() []string

func (*ServiceAccountRule) GetServiceAccount Uses

func (m *ServiceAccountRule) GetServiceAccount() []string

func (*ServiceAccountRule) GetServiceAccountGroup Uses

func (m *ServiceAccountRule) GetServiceAccountGroup() []string

func (*ServiceAccountRule) GetTrustedProxy Uses

func (m *ServiceAccountRule) GetTrustedProxy() []string

func (*ServiceAccountRule) ProtoMessage Uses

func (*ServiceAccountRule) ProtoMessage()

func (*ServiceAccountRule) Reset Uses

func (m *ServiceAccountRule) Reset()

func (*ServiceAccountRule) String Uses

func (m *ServiceAccountRule) String() string

func (*ServiceAccountRule) XXX_DiscardUnknown Uses

func (m *ServiceAccountRule) XXX_DiscardUnknown()

func (*ServiceAccountRule) XXX_Marshal Uses

func (m *ServiceAccountRule) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAccountRule) XXX_Merge Uses

func (dst *ServiceAccountRule) XXX_Merge(src proto.Message)

func (*ServiceAccountRule) XXX_Size Uses

func (m *ServiceAccountRule) XXX_Size() int

func (*ServiceAccountRule) XXX_Unmarshal Uses

func (m *ServiceAccountRule) XXX_Unmarshal(b []byte) error

type ServiceAccountRuleDefaults Uses

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" 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" json:"max_grant_validity_duration,omitempty"`
    XXX_NoUnkeyedLiteral     struct{} `json:"-"`
    XXX_unrecognized         []byte   `json:"-"`
    XXX_sizecache            int32    `json:"-"`
}

ServiceAccountRuleDefaults specifies some default values applied to all service account rules, to reduce duplication.

func (*ServiceAccountRuleDefaults) Descriptor Uses

func (*ServiceAccountRuleDefaults) Descriptor() ([]byte, []int)

func (*ServiceAccountRuleDefaults) GetAllowedScope Uses

func (m *ServiceAccountRuleDefaults) GetAllowedScope() []string

func (*ServiceAccountRuleDefaults) GetMaxGrantValidityDuration Uses

func (m *ServiceAccountRuleDefaults) GetMaxGrantValidityDuration() int64

func (*ServiceAccountRuleDefaults) ProtoMessage Uses

func (*ServiceAccountRuleDefaults) ProtoMessage()

func (*ServiceAccountRuleDefaults) Reset Uses

func (m *ServiceAccountRuleDefaults) Reset()

func (*ServiceAccountRuleDefaults) String Uses

func (m *ServiceAccountRuleDefaults) String() string

func (*ServiceAccountRuleDefaults) XXX_DiscardUnknown Uses

func (m *ServiceAccountRuleDefaults) XXX_DiscardUnknown()

func (*ServiceAccountRuleDefaults) XXX_Marshal Uses

func (m *ServiceAccountRuleDefaults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAccountRuleDefaults) XXX_Merge Uses

func (dst *ServiceAccountRuleDefaults) XXX_Merge(src proto.Message)

func (*ServiceAccountRuleDefaults) XXX_Size Uses

func (m *ServiceAccountRuleDefaults) XXX_Size() int

func (*ServiceAccountRuleDefaults) XXX_Unmarshal Uses

func (m *ServiceAccountRuleDefaults) XXX_Unmarshal(b []byte) error

type ServiceAccountsPermissions Uses

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" 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" json:"defaults,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                    `json:"-"`
    XXX_unrecognized     []byte                      `json:"-"`
    XXX_sizecache        int32                       `json:"-"`
}

ServiceAccountsPermissions is read from service_accounts.cfg in luci-config.

func (*ServiceAccountsPermissions) Descriptor Uses

func (*ServiceAccountsPermissions) Descriptor() ([]byte, []int)

func (*ServiceAccountsPermissions) GetDefaults Uses

func (m *ServiceAccountsPermissions) GetDefaults() *ServiceAccountRuleDefaults

func (*ServiceAccountsPermissions) GetRules Uses

func (m *ServiceAccountsPermissions) GetRules() []*ServiceAccountRule

func (*ServiceAccountsPermissions) ProtoMessage Uses

func (*ServiceAccountsPermissions) ProtoMessage()

func (*ServiceAccountsPermissions) Reset Uses

func (m *ServiceAccountsPermissions) Reset()

func (*ServiceAccountsPermissions) String Uses

func (m *ServiceAccountsPermissions) String() string

func (*ServiceAccountsPermissions) XXX_DiscardUnknown Uses

func (m *ServiceAccountsPermissions) XXX_DiscardUnknown()

func (*ServiceAccountsPermissions) XXX_Marshal Uses

func (m *ServiceAccountsPermissions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ServiceAccountsPermissions) XXX_Merge Uses

func (dst *ServiceAccountsPermissions) XXX_Merge(src proto.Message)

func (*ServiceAccountsPermissions) XXX_Size Uses

func (m *ServiceAccountsPermissions) XXX_Size() int

func (*ServiceAccountsPermissions) XXX_Unmarshal Uses

func (m *ServiceAccountsPermissions) XXX_Unmarshal(b []byte) error

type TokenServerConfig Uses

type TokenServerConfig struct {
    // List of CAs we trust.
    CertificateAuthority []*CertificateAuthorityConfig `protobuf:"bytes,1,rep,name=certificate_authority,json=certificateAuthority" json:"certificate_authority,omitempty"`
    XXX_NoUnkeyedLiteral struct{}                      `json:"-"`
    XXX_unrecognized     []byte                        `json:"-"`
    XXX_sizecache        int32                         `json:"-"`
}

TokenServerConfig is read from tokenserver.cfg in luci-config.

func (*TokenServerConfig) Descriptor Uses

func (*TokenServerConfig) Descriptor() ([]byte, []int)

func (*TokenServerConfig) GetCertificateAuthority Uses

func (m *TokenServerConfig) GetCertificateAuthority() []*CertificateAuthorityConfig

func (*TokenServerConfig) ProtoMessage Uses

func (*TokenServerConfig) ProtoMessage()

func (*TokenServerConfig) Reset Uses

func (m *TokenServerConfig) Reset()

func (*TokenServerConfig) String Uses

func (m *TokenServerConfig) String() string

func (*TokenServerConfig) XXX_DiscardUnknown Uses

func (m *TokenServerConfig) XXX_DiscardUnknown()

func (*TokenServerConfig) XXX_Marshal Uses

func (m *TokenServerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TokenServerConfig) XXX_Merge Uses

func (dst *TokenServerConfig) XXX_Merge(src proto.Message)

func (*TokenServerConfig) XXX_Size Uses

func (m *TokenServerConfig) XXX_Size() int

func (*TokenServerConfig) XXX_Unmarshal Uses

func (m *TokenServerConfig) XXX_Unmarshal(b []byte) error

Package admin imports 12 packages (graph) and is imported by 16 packages. Updated 2018-08-20. Refresh now. Tools for package owners.