Skip to content

feat: rotate user-agent across 5 stealth profiles#11

Open
askalf wants to merge 1 commit into
masterfrom
feat/ua-rotation-stealth
Open

feat: rotate user-agent across 5 stealth profiles#11
askalf wants to merge 1 commit into
masterfrom
feat/ua-rotation-stealth

Conversation

@askalf
Copy link
Copy Markdown
Owner

@askalf askalf commented May 25, 2026

Adds a 5-entry user-agent pool covering the latest Chrome stable on Windows, macOS, Linux, Android, and iOS. Picked deterministically per session via sha256(sessionId) % poolLength, with a per-process fallback seed (process.pid + start time) when BROWSER_SESSION_ID is unset.

Why: every container previously presented whatever UA Chromium ships by default, so a fleet of bridges all looked identical in a target's logs. Now sessions spread across the pool while a single session stays stable across reconnects.

Verified locally: determinism (same seed -> same UA) and spread (5000 random seeds split ~1000 per bucket).

No new runtime deps, no workflow files touched, no package-lock changes. Source-only edit; CI builds the image.

Closes OPS-5964B32F064F4C5DB33885.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant