server

package
v2.16.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package server implements the gRPC endpoint of Constellation's node join service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	joinproto.UnimplementedAPIServer
	// contains filtered or unexported fields
}

Server implements the core logic of Constellation's node join service.

func New

func New(
	measurementSalt []byte, ca certificateAuthority,
	joinTokenGetter joinTokenGetter, dataKeyGetter dataKeyGetter, kubeClient kubeClient, log *slog.Logger,
) (*Server, error)

New initializes a new Server.

func (*Server) IssueJoinTicket

IssueJoinTicket handles join requests of Constellation nodes. A node will receive: - stateful disk encryption key. - Kubernetes join token. - measurement salt and secret, to mark the node as initialized. In addition, control plane nodes receive: - a decryption key for CA certificates uploaded to the Kubernetes cluster.

func (*Server) IssueRejoinTicket

IssueRejoinTicket issues a ticket for nodes to rejoin cluster.

func (*Server) Run

func (s *Server) Run(creds credentials.TransportCredentials, port string) error

Run starts the gRPC server on the given port, using the provided tlsConfig.

Jump to

Keyboard shortcuts

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