server

package
v2.7.0-pre Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: AGPL-3.0 Imports: 18 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, log *logger.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