compat

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: AGPL-3.0 Imports: 6 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 compat is the daemon-side foundation for compat mode (WSS tunnel to the beacon). This file exposes the pinned root CA(s) the daemon uses to verify the beacon's TLS certificate.

Trust model:

  • The daemon binary ships with one or more Pilot Protocol root CAs baked in via //go:embed. These are the only roots trusted when `-tls-trust=pinned` (the default).
  • The beacon presents a leaf cert signed by one of these roots during the WSS upgrade. Standard TLS verifies the chain.
  • With `-tls-trust=system`, callers can opt into the OS trust store as a fallback (for users behind TLS-intercepting corp proxies). See SPEC-compat-mode.md §"Escape hatch".

During root rotation we keep both old and new roots in the embed set for one overlap release. Operators run `pilot-ca init-root` to mint a new root and commit the resulting `roots/prod-*.pem`. See docs/RUNBOOK-pilot-ca.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PinnedRoots

func PinnedRoots() (*x509.CertPool, error)

PinnedRoots returns a CertPool containing every root cert embedded in the daemon binary. Used when -tls-trust=pinned (the default).

Errors if no roots are embedded. We refuse to silently fall back to the system trust store — that decision must be explicit at the daemon CLI layer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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