Skip to content

Commit 4352f8d

Browse files
committed
fix(security): limit auto-pair to one-shot with 180s timeout
Auto-pair unconditionally approved ALL pending device pairing requests for 10 minutes on every sandbox start. On headless/cloud installs this is an open window for unauthorized device pairing. Changes: - Reduce initial timeout from 600s to 180s - After first approval, reset deadline to now+5s (one-shot exit) - has_browser convergence logic unchanged
1 parent d37a09f commit 4352f8d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎scripts/nemoclaw-start.sh‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ import json
7171
import subprocess
7272
import time
7373
74-
DEADLINE = time.time() + 600
74+
DEADLINE = time.time() + 180
7575
QUIET_POLLS = 0
7676
APPROVED = 0
7777
@@ -106,6 +106,8 @@ while time.time() < DEADLINE:
106106
print(f'[auto-pair] approved request={request_id}')
107107
elif aout or aerr:
108108
print(f'[auto-pair] approve failed request={request_id}: {(aerr or aout)[:400]}')
109+
if APPROVED >= 1:
110+
DEADLINE = time.time() + 5
109111
time.sleep(1)
110112
continue
111113

0 commit comments

Comments
 (0)