Documentation ¶
Index ¶
- func BuiltIn() catalog.Plugin
- type AttestorConfig
- type AttestorPlugin
- func (p *AttestorPlugin) Attest(stream nodeattestor.NodeAttestor_AttestServer) error
- func (p *AttestorPlugin) Configure(ctx context.Context, req *spi.ConfigureRequest) (*spi.ConfigureResponse, error)
- func (p *AttestorPlugin) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
- type ClusterConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AttestorConfig ¶
type AttestorConfig struct {
Clusters map[string]*ClusterConfig `hcl:"clusters"`
}
AttestorConfig contains a map of clusters that uses cluster name as key
type AttestorPlugin ¶
type AttestorPlugin struct { nodeattestor.UnsafeNodeAttestorServer // contains filtered or unexported fields }
AttestorPlugin is a PSAT (Projected SAT) node attestor plugin
func (*AttestorPlugin) Attest ¶
func (p *AttestorPlugin) Attest(stream nodeattestor.NodeAttestor_AttestServer) error
func (*AttestorPlugin) Configure ¶
func (p *AttestorPlugin) Configure(ctx context.Context, req *spi.ConfigureRequest) (*spi.ConfigureResponse, error)
func (*AttestorPlugin) GetPluginInfo ¶
func (p *AttestorPlugin) GetPluginInfo(context.Context, *spi.GetPluginInfoRequest) (*spi.GetPluginInfoResponse, error)
type ClusterConfig ¶
type ClusterConfig struct { // Array of whitelisted service accounts names // Attestation is denied if coming from a service account that is not in the list ServiceAccountWhitelist []string `hcl:"service_account_whitelist"` // Audience for PSAT token validation // If audience is not configured, defaultAudience will be used // If audience value is set to an empty slice, k8s apiserver audience will be used Audience *[]string `hcl:"audience"` // Kubernetes configuration file path // Used to create a k8s client to query the API server. If string is empty, in-cluster configuration is used KubeConfigFile string `hcl:"kube_config_file"` // Node labels that are allowed to use as selectors AllowedNodeLabelKeys []string `hcl:"allowed_node_label_keys"` // Pod labels that are allowed to use as selectors AllowedPodLabelKeys []string `hcl:"allowed_pod_label_keys"` }
ClusterConfig holds a single cluster configuration
Click to show internal directories.
Click to hide internal directories.