Skip to content

Provider endpoint overrides can send credentials over plain http #5153

Not planned

Description

@thymikee

Follow-up from the review of #5150, which refuses daemon, proxy and cloud credentials over plain http to non-loopback hosts.

The WebDriver provider paths are not covered yet. BrowserStack endpoint overrides (hub, session details, app upload; packages/provider-webdriver/src/browserstack-provider.ts) reach the WebDriver senders (packages/provider-webdriver/src/webdriver-transport.ts) and helper fetches with basic-auth credentials, and nothing refuses an http:// override to a non-loopback host.

Expected: apply the same credential-transport rule (https, or loopback http over a direct connection) to every provider send that carries credentials, through the shared host-kit credential primitive introduced in #5150. Keep the same typed refusal reason, and refuse before anything is sent.

Until this lands, docs/security-trust.md should not claim that provider credentials never travel over plain http.

Activity

  1. apex-sentinel-staging commented on Nov 27, 2026

    @apex-sentinel-staging

    Apex Sentinel · Issue review

    Suggested label: bug

    The issue reports a concrete security defect: BrowserStack WebDriver provider endpoint overrides can still transmit basic-auth credentials over plain http because the credential-transport check from #​5150 was not applied to those provider send paths.

    Required sections

    • Steps to reproduce (missing)
    • Expected and actual behavior (missing)
    • Version or environment (missing)
  2. added
    bug
    on Nov 28, 2026
  3. thymikee commented on Nov 28, 2026

    @thymikee
    MemberAuthor

    Closing as out of scope under ADR 0041. The credential transport rule covers first-party credentials (daemon, proxy, cloud, Metro bridge, upload tickets) at operator-configured URLs. Provider endpoint overrides such as BrowserStack hubs carry the provider's own credentials. Self-hosted WebDriver grids are commonly reached over plain http on private networks, so a blanket refusal there would break supported setups. A provider-specific rule needs its own decision.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions