Documentation
¶
Overview ¶
Package release owns VPN release discovery and verification policy.
Index ¶
- Constants
- func ArchiveName(version string) (string, error)
- func CheckLatestVersion() string
- func IsCandidate(version string) bool
- func IsStable(version string) bool
- func Newer(current, target string) (bool, error)
- func SameMajor(current, target string) (bool, error)
- func ValidVersion(version string) bool
- func VerifyChecksum(version, workDir string) error
- type KeyCheck
Constants ¶
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 ¶
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 Newer ¶
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 ¶
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 ¶
ValidVersion accepts canonical stable versions and numbered release candidates. Other prerelease forms and build metadata are outside VPN's release contract.
func VerifyChecksum ¶
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 ¶
VerifySignature requires the pinned VPN signer and rejects bad signatures. The caller owns the private workspace containing the downloaded manifest.