Authentication
Meridian uses bearer tokens scoped to one project and one region. There are no account-wide keys.
Token scopes
| Scope | Allows |
|---|---|
ingest | POST /v1/events and GET /v1/health |
query | GET /v1/query and saved-query reads |
admin | Token rotation, schema changes, retention settings |
Creating a token
Tokens are shown once, at creation time. The console stores only a SHA-256 digest, so a lost token cannot be recovered — mint a new one and revoke the old.
meridian tokens create --project prj_9f21 --scope ingest --region us-east
Rotation
Rotate on a fixed schedule, and immediately on suspected exposure. Both the old and the new token remain valid during a 60-minute overlap window, which is long enough to roll a fleet without dropping events:
meridian tokens rotate tok_7d3a --overlap 60m
Storage guidance
- Read tokens from the environment or a secret manager at process start; never bake them into an image.
- Do not log the
Authorizationheader. Meridian redacts it server-side, but your own logs will not. - Use distinct tokens per service so a single leak can be revoked without touching the rest of the fleet.
Tokens sent over plain HTTP are rejected before authentication is attempted, and the attempt is recorded in the audit log with the source address.
Audit log
Every authentication failure is retained for 30 days. Successful requests are sampled at 1% and include the token prefix, the region, and the resolved project:
{"ts":"2026-11-25T09:31:44Z","token":"tok_7d3a…","project":"prj_9f21",
"region":"us-east","result":"ok","source":"198.51.100.24"}