Modules§
- registration
- Single, machine-bound, encrypted store for this host’s canopy enrollment.
Structs§
- Canopy
Client - HTTP client with auth configured for talking to a canopy server.
- NewEvent
- Payload for posting to
POST /eventson a canopy server. - Redacted
- Wraps a sensitive value so its
Debugoutput doesn’t leak the contents.
Enums§
- Severity
- Severities accepted by the canopy
/eventsAPI.
Constants§
- CERT_
RENEW_ AFTER - How long to wait between scheduled cert renewals.
- DEFAULT_
CANOPY_ URL - TAILSCALE_
URL - Base URL for the tailscale-internal canopy endpoint.
Functions§
- client_
builder - A
reqwest::ClientBuildercarrying thebestooluser_agentforversion. - device_
identity - Build a short-lived self-signed client certificate from a P-256 device key
PEM and wrap it as a reqwest mTLS [
Identity]. - tailscale_
client - Probe the canopy tailnet endpoint, returning a client routed to it if reachable.
- user_
agent - Browser-style user-agent string, e.g.
bestool/1.2.3 (Linux 7.0.9 Arch Linux; x86_64).
Type Aliases§
- Client
Builder Factory - Factory producing the base
reqwest::ClientBuilderfor canopy’s clients.