swarm-controller: validate create_agent's name via hive_types::Ident
This commit is contained in:
parent
1d31bb6e80
commit
7577d149cf
3 changed files with 19 additions and 2 deletions
|
|
@ -34,6 +34,10 @@ futures-util.workspace = true
|
|||
# same shape `hive-c0re/src/job_queue/scheduler.rs` uses over its own graph.
|
||||
hive-jobq.workspace = true
|
||||
hive-jobq-wire.workspace = true
|
||||
# Validates `POST /api/agents`' `name` before it becomes `agent`/`repo`
|
||||
# everywhere downstream — see `create_agent`'s doc comment for why this is
|
||||
# defense-in-depth, not the only gate (per an argus review finding).
|
||||
hive-types.workspace = true
|
||||
# `auth`'s bridge client — same crate the bridge itself uses to define the
|
||||
# request/response shape, so the two ends cannot drift. `forge.rs` also
|
||||
# uses this directly for `StatusCode` in its error-classification helpers.
|
||||
|
|
|
|||
Loading…
Reference in a new issue