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"`
}
type AttestorPlugin ¶
type AttestorPlugin struct { nodeattestorbase.Base // contains filtered or unexported fields }
func New ¶
func New() *AttestorPlugin
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 { // Path on disk to a PEM encoded file containing public keys used in validating tokens for that cluster // If use_token_review_api_validation is true, then this path is ignored and TokenReview API is used for validation ServiceAccountKeyFile string `hcl:"service_account_key_file"` // ServiceAccountWhitelist is a list of service account names, qualified by // namespace (for example, "default:blog" or "production:web") to allow for node attestation ServiceAccountWhitelist []string `hcl:"service_account_whitelist"` // UseTokenReviewAPI // If true token review API will be used for token validation // If false ServiceAccountKeyFile will be used for token validation UseTokenReviewAPI bool `hcl:"use_token_review_api_validation"` // Kubernetes configuration file path // Used to create a client to query the Kubernetes API server. If string is empty, in-cluster configuration is used KubeConfigFile string `hcl:"kube_config_file"` }
Click to show internal directories.
Click to hide internal directories.