Skip to content

Don't register as system proxy or install the root certificate by default when CI is set #2059

Description

@waldekmastykarz

Problem

In CI, Dev Proxy is typically started from a script, and callers point their app at it through HTTPS_PROXY. The current defaults change machine-wide state on the runner:

  • asSystemProxy defaults to true.
  • installCert defaults to true, and in non-interactive sessions the trust prompt auto-answers "y" (RootCertificateTrust.PromptForTrust returns "y" when CI is set or stdin is redirected).

Dev Proxy already detects CI to suppress the API token in output, so the signal is available.

Proposal

When the CI environment variable is set, default asSystemProxy and installCert to false unless they're set explicitly via the CLI or the config file. Log one line at startup explaining the effective values and how to override them. Document the behaviour in the CI/CD overview.

This changes behaviour for existing CI pipelines that rely on the system proxy, so it needs a release note.

Found while evaluating how coding agents use Dev Proxy: VS Code + GitHub Copilot Chat with Claude Sonnet 5.5, Dev Proxy 4.0.0 on Windows, 5 runs of the task "add a CI script that starts Dev Proxy in the background, starts and stops recording through the API around npm start, and shuts Dev Proxy down through the API".

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

Metadata

Metadata

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions