Files
docker-agent/pkg/runtime
David Gageot 2c5e4de390 fix(safety): make the classified command the one the handlers execute
shell and run_background_job now resolve cmd/command via
safety.CommandArg over an exact-key map instead of encoding/json struct
tags, whose case-insensitive last-wins matching let
{"cmd":"ls","CMD":"rm -rf x"} run a command the runtime never
classified.

Permission rules and session grants for command tools are matched
against args with the executed command mirrored under the canonical
"cmd" key, so a `shell:cmd=sudo*` deny can no longer be dodged with the
"command" alias and "always allow" grants keep matching alias calls.

Assisted-By: Claude
2026-09-04 13:58:08 +02:00
..
2026-06-29 10:50:40 +02:00
2026-05-09 19:04:38 +03:00