Documentation
¶
Overview ¶
Package common implements common SGX functions.
Index ¶
- func AttestationWorker(interval time.Duration, logger *logging.Logger, ...)
- func EndorseCapabilityTEE(ctx context.Context, identity *identity.Identity, ...)
- func InitMetrics()
- func UpdateAttestationMetrics(runtimeID common.Namespace, kind component.TEEKind, err error)
- func UpdateRuntimeQuote(ctx context.Context, conn protocol.Connection, quote *pcs.QuoteBundle) ([]byte, error)
- type QuotePolicyProvider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttestationWorker ¶
func AttestationWorker( interval time.Duration, logger *logging.Logger, hp *sandbox.HostInitializerParams, updateCapabilityFunc func(context.Context, *sandbox.HostInitializerParams) (*node.CapabilityTEE, error), )
AttestationWorker is the periodic re-attestation worker loop.
It should be started in its own goroutine.
func EndorseCapabilityTEE ¶
func EndorseCapabilityTEE( ctx context.Context, identity *identity.Identity, capabilityTEE *node.CapabilityTEE, conn protocol.Connection, logger *logging.Logger, )
EndorseCapabilityTEE endorses the given CapabilityTEE and submits the signed endorsement to the runtime over the given connection.
func InitMetrics ¶
func InitMetrics()
InitMetrics registers the metrics collectors if metrics are enabled.
func UpdateAttestationMetrics ¶
UpdateAttestationMetrics updates the attestation metrics if metrics are enabled.
func UpdateRuntimeQuote ¶
func UpdateRuntimeQuote(ctx context.Context, conn protocol.Connection, quote *pcs.QuoteBundle) ([]byte, error)
UpdateRuntimeQuote sends the given quote bundle to the runtime so it can be configured for remote attestation purposes. The runtime responds with a signed attestation.
Types ¶
type QuotePolicyProvider ¶ added in v0.2601.0
type QuotePolicyProvider interface {
// Get returns the quote policy for the specified RONL deployment.
Get(ctx context.Context, runtimeID common.Namespace, version version.Version) (*sgxQuote.Policy, error)
}
QuotePolicyProvider provides quote policies.
Click to show internal directories.
Click to hide internal directories.