release

package
v0.7.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: AGPL-3.0 Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package release owns VPN release discovery and verification policy.

Index

Constants

View Source
const SigningFingerprint = "AFA0EBACDC9A4C4AA7B0154AC97CE10F170BA5FE"

SigningFingerprint is the primary fingerprint of the vpn release signing key. Source: generated locally; public key hosted at keys.openpgp.org and kept in this repository as keys/ripsline.asc. Cross-check: docs/verifying.md publishes the same fingerprint used for manual release verification.

Variables

This section is empty.

Functions

func ArchiveName

func ArchiveName(version string) (string, error)

ArchiveName identifies the fixed amd64 VPN artifact for a release version.

func CheckLatestVersion

func CheckLatestVersion() string

CheckLatestVersion returns a cached version for up to 24 hours or fetches it over Tor and may update the cache. Empty means unavailable; a returned version does not establish update eligibility or that it is newer than this binary.

func IsCandidate

func IsCandidate(version string) bool

func IsStable

func IsStable(version string) bool

func Newer

func Newer(current, target string) (bool, error)

Newer reports release ordering, including RCs before their stable version. Development builds and noncanonical strings cannot authorize an update. Compatibility of a newer release is a separate check.

func SameMajor

func SameMajor(current, target string) (bool, error)

SameMajor checks the current self-update version shape and major-version policy for both the TUI and helper. It does not establish newer ordering or compatibility of an appliance transition.

func ValidVersion

func ValidVersion(version string) bool

ValidVersion accepts canonical stable versions and numbered release candidates. Other prerelease forms and build metadata are outside VPN's release contract.

func VerifyChecksum

func VerifyChecksum(version, workDir string) error

VerifyChecksum requires exactly one entry for the requested archive in the already authenticated SHA256SUMS. Checking other files cannot authorize it.

Types

type KeyCheck

type KeyCheck struct {
	// WebsiteUnreachable means the key server could not be asked, so a
	// revocation published only there was not seen.
	WebsiteUnreachable bool
}

KeyCheck reports how the release key was obtained.

func VerifySignature

func VerifySignature(workDir string) (KeyCheck, error)

VerifySignature requires the pinned VPN signer and rejects bad signatures. The caller owns the private workspace containing the downloaded manifest.

Jump to

Keyboard shortcuts

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