passthrough

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package passthrough provides a TEE attestation validator that accepts any attestation without verification, recording each use via a metric so the insecure path stays observable. INSECURE; intended only for local and test environments where fake (non-Nitro) enclaves are trusted.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validator

type Validator struct {
	// contains filtered or unexported fields
}

Validator accepts any attestation without verification. It implements the same validate methods as the Nitro validator so it can be swapped in wherever a validator is expected, and counts every call so the insecure passthrough path can be alerted on if ever enabled outside test environments.

func New

func New() (*Validator, error)

New returns a passthrough Validator.

func (*Validator) ValidateAttestation

func (v *Validator) ValidateAttestation(_, _, _ []byte) error

ValidateAttestation accepts any attestation, recording the use.

func (*Validator) ValidateAttestationWithRoots

func (v *Validator) ValidateAttestationWithRoots(_, _, _ []byte, _ string) error

ValidateAttestationWithRoots accepts any attestation, recording the use.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL