Documentation
¶
Index ¶
- type Authority
- func (m *Authority) GetCertBundle(peerPublicKeyHashStr string) (Bundle, error)
- func (m *Authority) GetManifestsAndLatestCA() ([]*manifest.Manifest, *ca.CA)
- func (m *Authority) LatestManifest() (*manifest.Manifest, error)
- func (m *Authority) SNPValidateOpts(report *sevsnp.Report) (*validate.Options, error)
- func (m *Authority) SetManifest(mnfst *manifest.Manifest) error
- func (m *Authority) ValidateCallback(_ context.Context, report *sevsnp.Report, _ asn1.ObjectIdentifier, ...) error
- type Bundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authority ¶
type Authority struct {
// contains filtered or unexported fields
}
Authority manages the manifest state of Contrast.
func New ¶
func New(reg *prometheus.Registry, log *slog.Logger) *Authority
New creates a new Authority instance.
func (*Authority) GetCertBundle ¶
GetCertBundle retrieves the certificate bundle created for the peer identified by the given public key.
func (*Authority) GetManifestsAndLatestCA ¶
GetManifestsAndLatestCA retrieves the manifest history and the currently active CA instance.
func (*Authority) LatestManifest ¶
LatestManifest retrieves the active manifest.
func (*Authority) SNPValidateOpts ¶
SNPValidateOpts returns SNP validation options from reference values.
It also ensures that the policy hash in the report's HOSTDATA is allowed by the current manifest.
func (*Authority) SetManifest ¶
SetManifest updates the active manifest.
Click to show internal directories.
Click to hide internal directories.