Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
agent
command
|
|
|
control-plane
command
|
|
|
control-plane/gensettings
command
settingsgen writes schema.json + reference.md + example.config.toml.
|
settingsgen writes schema.json + reference.md + example.config.toml. |
|
sqlite-rebuild
command
Command sqlite-rebuild prints a ready-made goose file for rebuilding an SQLite table (create/copy/drop/rename/index within crash-safe transactional bounds).
|
Command sqlite-rebuild prints a ready-made goose file for rebuilding an SQLite table (create/copy/drop/rename/index within crash-safe transactional bounds). |
|
db
|
|
|
migrations/postgres
Package pgmigrations exposes the PostgreSQL goose migrations as an embed.FS so the storage/postgres package (and any tooling that wants to run the same migrations out-of-band) can call goose.SetBaseFS without duplicating the .sql files.
|
Package pgmigrations exposes the PostgreSQL goose migrations as an embed.FS so the storage/postgres package (and any tooling that wants to run the same migrations out-of-band) can call goose.SetBaseFS without duplicating the .sql files. |
|
migrations/sqlite
Package sqlitemigrations exposes the SQLite goose migrations as an embed.FS so the storage/sqlite package (and any tooling that wants to run the same migrations out-of-band) can call goose.SetBaseFS without duplicating the .sql files.
|
Package sqlitemigrations exposes the SQLite goose migrations as an embed.FS so the storage/sqlite package (and any tooling that wants to run the same migrations out-of-band) can call goose.SetBaseFS without duplicating the .sql files. |
|
internal
|
|
|
agent/atomicfile
Package atomicfile writes a file so a crash mid-write can never leave a truncated or half-updated file behind.
|
Package atomicfile writes a file so a crash mid-write can never leave a truncated or half-updated file behind. |
|
agent/runtimeevents
Package runtimeevents holds the agent-side in-memory ring of recent slog records that are eligible for shipping to the panel via the existing Connect bidi stream.
|
Package runtimeevents holds the agent-side in-memory ring of recent slog records that are eligible for shipping to the panel via the existing Connect bidi stream. |
|
agent/telemtrestart
Package telemtrestart restarts the local Telemt process for the agent.
|
Package telemtrestart restarts the local Telemt process for the agent. |
|
clientjob
Package clientjob defines the JSON wire contract for client.* rollout jobs exchanged between the control-plane and the agent inside the gatewayrpc.JobCommand.payload_json field.
|
Package clientjob defines the JSON wire contract for client.* rollout jobs exchanged between the control-plane and the agent inside the gatewayrpc.JobCommand.payload_json field. |
|
configcanon
Package configcanon defines the ONE canonical serialization of managed Telemt config sections shared by the agent (which hashes its observed config) and the control plane (which hashes targets and compares against observed).
|
Package configcanon defines the ONE canonical serialization of managed Telemt config sections shared by the agent (which hashes its observed config) and the control plane (which hashes targets and compares against observed). |
|
controlplane/agentrevocation
Package agentrevocation owns the wire-level contract used by the control-plane to tell a deregistered agent that it should stop reconnecting.
|
Package agentrevocation owns the wire-level contract used by the control-plane to tell a deregistered agent that it should stop reconnecting. |
|
controlplane/agents
Package agents holds the control-plane's agent-lifecycle domain model.
|
Package agents holds the control-plane's agent-lifecycle domain model. |
|
controlplane/api
Package api holds the control-plane's presentation (view) types β the JSON shapes served to the HTTP/WebSocket layer and mirrored by the agents LiveStore.
|
Package api holds the control-plane's presentation (view) types β the JSON shapes served to the HTTP/WebSocket layer and mirrored by the agents LiveStore. |
|
controlplane/archguard
Package archguard contains architecture-guard tests for the control-plane layering rules (P8.2).
|
Package archguard contains architecture-guard tests for the control-plane layering rules (P8.2). |
|
controlplane/audit/hashchain
Package hashchain implements the audit_events tamper-evident chain primitives.
|
Package hashchain implements the audit_events tamper-evident chain primitives. |
|
controlplane/auth
internal/controlplane/auth/repository.go
|
internal/controlplane/auth/repository.go |
|
controlplane/clients
Package clients holds the control-plane's managed-client domain model.
|
Package clients holds the control-plane's managed-client domain model. |
|
controlplane/clients/storagetest
internal/controlplane/clients/storagetest/repository_contract.go
|
internal/controlplane/clients/storagetest/repository_contract.go |
|
controlplane/configtargets
Package configtargets owns the persistence + read semantics of per-scope agent config targets (the desired editable Telemt sections for a fleet group or a single agent).
|
Package configtargets owns the persistence + read semantics of per-scope agent config targets (the desired editable Telemt sections for a fleet group or a single agent). |
|
controlplane/csrf
Package csrf owns the double-submit CSRF token primitives used by the panel HTTP layer.
|
Package csrf owns the double-submit CSRF token primitives used by the panel HTTP layer. |
|
controlplane/discovered
internal/controlplane/discovered/doc.go
|
internal/controlplane/discovered/doc.go |
|
controlplane/discovered/storagetest
internal/controlplane/discovered/storagetest/repository_contract.go
|
internal/controlplane/discovered/storagetest/repository_contract.go |
|
controlplane/egress
Package egress owns outbound-HTTP safety for the control-plane: which destinations the panel is allowed to reach and the clients that enforce it.
|
Package egress owns outbound-HTTP safety for the control-plane: which destinations the panel is allowed to reach and the clients that enforce it. |
|
controlplane/enrollment
Package enrollment records and exposes the per-attempt timeline of every agent enrollment, both inbound (agent dials panel) and outbound (panel dials agent), so operators can see why a connection succeeded or failed.
|
Package enrollment records and exposes the per-attempt timeline of every agent enrollment, both inbound (agent dials panel) and outbound (panel dials agent), so operators can see why a connection succeeded or failed. |
|
controlplane/enrollment/enrollmenttest
Package enrollmenttest provides an in-memory enrollment.Store for tests in other packages (server HTTP integration, agenttransport outbound).
|
Package enrollmenttest provides an in-memory enrollment.Store for tests in other packages (server HTTP integration, agenttransport outbound). |
|
controlplane/eventbus
Package eventbus provides an in-process audit/event pub/sub facade.
|
Package eventbus provides an in-process audit/event pub/sub facade. |
|
controlplane/events
Package events pins the panel's event taxonomy as a compile-time contract (P3-3.3, audit #22).
|
Package events pins the panel's event taxonomy as a compile-time contract (P3-3.3, audit #22). |
|
controlplane/fleet
internal/controlplane/fleet/repository.go
|
internal/controlplane/fleet/repository.go |
|
controlplane/fleet/integrations
Package integrations wires fleet-group integrations (e.g.
|
Package integrations wires fleet-group integrations (e.g. |
|
controlplane/gateway
Package gateway hosts the agent-facing gRPC gateway: the Connect bidi-stream (dispatch/receive/snapshot/audit/result loops), unary certificate renewal, and enrollment-step ingestion.
|
Package gateway hosts the agent-facing gRPC gateway: the Connect bidi-stream (dispatch/receive/snapshot/audit/result loops), unary certificate renewal, and enrollment-step ingestion. |
|
controlplane/geoip
Package geoip owns the GeoLite2 City and ASN reader lifecycle and the three acquisition strategies (auto, url, local).
|
Package geoip owns the GeoLite2 City and ASN reader lifecycle and the three acquisition strategies (auto, url, local). |
|
controlplane/history
Package history is the read-only domain service behind the panel's time-series history endpoints (server load, DC health, per-client IP history).
|
Package history is the read-only domain service behind the panel's time-series history endpoints (server load, DC health, per-client IP history). |
|
controlplane/kdf
Package kdf owns the project's Argon2id parameter profiles and is the single point where argon2.IDKey is invoked in the control plane (password hashes, the CA-key blob, and the secret-vault master key).
|
Package kdf owns the project's Argon2id parameter profiles and is the single point where argon2.IDKey is invoked in the control plane (password hashes, the CA-key blob, and the secret-vault master key). |
|
controlplane/metrics
Package metrics owns the Prometheus collector bundle exposed at /metrics by the control-plane.
|
Package metrics owns the Prometheus collector bundle exposed at /metrics by the control-plane. |
|
controlplane/otel
Package otel sets up OpenTelemetry distributed tracing for the Panvex control-plane.
|
Package otel sets up OpenTelemetry distributed tracing for the Panvex control-plane. |
|
controlplane/runtimeevents
Package runtimeevents holds the panel-side per-agent in-memory rings of runtime events shipped over the Connect bidi stream.
|
Package runtimeevents holds the panel-side per-agent in-memory rings of runtime events shipped over the Connect bidi stream. |
|
controlplane/secretvault
Package secretvault provides at-rest envelope encryption for sensitive fields (client secrets, TOTP secrets, etc.).
|
Package secretvault provides at-rest envelope encryption for sensitive fields (client secrets, TOTP secrets, etc.). |
|
controlplane/server
internal/controlplane/server/clients_uow_adapter.go
|
internal/controlplane/server/clients_uow_adapter.go |
|
controlplane/sessions
Package sessions holds the control-plane's HTTP session/auth support primitives that are orthogonal to the core auth service (controlplane/auth).
|
Package sessions holds the control-plane's HTTP session/auth support primitives that are orthogonal to the core auth service (controlplane/auth). |
|
controlplane/settings
Package settings implements the central settings registry, bootstrap loader, and operational store described in docs/superpowers/specs/2026-05-07-settings-foundation-design.md.
|
Package settings implements the central settings registry, bootstrap loader, and operational store described in docs/superpowers/specs/2026-05-07-settings-foundation-design.md. |
|
controlplane/storage
Package storage exposes a request-scoped DB query counter so HTTP middleware can observe the number of database round-trips a single panel request fires.
|
Package storage exposes a request-scoped DB query counter so HTTP middleware can observe the number of database round-trips a single panel request fires. |
|
controlplane/storage/migrateguard
Package migrateguard refuses to apply migrations that would silently destroy production data unless the operator has explicitly opted in.
|
Package migrateguard refuses to apply migrations that would silently destroy production data unless the operator has explicitly opted in. |
|
controlplane/storage/postgres
Package postgres bulk insert helpers (P3-PERF-01a).
|
Package postgres bulk insert helpers (P3-PERF-01a). |
|
controlplane/storage/sqlite
Package sqlite bulk insert helpers (P3-PERF-01a).
|
Package sqlite bulk insert helpers (P3-PERF-01a). |
|
controlplane/storage/sqlshared
Package sqlshared holds the pieces of the SQLite and PostgreSQL stores that are genuinely dialect-independent.
|
Package sqlshared holds the pieces of the SQLite and PostgreSQL stores that are genuinely dialect-independent. |
|
controlplane/storage/uow
internal/controlplane/storage/uow/uow.go
|
internal/controlplane/storage/uow/uow.go |
|
controlplane/subscription
Package subscription holds pure, dependency-free helpers for rendering a client's public subscription page: parsing Telegram proxy links into display labels.
|
Package subscription holds pure, dependency-free helpers for rendering a client's public subscription page: parsing Telegram proxy links into display labels. |
|
controlplane/updates
Package updates holds the control-plane's self-update subsystem: release discovery, artifact download, SHA-256 checksum verification, and atomic binary replacement.
|
Package updates holds the control-plane's self-update subsystem: release discovery, artifact download, SHA-256 checksum verification, and atomic binary replacement. |
|
controlplane/webhooks
Package webhooks implements at-least-once outbound HTTP delivery of control-plane events (agent.unhealthy, audit.security, job.failed, β¦) to operator-configured receivers (Slack, PagerDuty, custom).
|
Package webhooks implements at-least-once outbound HTTP delivery of control-plane events (agent.unhealthy, audit.security, job.failed, β¦) to operator-configured receivers (Slack, PagerDuty, custom). |
|
loadtest
Package loadtest hosts the realistic concurrency scenarios that exercise the control-plane subsystems under representative agent-fleet load.
|
Package loadtest hosts the realistic concurrency scenarios that exercise the control-plane subsystems under representative agent-fleet load. |
|
logutil
Package logutil constructs the project's shared slog handler.
|
Package logutil constructs the project's shared slog handler. |
|
requestid
Package requestid carries a request/correlation ID on a context.
|
Package requestid carries a request/correlation ID on a context. |
|
restartspec
Package restartspec parses a Telemt restart-strategy spec string into an argv slice, without doing anything about actually running it.
|
Package restartspec parses a Telemt restart-strategy spec string into an argv slice, without doing anything about actually running it. |
|
security
Package security mints and validates short-lived agent enrollment tokens.
|
Package security mints and validates short-lived agent enrollment tokens. |
|
seqid
Package seqid decodes the control-plane's prefixed monotonic IDs ("client-0000042", "job-000000000042", "audit-17").
|
Package seqid decodes the control-plane's prefixed monotonic IDs ("client-0000042", "job-000000000042", "audit-17"). |
|
telemtjob
Package telemtjob defines the JSON wire contract for the telemt.update job exchanged between the control-plane and the agent inside the gatewayrpc.JobCommand.payload_json field.
|
Package telemtjob defines the JSON wire contract for the telemt.update job exchanged between the control-plane and the agent inside the gatewayrpc.JobCommand.payload_json field. |
|
updatehosts
Package updatehosts is the single source of truth for the hosts Panvex trusts to serve release artifacts.
|
Package updatehosts is the single source of truth for the hosts Panvex trusts to serve release artifacts. |
|
Package openapi provides primitives to interact with the openapi HTTP API.
|
Package openapi provides primitives to interact with the openapi HTTP API. |
|
scripts
|
|
|
migration-test
command
Command seed populates a fresh SQLite database with synthetic, production-scale data for the goose migration stress test (P2-TEST-03).
|
Command seed populates a fresh SQLite database with synthetic, production-scale data for the goose migration stress test (P2-TEST-03). |
Click to show internal directories.
Click to hide internal directories.