auth
etrack.infra.config.auth
infra/config/auth: how a driver authenticates — configuration only; any driver's target carries one.
Picked by type, so it reads from the environment as JSON: {"type": "bearer", "token": "…"}. Secrets are SecretStr,
masked everywhere but at the wire. google reads Application Default Credentials (a service account file, the
gcloud login, or the metadata server on Google Cloud) and keeps a fresh OAuth token; quota_project is billed for
the calls (x-goog-user-project), required by the Telemetry API.
BasicAuth
Bases: BaseModel
Authorization: Basic <user:password> — Langfuse's keys, Grafana Cloud's instance and token.
BearerAuth
Bases: BaseModel
Authorization: Bearer <token>.
GoogleAuth
Bases: BaseModel
Google Application Default Credentials: a token refreshed before it expires, the quota project billed.
HeadersAuth
Bases: BaseModel
Fixed headers, every value a secret: API keys (x-api-key), tenant ids, anything a backend names.
NoAuth
Bases: BaseModel
Nothing to present: a local collector, a sidecar, a network that is the boundary.