Documentation ¶
Overview ¶
Package proxy contains the core proxy functionality and aTLS configuration
Index ¶
- Constants
- func CreateAttestationIssuer(log *slog.Logger, attestationType AttestationType) (atls.Issuer, error)
- func CreateAttestationValidators(log *slog.Logger, attestationType AttestationType, jsonMeasurementsPath string) ([]atls.Validator, error)
- func ExtractMeasurementsFromExtension(ext *pkix.Extension, v variant.Variant) (map[uint32][]byte, error)
- type AttestationLogger
- type AttestationType
- type MultiValidator
- type Proxy
Constants ¶
View Source
const ( AttestationTypeHeader string = "X-Flashbots-Attestation-Type" MeasurementHeader string = "X-Flashbots-Measurement" )
View Source
const AvailableAttestationTypes string = "none, azure-tdx"
Variables ¶
This section is empty.
Functions ¶
func CreateAttestationIssuer ¶
Types ¶
type AttestationLogger ¶
func (AttestationLogger) Info ¶
func (w AttestationLogger) Info(format string, args ...any)
func (AttestationLogger) Warn ¶
func (w AttestationLogger) Warn(format string, args ...any)
type AttestationType ¶
type AttestationType string
const ( AttestationNone AttestationType = "none" AttestationAzureTDX AttestationType = "azure-tdx" )
func ParseAttestationType ¶
func ParseAttestationType(attestationType string) (AttestationType, error)
type MultiValidator ¶
type MultiValidator struct {
// contains filtered or unexported fields
}
MultiValidator is a validator for Azure confidential VM attestation using TDX which accepts multiple measurements
func NewMultiValidator ¶
func NewMultiValidator(validators []atls.Validator) *MultiValidator
NewMultiValidator returns a new Validator for Azure confidential VM attestation using TDX which accepts multiple measurements
func (*MultiValidator) OID ¶
func (v *MultiValidator) OID() asn1.ObjectIdentifier
Click to show internal directories.
Click to hide internal directories.