otel: stop handing hive-c0re the upstream auth credential
hive-c0re's container-resource exporter already targets this hive's own collector (environment.nix derives the bridge address), so the upstream header it was loaded with has nowhere to be presented: that hop is unauthenticated for every producer on the host, and the credential belongs to the swarm tier, which is the one that leaves the swarm. Drop the LoadCredential entry and the auth_headers() reader with it. The option itself stays -- swarm-otel.nix is its real consumer, via EnvironmentFile on the collector unit. Also corrects three descriptions that this makes false, or that were already false: the module doc claimed to reuse the config "Claude Code's in-container SDK export uses", which stopped being true when agents moved off that path; the nix comment claimed the secret is "the same one the agent containers get, forwarded via nspawn --load-credential", which lost its last producer earlier; and docs/observability.md described an Authorization header on a hop that will no longer send one. The headersCredential option's own docs already said it reaches "neither an agent container nor a hive's own collector" -- this makes that true rather than aspirational.
This commit is contained in:
parent
a87dd4b2fe
commit
5ca5433e0b
3 changed files with 27 additions and 50 deletions
|
|
@ -256,10 +256,9 @@ reference above); custom per-data-point labels can be passed with
|
|||
|
||||
When OTEL is enabled, **hive-c0re itself** also exports each agent
|
||||
container's resource load — the same cgroup gauges shown on the dashboard
|
||||
LOAD tab — to the configured `endpoint`, reusing the same
|
||||
`services.hyperhive.otel` config (no separate toggle). These come from the
|
||||
host, not the in-container Claude SDK, so they cover containers even when
|
||||
their agent is idle.
|
||||
LOAD tab — to this hive's own collector, exactly like an agent does and with
|
||||
no separate toggle. These come from the host, not the in-container Claude SDK,
|
||||
so they cover containers even when their agent is idle.
|
||||
|
||||
Emitted via the OpenTelemetry Rust SDK, using the
|
||||
[semconv `container.*`](https://opentelemetry.io/docs/specs/semconv/system/container-metrics/)
|
||||
|
|
@ -284,9 +283,9 @@ labels (`hive`, `swarm`, …) ride on the resource via
|
|||
`extraResourceAttributes`.
|
||||
|
||||
Cadence follows `metricIntervalMs` (default 60s). Transport is OTLP/HTTP
|
||||
(JSON) to `<endpoint>`; the auth header is loaded onto hive-c0re's own unit
|
||||
via systemd `LoadCredential` (from the same `headersCredential` file) and
|
||||
sent as `Authorization`.
|
||||
(JSON) to the hive collector's bridge address, with no auth header — that
|
||||
first hop is unauthenticated for every producer on this host, and the upstream
|
||||
credential stays on the swarm tier.
|
||||
|
||||
## Agent-emitted custom metrics (`hive-metric`)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue