Skip to content

Commit 7eb2382

Browse files
author
lpb-docs
committed
fix(support): bridge AGENT_BROWSER_ALLOWED_DOMAINS so env-file hardening works
1 parent 0ba5500 commit 7eb2382

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

lpb.conf.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ LPB_AGENT_BROWSER_CONTENT_BOUNDARIES=true
5757
LPB_AGENT_BROWSER_CONFIRM_ACTIONS=delete,download,cookie_delete,file_access
5858
# Daemon idle timeout (5 minutes) — auto-cleanup after inactivity
5959
LPB_AGENT_BROWSER_IDLE_TIMEOUT_MS=300000
60+
# Opt-in navigation allowlist (unset = unrestricted, the default — fine for general use).
61+
# When set: only listed domains are reachable at navigation; localhost is NOT
62+
# auto-allowed (list localhost,127.0.0.1 explicitly), and a fresh browser context
63+
# is required (no --restore, no CDP). start.sh bridges it to the bare name.
64+
# LPB_AGENT_BROWSER_ALLOWED_DOMAINS=localhost,127.0.0.1,*.github.com
6065

6166
# ─── Misc ───────────────────────────────────────────────────────────────
6267
# Persist gh CLI auth to ~/.config/gh inside container

support/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ BARE_NAMES=(
145145
AGENT_BROWSER_CONFIRM_ACTIONS
146146
AGENT_BROWSER_IDLE_TIMEOUT_MS
147147
AGENT_BROWSER_SESSION
148+
AGENT_BROWSER_ALLOWED_DOMAINS
148149
)
149150
# Container-safe fallbacks per bare name (absent = pure LPB_→bare promotion).
150151
declare -A BARE_FALLBACKS=(

0 commit comments

Comments
 (0)