Documentation ¶
Index ¶
- func BuiltIn() catalog.Plugin
- type CAClient
- type CertificateAuthoritySpec
- type Config
- type Plugin
- func (p *Plugin) Configure(ctx context.Context, req *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
- func (p *Plugin) GetPluginInfo(ctx context.Context, req *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
- func (p *Plugin) MintX509CA(request *upstreamauthority.MintX509CARequest, ...) error
- func (p *Plugin) PublishJWTKey(*upstreamauthority.PublishJWTKeyRequest, ...) error
- func (p *Plugin) SetLogger(log hclog.Logger)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CAClient ¶
type CAClient interface { CreateCertificate(ctx context.Context, req *privatecapb.CreateCertificateRequest) (*privatecapb.Certificate, error) LoadCertificateAuthorities(ctx context.Context, spec CertificateAuthoritySpec) ([]*privatecapb.CertificateAuthority, error) }
type Config ¶
type Config struct {
RootSpec CertificateAuthoritySpec `hcl:"root_cert_spec,block"`
}
type Plugin ¶
type Plugin struct { // gRPC requires embedding either the "Unimplemented" or "Unsafe" stub as // a way of opting in or out of forward build compatibility. upstreamauthority.UnimplementedUpstreamAuthorityServer // contains filtered or unexported fields }
func (*Plugin) Configure ¶
func (p *Plugin) Configure(ctx context.Context, req *plugin.ConfigureRequest) (*plugin.ConfigureResponse, error)
func (*Plugin) GetPluginInfo ¶
func (p *Plugin) GetPluginInfo(ctx context.Context, req *plugin.GetPluginInfoRequest) (*plugin.GetPluginInfoResponse, error)
func (*Plugin) MintX509CA ¶
func (p *Plugin) MintX509CA(request *upstreamauthority.MintX509CARequest, stream upstreamauthority.UpstreamAuthority_MintX509CAServer) error
Mints an X.509 CA and responds with the signed X.509 CA certificate chain and upstream X.509 roots. If supported by the implementation, subsequent responses on the stream contain upstream X.509 root updates, otherwise the RPC is completed after sending the initial response.
Implementation note: The stream should be kept open in the face of transient errors encountered while tracking changes to the upstream X.509 roots as SPIRE core will not reopen a closed stream until the next X.509 CA rotation.
func (*Plugin) PublishJWTKey ¶
func (p *Plugin) PublishJWTKey(*upstreamauthority.PublishJWTKeyRequest, upstreamauthority.UpstreamAuthority_PublishJWTKeyServer) error
PublishJWTKey is not yet supported. It will return with GRPC Unimplemented error
Click to show internal directories.
Click to hide internal directories.