psat

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuiltIn

func BuiltIn() catalog.Plugin

Types

type AttestorConfig

type AttestorConfig struct {
	// Cluster name where the agent lives
	Cluster string `hcl:"cluster"`
	// File path of PSAT
	TokenPath string `hcl:"token_path"`
}

AttestorConfig holds configuration for AttestorPlugin

type AttestorPlugin

type AttestorPlugin struct {
	nodeattestor.UnsafeNodeAttestorServer
	// contains filtered or unexported fields
}

AttestorPlugin is a PSAT (projected SAT) attestor plugin

func New

func New() *AttestorPlugin

New creates a new PSAT attestor plugin

func (*AttestorPlugin) Configure

func (p *AttestorPlugin) Configure(ctx context.Context, req *spi.ConfigureRequest) (resp *spi.ConfigureResponse, err error)

Configure decodes JSON config from request and populates AttestorPlugin with it

func (*AttestorPlugin) FetchAttestationData

FetchAttestationData loads PSAT from the configured path and send it to server node attestor

func (*AttestorPlugin) GetPluginInfo

Jump to

Keyboard shortcuts

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