compat

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

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