[grid] Dynamic Grid standalone support passing basic auth credential#17072
[grid] Dynamic Grid standalone support passing basic auth credential#17072
Conversation
Signed-off-by: Viet Nguyen Duc <nguyenducviet4496@gmail.com>
PR TypeBug fix, Enhancement Description
|
| Relevant files | |||
|---|---|---|---|
| Bug fix |
|
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||||||||||||
There was a problem hiding this comment.
Pull request overview
Adds Basic Auth support when the Docker Node waits for a spawned browser container (standalone image) to become ready, using the same SE_ROUTER_USERNAME / SE_ROUTER_PASSWORD environment variables that can enable Grid Basic Auth.
Changes:
- Apply Basic Auth credentials from
SE_ROUTER_USERNAME/SE_ROUTER_PASSWORDto theHttpClientused to poll/status. - Emit a warning when
/statusresponds with HTTP 401 to hint at missing credentials. - Introduce a small helper (
applyBasicAuth) to encapsulate the env var lookup andClientConfigauthentication wiring.
🔗 Related Issues
💥 What does this PR do?
Dynamic Grid in Docker deploy passing all env variables
SE_*to browser containers.When deploying Dynamic Grid in Standalone Docker,
SE_ROUTER_USERNAME,SE_ROUTER_PASSWORDto enable Grid basic authen, then it also passes to the browser container to start a session (using container standalone). There is a step to verify server to startWithout basic auth, this step will never pass event container is up fully.
So, Node Docker will get credential from env var to HttpClient config.
🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes