hyperhive/hive-c0re/src/workers
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 7b1b1d9db8 fix(#2164): address argus review — Option<String> secret + stale hook cleanup
Two issues flagged by argus in PR #2388 review:

1. Empty-key fallback: when load_or_generate() failed, webhook_secret was
   String::new(). An attacker knowing this could forge deliveries with a
   valid HMAC of the empty key. Fix: change to Option<String>; on None,
   skip hook registration entirely and return 503 from /webhook/* handlers
   (rather than 401 with a misleadingly-verifiable empty-key HMAC).

2. Stale hook cleanup: on upgrade from old code, old loopback hooks
   (http://127.0.0.1:.../webhook/knowledge, .../webhook/config-pr) were
   left alongside the new domain-URL hook. Fix: during ensure_webhook /
   ensure_config_pr_webhook, after listing hooks, delete any that end with
   our path suffix but point at a different base URL.

clippy + nix fmt clean.
2026-07-12 02:21:33 +02:00
..
agent_sockets.rs refactor(#2285): repoint all hive-c0re host-path consumers to paths.rs 2026-07-10 20:32:03 +02:00
auto_update.rs refactor(#2285): inline remaining 1:1 path wrappers (meta_dir, marker fns, host_conf_path) 2026-07-10 20:32:03 +02:00
crash_watch.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00
knowledge.rs fix(#2164): address argus review — Option<String> secret + stale hook cleanup 2026-07-12 02:21:33 +02:00
mcp_sockets.rs refactor(#2290): replace mcp_sockets poll with event-driven register_agent 2026-07-09 01:08:38 +02:00
mod.rs feat(#2290): split ensure_runtime — dirs to lifecycle, listeners to mcp_sockets supervisor 2026-07-09 00:58:51 +02:00
reminder_scheduler.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00
scheduled_prompts_worker.rs refactor(hive-c0re): group src-root files into submodules 2026-07-06 22:38:47 +02:00