clusteragent

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRuntimeQueryUnavailable = errors.New("runtime query channel unavailable")
	ErrRuntimeQueryRejected    = errors.New("runtime query rejected")
)
View Source
var ErrInvalidCSR = errors.New("agent certificate request is invalid")
View Source
var ErrPeerIdentityMismatch = errors.New("agent peer identity does not match")

Functions

func TrustBundleID

func TrustBundleID(clientAuthorityID string, serverCAPEM []byte) (string, error)

Types

type AgentSessionValidator

type AgentSessionValidator interface {
	ValidateAgentSession(context.Context, string, string) error
}

type BindingRegistry

type BindingRegistry interface {
	BindingObservationTargets(context.Context, string) ([]kubernetesbinding.Target, error)
	ReconcileBindingObservations(context.Context, string, string, uint64, []kubernetesbinding.Observation, bool, time.Time) error
}

type CertificateSigner

type CertificateSigner interface {
	Sign(string, []byte, time.Time) (IssuedCertificate, error)
}

type GRPCService

type GRPCService struct {
	clusteragentv1alpha1.UnimplementedClusterAgentServiceServer
	// contains filtered or unexported fields
}

func NewGRPCService

func NewGRPCService(registry AgentRegistry, dispatcher RuntimeDispatcher, heartbeatInterval time.Duration) *GRPCService

func (*GRPCService) ConfigureCertificateRenewal

func (s *GRPCService) ConfigureCertificateRenewal(signer CertificateSigner, serverCAPEM []byte, trustBundleID string)

ConfigureCertificateRenewal enables authenticated key rotation. The server trust root returned to the Agent is deliberately distinct from the CA that signs Agent client identities.

func (*GRPCService) ConfigureRuntimeQueries

func (s *GRPCService) ConfigureRuntimeQueries(broker *RuntimeQueryBroker)

type IssuedCertificate

type IssuedCertificate struct {
	CertificatePEM   []byte
	CACertificatePEM []byte
	Serial           string
	Fingerprint      []byte
	NotAfter         time.Time
}

type RuntimeObservability

type RuntimeObservability struct {
	// contains filtered or unexported fields
}

func NewRuntimeObservability

func NewRuntimeObservability(broker *RuntimeQueryBroker) *RuntimeObservability

func (*RuntimeObservability) CurrentEvents

func (*RuntimeObservability) CurrentLogs

func (r *RuntimeObservability) CurrentLogs(ctx context.Context, scope observability.Scope, since time.Time, search string, limit int) (observability.LogBatch, error)

func (*RuntimeObservability) CurrentMetrics

type RuntimeQueryBroker

type RuntimeQueryBroker struct {
	// contains filtered or unexported fields
}

func NewRuntimeQueryBroker

func NewRuntimeQueryBroker(validator AgentSessionValidator) *RuntimeQueryBroker

func (*RuntimeQueryBroker) Query

type RuntimeQueryResponse

type RuntimeQueryResponse struct {
	Chunks []*clusteragentv1alpha1.RuntimeQueryChunk
}

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

func NewSigner

func NewSigner(certificatePEM, privateKeyPEM []byte, validity time.Duration) (*Signer, error)

func (*Signer) AuthorityID

func (s *Signer) AuthorityID() string

func (*Signer) Sign

func (s *Signer) Sign(installationID string, csrPEM []byte, now time.Time) (IssuedCertificate, error)

Jump to

Keyboard shortcuts

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