hyperhive/nix/templates
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas cc962d0685 feat(#2023): inject OTEL auth header at runtime, never in the nix store (mara: b)
Per mara: a secret in the nix store is not acceptable. The non-secret
OTEL config (telemetry-enable, endpoint, protocol, resource attributes)
stays in the world-readable managed settings json; the auth header is
handled separately at runtime so it never touches the store.

New hive-otel-header oneshot (only when otel.enable && headersCredential
is set): inherits the forwarded otel-headers systemd credential via
LoadCredential, reads it at start, and merges OTEL_EXPORTER_OTLP_HEADERS
into the agent's 0600 ~/.claude/settings.json env block via jq. claude
layers the user env on top of the managed settings, so both the harness
turn-loop and hivectl choom (same agent user) export with auth. The
token is read from disk at start and never copied into the nix store or
the world-readable managed file.

Ordering is best-effort (before=, not a hard dep): a failure leaves the
harness running and telemetry exporting unauthenticated. headersCredential
option description updated to reflect it's now wired.

nix fmt clean.
2026-06-27 20:31:10 +02:00
..
agent-base.nix refactor: remove hyperhive.role option — there is only one role: agent 2026-06-04 14:31:44 +02:00
harness-base.nix feat(#2023): inject OTEL auth header at runtime, never in the nix store (mara: b) 2026-06-27 20:31:10 +02:00
manager.nix fix(#1896): remove dead forge_notify reason drop-list + auto-unsubscribe 2026-06-24 23:07:48 +02:00
weston-vnc.nix gui: one shared dbus session bus for the gui session (#1906) 2026-06-24 00:06:07 +02:00