Help us shape the future of Go! Take the 2026 Go Developer Survey

selfupdate

package
v2.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: BSD-3-Clause Imports: 17 Imported by: 0

Documentation

Overview

Package selfupdate verifies release checksums. Valid signatures do not prevent replay of older releases.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Verifier

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

Verifier authenticates checksum bytes against the configured release keys and Sigstore infrastructure.

func New

func New(ctx context.Context) (*Verifier, error)

New loads Sigstore infrastructure trust from TUF, using unexpired cached metadata offline.

func NewVerifier

func NewVerifier(infrastructure root.TrustedMaterial, publicKeys [][]byte) (*Verifier, error)

NewVerifier uses injected infrastructure trust and PEM release keys, ignoring bundle public-key hints.

func (*Verifier) Verify

func (v *Verifier) Verify(checksums, bundleJSON []byte) error

Verify requires a release-key signature, transparency-log inclusion, and an observer timestamp.

Jump to

Keyboard shortcuts

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