attestation

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package attestation measures the executable and security configuration used by one Turnwire process.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Record

type Record struct {
	DeploymentID     string `json:"deployment_id"`
	Identity         string `json:"identity"`
	PublicKey        string `json:"public_key"`
	Version          string `json:"version"`
	Commit           string `json:"commit"`
	Modified         *bool  `json:"modified,omitempty"`
	ExecutableSHA256 string `json:"executable_sha256"`
	ConfigSHA256     string `json:"config_sha256"`
	PolicySHA256     string `json:"policy_sha256"`
	PeerSetSHA256    string `json:"peer_set_sha256"`
	Digest           string `json:"digest"`
}

Record contains non-secret deployment evidence. Digest is stable for the same binary and configuration and is safe to place in audit metadata.

func Measure

func Measure(cfg config.Config, publicKey string) (Record, error)

Measure hashes the running executable, complete validated config, policy, pinned peer set, identity, and build metadata.

Jump to

Keyboard shortcuts

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