mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 18:04:59 +00:00
fix(doctor): warn that approvals.exec.enabled only disables forwarding
Co-authored-by: nomadonwheels196 <nomadonwheels196@users.noreply.github.com>
This commit is contained in:
@@ -12,6 +12,14 @@ export async function noteSecurityWarnings(cfg: OpenClawConfig) {
|
||||
const warnings: string[] = [];
|
||||
const auditHint = `- Run: ${formatCliCommand("openclaw security audit --deep")}`;
|
||||
|
||||
if (cfg.approvals?.exec?.enabled === false) {
|
||||
warnings.push(
|
||||
"- Note: approvals.exec.enabled=false disables approval forwarding only.",
|
||||
" Host exec gating still comes from ~/.openclaw/exec-approvals.json.",
|
||||
` Check local policy with: ${formatCliCommand("openclaw approvals get --gateway")}`,
|
||||
);
|
||||
}
|
||||
|
||||
// ===========================================
|
||||
// GATEWAY NETWORK EXPOSURE CHECK
|
||||
// ===========================================
|
||||
|
||||
Reference in New Issue
Block a user