trustv1

package
v0.0.0-...-5c79d48 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	trustpb.UnimplementedTrustServiceServer
	// contains filtered or unexported fields
}

Service implements the teleport.trust.v1.TrustService RPC service.

func NewService

func NewService(cfg *ServiceConfig) (*Service, error)

NewService returns a new trust gRPC service.

func (*Service) DeleteCertAuthority

func (s *Service) DeleteCertAuthority(ctx context.Context, req *trustpb.DeleteCertAuthorityRequest) (*emptypb.Empty, error)

DeleteCertAuthority deletes the matching cert authority.

func (*Service) GenerateHostCert

GenerateHostCert takes a public key in the OpenSSH `authorized_keys` format and returns a SSH certificate signed by the Host CA.

func (*Service) GetCertAuthorities

GetCertAuthorities retrieves the cert authorities with the specified type.

func (*Service) GetCertAuthority

func (s *Service) GetCertAuthority(ctx context.Context, req *trustpb.GetCertAuthorityRequest) (*types.CertAuthorityV2, error)

GetCertAuthority retrieves the matching certificate authority.

func (*Service) RotateCertAuthority

RotateCertAuthority rotates a cert authority.

func (*Service) RotateExternalCertAuthority

RotateExternalCertAuthority rotates external certificate authority, this method is called by remote trusted cluster and is used to update only public keys and certificates of the certificate authority.

func (*Service) UpsertCertAuthority

func (s *Service) UpsertCertAuthority(ctx context.Context, req *trustpb.UpsertCertAuthorityRequest) (*types.CertAuthorityV2, error)

UpsertCertAuthority creates or updates the provided cert authority.

type ServiceConfig

type ServiceConfig struct {
	Authorizer authz.Authorizer
	Cache      services.AuthorityGetter
	Backend    services.Trust
	Logger     *logrus.Entry
	AuthServer authServer
}

ServiceConfig holds configuration options for the trust gRPC service.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL