All projects

signal-pro(vider)

One place where every signal on a machine is recorded, behind one access model: signed events, a policy signed with a hardware key, and no agent holding a token.

One record of everything that happens on a box. Producers push CloudEvents signed with their own key over a socket that belongs to the source, so the source is never a field a producer can claim; pull plugins fetch a source's feed from a watermark, so an outage is caught up instead of lost. One writer verifies the signature, stamps the source, checks the declared labels and types, deduplicates on source and id and assigns a sequence in commit order. A sensitivity label is mandatory on an ordered scale, and what a producer may stamp is a policy allowance, not a request. A refused label, an undeclared type, a wrong key or a conflicting duplicate is quarantined rather than dropped, visible to the operator alone with the rule that refused it, and releasable when it turns out to be right.

Access is one signed policy, re-checked on every read. Cedar policy, schema and security settings travel in a bundle the operator signs with a hardware key, user verification required; each bundle carries a serial and the hash of the one before it, so an older or out-of-chain bundle is refused, and the high-water mark lives in a trust log outside the database. Visibility is computed at ingest and re-checked when a signal is read, so a narrowed policy takes effect on the next read and no stale copy holds a door open. Tokens are PASETO from an issuer outside the hub and carry identity claims only, every rule lives in the policy, and a token lives in a proxy: one per launched run, which dies with the run, or one service unit per fixed identity. The client reaches the proxy's socket and never the credential. The hub refuses to start until a host-side isolation check finds no path from the agents' user to the container runtime or to the store.

Delivery is a durable subscription, not a firehose. A reader subscribes to its own attributes, then claims one signal at a time under a lease or watches every signal that matches, with one position per subscription that survives a restart and a recorded reason for every gap below it. Sessions decide redelivery instead of leases doing it quietly: a lost session's claims are offered again, a live session past its lease is marked stalled and never duplicated, and a signal is exhausted after three offers. catchup lists what was missed with the reasons, readers shows who reads what and how far behind they are. Agents get the five operations they need over MCP, subscribe, wait, ack, heartbeat and catchup, and talk only to their proxy's socket, so one server process is one session and no token enters their reach. Applications emit through a library that never blocks and never raises, keeping signals in an on-disk outbox while the hub is down, and read through a handler whose return value is the acknowledgement.

It is built to be operated on one machine. The hub, ingest and each plugin run under their own uid in one container, PostgreSQL in another, on a rootless daemon owned by a dedicated user. Status is a digest, backup and restore cover the store and the trust log, and a restore bumps an epoch so stale positions are refused. The specification came first and the tests keep checking it: ingest, access policy, delivery, clients and operations each carry their own suite, and the documentation lists what is not implemented yet, delegation of permissions and cryptographic erasure of data (crypto-shredding) among it.