FAQ
How do I use it?
Day to day, you open the dashboard. It lists every target's latest status per key (match,
drift, missing, present, unverifiable), flags stale targets, and shows the last 20
collector runs. To try it locally, follow Getting started. For recipes
(a no-credential smoke run, SQL queries, adding a service), see
Usage examples.
How does it run?
A GitHub Actions workflow runs the collector every six hours. It fetches manifests, builds a
pinned env-sync, checks every service against a reviewed allowlist, proves that env-sync
enforces its platform guard, then runs one env-sync diff per service and writes the results to
Postgres. The dashboard only reads. Full walkthrough: How it runs.
Where are the setup instructions?
- Local: Getting started.
- Scheduled collector (environment, secrets, first repo): Setup (GitHub Actions).
- Every flag, file format and table: Collector reference, and
apps/collector/README.mdin the repo.
Why not a hosted SaaS?
Because the collector holds real credentials: a 1Password service account that can read plaintext, plus platform keys. Those belong in an environment you control, with branch protection and code-owner review on what runs. The only things stored are fingerprints and statuses, in your own Postgres, behind roles that can do exactly one thing each.
What can it see?
The collector process can see a lot, and the docs say so: the 1Password service account can read the plaintext of every secret in its scoped vaults. What it stores is much less: per key, a status and a 12-character fingerprint. What the browser gets is less again: a status word per key. Fingerprints are compared on the server and never sent to the page. See Architecture → the credential model.
What if the collector dies?
A failing run turns the job red. A collector that stops running altogether is caught too: every
target turns stale once it has no ok snapshot within STALE_AFTER_HOURS (default 26). Silence never looks like health: a target last seen months ago still
appears, marked stale. What is missing is active alerting: nothing pages anyone yet.
What if env-sync changes?
The collector depends only on the env-sync diff --format json contract (schemaVersion: 1), not
on its code. A planned TS-to-Go rewrite of env-sync changes nothing here: you put a different
binary on PATH. Contract drift shows up as a failed run, not silent bad data. If a new binary
stops enforcing ENV_SYNC_ALLOWED_PLATFORMS, the probes catch it and the job exits 3 before
collecting anything.
Who can read and write the drift data?
Two roles, one job each. The collector's Postgres role is INSERT-only, with no SELECT. The viewer's role
is SELECT-only. All three tables use FORCE ROW LEVEL SECURITY, and anon, authenticated
and service_role are revoked. On the platform side, each env-sync child gets only the
credentials its reviewed scope allows, and env-sync itself refuses targets outside that scope.
How do I add a platform?
Today only CapRover has a credential rule. A second platform has hard preconditions, not
recommendations: one workflow job per platform, env-sync refusing adapters outside its scope
(met by 0.5.0), and an identity check pinning each target to its reviewed record. Then it needs a
rule in src/platform-rules.ts, an IDENTITY_CHECKS entry in scripts/preflight.ts, a parity
fixture, and its variables in the job's env: block and turbo.json collect.env. Tests fail
until all of these agree. The checklist is in apps/collector/README.md, "Adding a platform".
Why are my dotenv targets missing?
On purpose. A dotenv file exists only on the machine that wrote it, so a central collector can't observe it. The collector drops those targets, and the pre-flight rejects any service that has one.