chore(deps): update dependency jo-inc/camofox-browser to v1.8.0 #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "renovate/jo-inc-camofox-browser-1.x"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
1.7.4→1.8.0Release Notes
jo-inc/camofox-browser (jo-inc/camofox-browser)
v1.8.0: — Global Access Key, Memory Leak FixCompare Source
Global Access Key
CAMOFOX_ACCESS_KEYenv var — by @trader-payne (#586)If you expose camofox beyond loopback — on a VPS, in a Docker network, behind a reverse proxy — you've needed to rely on network-level controls or
CAMOFOX_API_KEY(which only gates cookie import). There was no single switch to require auth on every route.Set
CAMOFOX_ACCESS_KEYand every request must carryAuthorization: Bearer <key>. Three routes are conditionally exempt:GET /health— always open (Docker/Fly healthchecks need it)POST /sessions/:userId/cookies— exempt only whenCAMOFOX_API_KEYis also set (has its own gate)POST /stop— exempt only whenCAMOFOX_ADMIN_KEYis also set (has its own gate)If the dedicated key for an exempted route is not configured, the access key still gates it — defense-in-depth, no accidentally unprotected endpoints.
The access key also works as a superkey on
requireAuth()routes, so you don't need two tokens in a single request. 401 responses includeWWW-Authenticate: Bearer realm="camofox"per RFC 7235. Env var values are whitespace-trimmed to prevent copy-paste mistakes.Fully opt-in. If you don't set the env var, nothing changes.
Native Memory Leak Fix
browser.close()had a race condition that could lose the browser PID, leaving orphaned Firefox child processes alive after the context was torn down. On long-running servers this compounded — ~930MB leaked per orphaned browser tree.Three fixes:
closeBrowserFully()serializes concurrent close calls with a shared promise so the PID is never lost,_forceKillProcessTree()walks/procto find and SIGKILL orphaned children that escaped the process group, andcleanupStaleFirefoxProfiles()sweeps leftover temp directories fromenable_cache: truesessions on startup.Fixes & Improvements
NPM_TOKENsecretdocker pull ghcr.io/jo-inc/camofox-browser:1.8.0Thank You
Thanks to @trader-payne for the access key feature.
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot.