Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
claimward-server
command
Command claimward-server is the Claimward VPN control plane.
|
Command claimward-server is the Claimward VPN control plane. |
|
internal
|
|
|
admin
Package admin serves the multi-tenant management API and the embedded Svelte WebUI under /admin.
|
Package admin serves the multi-tenant management API and the embedded Svelte WebUI under /admin. |
|
adminui
Package adminui embeds the built admin WebUI (Svelte + DaisyUI).
|
Package adminui embeds the built admin WebUI (Svelte + DaisyUI). |
|
api
Package api wires the HTTP handlers for claimward-vpn-server together with the OIDC verifier, IP allocator, peer store and WireGuard gateway.
|
Package api wires the HTTP handlers for claimward-vpn-server together with the OIDC verifier, IP allocator, peer store and WireGuard gateway. |
|
auth
Package auth authenticates the bearer credential presented by clients and extracts the identity claims used for authorization.
|
Package auth authenticates the bearer credential presented by clients and extracts the identity claims used for authorization. |
|
config
Package config loads claimward-vpn-server configuration from the environment.
|
Package config loads claimward-vpn-server configuration from the environment. |
|
fakeauthn
Package fakeauthn is a go-authn provider as far as this server can see one, for tests: discovery, a key set, a token endpoint for the gateway's own client, and the signed list of WireGuard peers.
|
Package fakeauthn is a go-authn provider as far as this server can see one, for tests: discovery, a key set, a token endpoint for the gateway's own client, and the signed list of WireGuard peers. |
|
grpcsrv
Package grpcsrv serves the RouteService over gRPC: it streams a client's tenant routes and pushes updates from the tenant.Store.
|
Package grpcsrv serves the RouteService over gRPC: it streams a client's tenant routes and pushes updates from the tenant.Store. |
|
ipam
Package ipam is a tiny in-memory IP address manager that hands out host addresses from a CIDR pool to enrolled peers.
|
Package ipam is a tiny in-memory IP address manager that hands out host addresses from a CIDR pool to enrolled peers. |
|
metrics
Package metrics exposes Prometheus metrics for the control plane at /metrics.
|
Package metrics exposes Prometheus metrics for the control plane at /metrics. |
|
peers
Package peers is the WireGuard keys people registered with a go-authn provider, as this gateway last read them (go-authn/wireguard).
|
Package peers is the WireGuard keys people registered with a go-authn provider, as this gateway last read them (go-authn/wireguard). |
|
ssfpoll
Package ssfpoll listens to a go-authn provider's Shared Signals (SSF 1.0, poll delivery, RFC 8936) for one thing: that somebody was disabled, so the list of WireGuard keys should be fetched NOW rather than at the next tick.
|
Package ssfpoll listens to a go-authn provider's Shared Signals (SSF 1.0, poll delivery, RFC 8936) for one thing: that somebody was disabled, so the list of WireGuard keys should be fetched NOW rather than at the next tick. |
|
store
Package store keeps the registry of enrolled peers in memory.
|
Package store keeps the registry of enrolled peers in memory. |
|
tenant
Package tenant is the multi-tenant route store: each tenant owns a set of WireGuard routes (AllowedIPs/DNS) and a broadcast channel so gRPC watchers of that tenant get pushed updates.
|
Package tenant is the multi-tenant route store: each tenant owns a set of WireGuard routes (AllowedIPs/DNS) and a broadcast channel so gRPC watchers of that tenant get pushed updates. |
|
wg
Package wg manages the WireGuard gateway: adding and removing peers on the kernel interface (e.g.
|
Package wg manages the WireGuard gateway: adding and removing peers on the kernel interface (e.g. |
Click to show internal directories.
Click to hide internal directories.