Files
k8smanager-cli/backend
Your Name a964a23b8f feat: 支持多行命令
多行命令通过 create_subprocess_shell 执行,逐行检查白名单:
- 每行独立检查 binary 是否在白名单中
- 取所有行的最高权限模式(如有任何一行是 write,整体需审批)
- 去除 _parse_command 中的多行拒绝逻辑
- _has_shell_operators 检测到 \n 也返回 True
2026-07-25 15:27:43 +08:00
..
2026-07-25 15:27:43 +08:00