attestation

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MagicPass = "magic_pass" // only for testing outside of the google cloud
View Source
const OIDCTokenType = TokenType("OIDC") // currently not used
View Source
const PKITokenType = TokenType("PKI")

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

type Container struct {
	ImageID string `json:"image_id"`
}

type NeededClaims

type NeededClaims struct {
	HWModel string  `json:"hwmodel"`
	SubMods SubMods `json:"submods"`
	jwt.RegisteredClaims
}

GoogleTeeClaims represents the claims present in a Google Cloud TEE attestation JWT.

Based on https://cloud.google.com/confidential-computing/confidential-space/docs/reference/token-claims.

func (*NeededClaims) CodeHash

func (c *NeededClaims) CodeHash() (common.Hash, error)

func (*NeededClaims) Platform

func (c *NeededClaims) Platform() (common.Hash, error)

type SubMods

type SubMods struct {
	Container Container `json:"container"`
}

type TokenType

type TokenType string

Jump to

Keyboard shortcuts

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