Why promptfoo red team generation fails behind a corporate firewall
A red team run that stops during generation with a connection error is usually blocked by the network, not by promptfoo itself. promptfoo runs locally and evals talk directly with the model under test, but remote generation and grading of red team probes go to api.promptfoo.app. Corporate security tools, secure web gateways and egress firewalls may block that domain because the generated test prompts are designed to elicit harmful outputs, and a policy that flags outbound traffic of that kind will treat the call as suspicious.
Teams need this fix when a scan that worked on a developer laptop fails on a corporate workstation, in a CI runner or on a server in a restricted segment. The failure often appears as a generation or grading error partway through a run, which makes it easy to misread as a problem with the target application. Before changing anything, confirm with your network or security team whether the block is a category rule, a domain rule or a policy on the endpoint, and note which plugins and strategies depend on hosted generation, since those are the first casualties of a blocked run.
This page covers why the block happens, how to check connectivity to api.promptfoo.app from the machine that runs the scan, how to route traffic through a proxy with the standard HTTPS_PROXY variable, and what to do when access is refused. The promptfoo remote generation troubleshooting guide is the primary reference for the setting names and error patterns, and it should be checked against the version your team runs.
How to confirm api.promptfoo.app is the blocked call
This sequence proves whether the failing red team generation request is actually reaching api.promptfoo.app and where it stops, so the network team fixes the right control. Each check is read-only and leaves existing security controls in place.
Reproduce the failure with a minimal scan
The engineer running the scan on the affected machine runs a small red team with one plugin and a low test count, using the same configuration and Node.js version as the failing job. Record the exact command, the timestamp, the working directory and the output saved to a file. The step is done when the failure repeats and the output is saved, which confirms the problem is not a one-off or a configuration typo that the team has already fixed.
Read the remote generation error closely
The engineer reads the error text for the host name, the HTTP status, any connection or certificate message, and whether the message refers to remote generation. Remote generation errors are the ones promptfoo raises when it cannot reach its hosted generation service, which is distinct from a failing target application or an invalid model key. The step is done when the engineer can state in one sentence which request failed and what the error class suggests, such as a connection failure, a timeout or a rejected response.
Check DNS resolution for the hostname
From the same machine and user account that runs promptfoo, the engineer runs a standard lookup for api.promptfoo.app using the operating system resolver, such as
nslookupordig, and records the answer. Note whether the resolver is the corporate DNS server, whether the answer is a public address, a sinkhole address or no answer at all. The step is done when the result is recorded, because a sinkhole or NXDOMAIN answer points to DNS filtering rather than the proxy or firewall.Test TLS reachability on port 443
The engineer opens an HTTPS connection to api.promptfoo.app on port 443 with a tool such as
curl -vand without disabling certificate verification. The output should show whether the TCP connection opens, whether a TLS handshake completes, and which certificate chain is presented. If the chain is issued by a corporate inspection certificate authority, record that, because it shows TLS interception is in use and the company root certificate must be trusted by the runtime. The step is done when the connection outcome and certificate issuer are written down.Check whether proxy variables apply
The engineer lists the proxy environment variables visible to the promptfoo process, including
HTTPS_PROXYandNO_PROXY, and compares them with the proxy the machine uses for browsing. Then the engineer repeats thecurlcheck with the proxy set explicitly for that shell. If the request succeeds through the proxy, the block sits at the proxy policy layer, and the problem is that promptfoo was not given the proxy. The step is done when the engineer knows whether the failure changes with the proxy variable set.Confirm the block layer with the network team
The engineer gives the network or security team the timestamp, source host, destination hostname, the DNS and TLS results, and the proxy test outcome. The network team checks proxy, firewall and endpoint security logs for denied or categorized requests from that host during the test window, and states which layer blocked it, if any. The step is done when the team names the control and the rule or category involved, and whether an allowlist entry for the hostname is an approved change.
Record the evidence for the change request
The engineer assembles the reproduction command, the error text, the DNS and TLS output, the proxy test and the network team's log finding into one short record. This record supports a request to allowlist the hostname or to use a local alternative, and it documents the data path for later review. The step is done when the record is stored with the change ticket and the security owner has reviewed that promptfoo will send generation requests to that hostname.
Allowlist, proxy or local models: which fix fits
An allowlist exception asks your network or security team to permit outbound HTTPS from the testing machines or CI runners to api.promptfoo.app. The request is usually approved by the team that owns egress controls, often with input from the security team that owns the AI program. The data flow is unchanged from the default design: during red team generation and grading, prompts and model responses from the application under test are sent to the hosted promptfoo API, while evals and the target itself still run locally. Ask the approver to scope the rule to specific hosts, specific source addresses and specific ports, rather than opening general internet access.
- Approver: usually the egress or firewall owner, with security sign-off on what leaves the network.
- Scope: a single hostname, limited to the test runners that need it, not a broad category exception.
- Data flow change: generated attack content and grading inputs now reach the hosted service from inside your network.
- Recurring work: the rule needs review when your proxy or firewall policy changes and when you rotate the runners that use it.
- Evidence: keep the approval record, the scope and the date so it can be cited in a data-flow review.
Before asking, confirm with your security team which data categories they accept leaving the network, and check the current hosted data handling in the promptfoo documentation.
Routing traffic through the corporate proxy keeps the destination under your existing egress controls. promptfoo's troubleshooting guidance points to standard proxy variables such as HTTPS_PROXY for this. The proxy owner decides whether api.promptfoo.app is permitted, and the proxy is usually where logging and inspection happen. The data flow is the same as the allowlist path, but the traffic passes through a point you already monitor, which can make review easier. Proxy setup does not by itself grant access, so a proxy that still blocks the category will still refuse the request.
- Approver: the proxy or network team must allow the destination, and the security team should approve the data flow.
- Configuration: set
HTTPS_PROXYon the runner or developer machine, and check whetherNO_PROXYis needed for internal hosts. - Inspection risk: if the proxy performs TLS inspection, confirm how the inspection certificate is trusted by the Node.js process.
- Verification: test connectivity from the same environment that runs the scan, not from a laptop with different settings.
- Ongoing effort: proxy rules and certificates change, so the setup should be part of your runner configuration rather than a one-time fix.
Confirm with your network team whether the proxy can allow this destination, and whether TLS inspection affects the connection.
When access is refused, you can keep red team generation and grading on models you run yourself by configuring redteam.provider to point at a local or self-hosted inference server. This path changes the data flow the most: prompts and grading inputs stay on infrastructure you control. The approver is usually the security or AI governance owner, because the model host becomes part of the review. The trade-off is coverage. Some plugins and strategies depend on hosted generation, so a local setup can test fewer attack types and may grade differently from the hosted default.
- Approver: security or AI governance, plus the platform team that will host the models.
- Configuration:
redteam.providerin the promptfoo configuration, pointing at a server such as Ollama or vLLM. - Coverage gap: check which plugins and strategies need hosted generation before committing to this path.
- Hardware: the local model needs capacity that is sized for generation and grading throughput.
- Grading quality: a local grader may label results differently, so review a sample of findings before relying on them.
Confirm with your security team which plugins remain available, and run a short pilot to compare results before choosing this path for a formal assessment.
The three paths are not mutually exclusive, and many teams start with the one their approvers can accept fastest. An allowlist and a proxy both keep the hosted service and its full plugin set available, but both send generated and graded content to an external service. Local models keep data inside your boundary but narrow what the scan can test. A reasonable sequence is to ask which data categories are permitted to leave the network, then pick the path that matches that answer, and document the decision for the people who will later review the results.
- Decision input: the data categories your policy allows outside the network, written down before the request.
- Hybrid option: use local models for sensitive targets and the hosted service for lower-risk ones, with separate configurations.
- Documentation: record which path was chosen, who approved it and which plugins were excluded.
- Re-review: revisit the decision when promptfoo's hosted data handling or your policy changes.
- Scope clarity: report any plugins or strategies skipped because of the chosen path, so coverage claims stay accurate.
Confirm the approver for each path in writing before any configuration changes reach production runners.
Configuration options and when each one fits
This table compares four ways to get promptfoo red team generation working when a corporate firewall or security policy is in the way. Read each row as a decision: what it fits, what security or IT must approve, and which plugin or strategy coverage you give up. The main takeaway is that allowlisting or a proxy keeps the full hosted feature set, while a local provider or no remote generation trades coverage for fewer outbound connections.
| Option | When it fits | What security or IT must provide | What it loses in coverage |
|---|---|---|---|
| Allowlist api.promptfoo.app | Your policy permits outbound HTTPS to that domain and your proxy or firewall can match on the hostname. | A written exception for the domain, scoped to the hosts that run promptfoo, with egress logging and a review date. | Nothing in plugin or strategy coverage, but generation and grading data still leave your network for that host. |
| Set HTTPS_PROXY | You already route outbound traffic through an approved proxy that can reach the hosted API. | The proxy address, a proxy account if required, and confirmation that the proxy allows the destination and logs the requests. | No coverage loss, though proxy inspection may alter or delay responses. Confirm with your network team. |
| Set NO_PROXY for internal hosts | Your target application, internal model endpoints or Ollama or vLLM servers sit on private addresses that should bypass the proxy. | The list of internal hostnames and address ranges that must skip the proxy, kept in step with network changes. | No coverage loss. A missing entry can send internal traffic through the proxy and fail, so test each target after changes. |
| Local redteam.provider (Ollama or vLLM) | Policy forbids remote generation or grading, and you can host a capable model inside your own infrastructure. | Approval for a local model server, its compute and storage, and a network rule limiting it to the promptfoo host. | Some hosted-generation plugins and strategies may be unavailable. Check each plugin and strategy page before the run. |
| Run without remote generation | The firewall must stay closed to all promptfoo services and you accept a narrower test set for a first pass. | Sign-off that the scan runs with only local plugins and that the results are labeled as partial coverage. | Plugins and strategies that need hosted generation are lost. Ask which ones remain before you agree the scope. |
| Use the self-hosted promptfoo app | A team needs a shared server inside its network and can accept single-instance limits. | Container or Kubernetes hosting approval, persistent storage, and a decision on authentication, since built-in SSO and RBAC are not available. | Shared-server features do not replace generation access, so this option still needs one of the paths above for remote generation. |
Setting HTTPS_PROXY for promptfoo without weakening inspection
Proxy settings apply to the promptfoo process, so they must be present in the shell or job that runs the CLI. promptfoo reads the standard proxy variables such as HTTPS_PROXY when it sends generation and grading requests to api.promptfoo.app. Set the variable in the same shell session that runs promptfoo redteam generate or promptfoo redteam run, or in the environment block of a CI job, rather than relying on a system-wide setting that a scheduled runner or container may not inherit. Confirm the exact variable names and any NO_PROXY handling against the promptfoo remote generation troubleshooting documentation and your proxy vendor's guidance before you roll the setting out.
Once the variables are set, verify that they reach the process instead of assuming it. Print the variable names (not the values) from the same shell or job step that runs promptfoo, then run a single small generation and check the proxy's access logs for the request. A failed test usually points to one of three things: the proxy does not permit the destination, the variable is not visible to the process, or the TLS connection fails because the proxy re-signs traffic with a corporate certificate authority. The last case needs the corporate CA added to the trust store Node.js uses for that process. Confirm with your security team which CA bundle applies and whether the Node.js runtime needs it configured explicitly.
Proxy credentials should come from your secrets store, not from shell history, a .bashrc file or a committed CI configuration. Inject the proxy URL with its credentials at job start from a masked or protected variable, and keep the proxy account limited to the destinations red teaming needs. Ask your security team to confirm that the proxy account is logged, that its access is reviewed, and that any allowlist change for api.promptfoo.app is recorded in your change process. Keeping the proxy in the path also preserves the inspection and logging your policy requires, which is the point of routing traffic through it in the first place.
How a red team generation request leaves your network
The flow starts at the promptfoo CLI on a developer machine or CI runner. Remote generation and grading requests cross the trust boundary through the corporate egress proxy or firewall to api.promptfoo.app, which is the hand-off to check first. Target application and local model paths stay inside the internal network, so allowlisting or proxy settings only need to cover the external hop. Confirm the path with the security team before the first scan.
Remote generation crosses one egress point, while target and local model traffic stays inside.
Security risks of opening outbound access for red teaming
Opening a path from your network to the promptfoo generation service is a data-flow decision, not just a connectivity fix. The cards below cover what leaves the network, how to scope and log the access, how proxy credentials are handled, where outputs are stored, and how the allowlist is governed over time.
What data leaves the network
During remote generation and grading, the prompts, plugin payloads and target responses that promptfoo sends to its hosted service can contain sensitive material from your application under test. Before allowlisting, ask the team running the scan to list which plugins and strategies use remote generation, what sample target output is included in grading requests, and whether any customer or employee data appears in the purpose field. Confirm the answers against the data-flow documentation for your promptfoo version, since this is the basis for your sign-off.
Remote generation docsScoping the allowlist to one domain
Allowlist the single host api.promptfoo.app rather than opening general HTTPS egress for the scanning host or its subnet. A broad rule lets any process on that host reach any destination, which defeats the purpose of the review. Ask your network team to confirm that the rule matches the exact hostname, that DNS resolution for it is controlled, and that the source is limited to the machines that run scans, not every developer workstation.
Handling proxy credentials and secrets
When traffic goes through a corporate proxy set with HTTPS_PROXY, the proxy URL may embed a username and password. Keep those values in your secrets manager or CI secret store, not in promptfoo configuration files, shell history or committed scripts. Also confirm that provider API keys for the target and any grading model are never written into reports or logs, and rotate proxy credentials on your normal schedule because scan runners often outlive the person who configured them.
Controlling where outputs are stored
Red team results contain successful attack prompts and sample harmful responses, so they are sensitive artifacts in their own right. Store generated reports, JSON results and any local SQLite database on storage your security team controls, with access limited to the people who triage findings. Check whether CI artifacts or shared report links are retained longer than the findings need, and set retention and deletion rules before the first scan runs against a production-like endpoint.
Logging proxy traffic for audit
Enable access logging on the proxy or egress gateway for the promptfoo host, recording timestamp, source system, destination, byte counts and the identity of the scan job where your platform allows it. These logs let you show later which runs contacted the hosted service and how much data they sent. Ask whether the proxy can log request bodies at all, and if it cannot, state that limit in your review rather than assuming payload content is captured.
Change control for the allowlist
Treat the allowlist entry as a controlled firewall change with an owner, a documented reason, an approval record and a removal date tied to the end of the assessment. When the entry is later removed, expanded to more hosts or kept for ongoing scans, run the same review again, because a new plugin, strategy or promptfoo release can change what is sent. Keep the change ticket linked to the scan configuration it supports.
Questions teams ask before fixing firewall access for promptfoo
Can our own team fix promptfoo generation access without outside help?
Often yes, if your engineers can reach the security and network owners and the change follows your normal approval process. The work has two parts: confirming that api.promptfoo.app is blocked, then either adding it to an allowlist or pointing promptfoo at an approved proxy with the standard HTTPS_PROXY variable. The technical steps are small. The hard part is usually getting a rule change approved, documenting why a hosted AI testing service needs outbound access, and agreeing which data may leave the network. Ask your security team early, because the approval step, not the configuration, sets the timeline.
What do we need from security and network staff for this change?
Security and network staff need to decide three things: whether the destination can be allowlisted, which proxy (if any) carries the traffic, and what logging applies to it. Ask them to review the promptfoo remote generation troubleshooting guidance and confirm the exact hostname and ports in writing. They will also want to know what data leaves the network during generation and grading, so have a data-flow answer ready before the request. Confirm with them whether the change applies to a single build runner, a shared CI environment or developer laptops, since each has a different approval path.
How long will the firewall or allowlist change take?
We cannot give a reliable duration because it depends on your internal change process, which we have not reviewed. Confirm the expected lead time with your network and security approval queue before planning any red team work that needs hosted generation. Ask whether the change is a standard request or a formal exception, and whether it needs a review of the destination's data handling. Until the change is approved, plan the red team around local models or a sandboxed test window.
What happens if the proxy is set up incorrectly?
A misconfigured proxy usually shows up as generation or grading errors during a scan, not as a clear message that the network is the cause. Common symptoms include timeouts, certificate errors when traffic passes through TLS inspection, and proxy authentication failures. Check that HTTPS_PROXY is set in the environment where promptfoo actually runs, including CI runners and containers, and that NO_PROXY does not accidentally cover the target application. Test connectivity to the hosted endpoint with a simple request before starting a full scan, so a failed run does not consume probes or waste a team's time.
Do local models remove the need for network access?
Local models can remove the need for hosted generation and grading, but they do not remove every network need. The promptfoo documentation states that evals run on your machine and talk directly with the LLM, so a self-hosted model reachable on your internal network can handle much of the work. However, some plugins and strategies depend on hosted generation, so coverage will be narrower. Confirm which plugins and strategies your chosen configuration supports, and confirm that the local model meets your grading quality needs before relying on it for evidence.
What would a partner scope for this work?
A partner would typically scope the connectivity review, the approval package for security and network staff, the proxy or allowlist configuration for each environment, a local-model fallback if hosted access is refused, and verification runs that prove the setup works. Scope is agreed in writing before work starts, and deliverables and timelines follow from that agreement. A quote depends on how many environments, runners and target applications are involved, and whether the local alternative needs its own model deployment. Ask for a written list of what is included and what your team must provide.
Do the Community or Enterprise editions change which hosted services we need?
The Community edition is free and includes red teaming with a monthly probe allowance, while Enterprise and On-Premise add team sharing, SSO, centralized monitoring and priority support. Those commercial tiers change how you manage and report on results, but they do not replace the generation endpoint named in the troubleshooting guidance. Confirm with the vendor, before you buy anything, whether any Enterprise feature requires outbound access and whether On-Premise deployment changes your network requirements. The current pricing page is the place to check the probe allowance and included features.
Limits to confirm in your environment
A firewall rule that lets the first request through does not prove a red team scan will finish. The cards below cover the items to verify in your own network, from proxy and TLS behavior to runtime versions, probe allowances and the data-flow review your security team needs.
Proxy supports the traffic
Confirm that your proxy forwards the HTTPS requests promptfoo makes to api.promptfoo.app for generation and grading, not only the initial connection. Some proxies allow CONNECT tunnels but apply rules to request size, long-lived connections or streaming responses, which can stop a scan partway through. Test with a full small generation run rather than a single curl check, and confirm that the variables such as HTTPS_PROXY reach the process that runs the scan, including CI runners and containers.
Remote generation docsTLS inspection and certificates
Ask whether your security stack performs TLS inspection on outbound traffic. If it does, the certificate presented to the Node.js process is issued by your internal certificate authority, and the request fails unless that CA is trusted by the runtime. Confirm with your network team which certificate chain is presented for api.promptfoo.app, and plan how the internal root will be added to the trust store used by the scan host. Do not disable certificate verification to get past the error.
Plugins and strategies needing hosted inference
Some plugins and strategies depend on remote generation or hosted grading. If the firewall blocks that path, those probes will not run, and the scan may still report success on the rest. Before you start, list the plugins and strategies in your configuration, mark which ones need hosted inference, and record the gap. Decide whether a local model under redteam.provider covers the lost coverage, and tell the report reader which categories were not tested.
Community probe allowance
The Community edition is free and includes red teaming with a monthly probe allowance. Confirm whether the account used for remote generation is on that tier, and whether a planned scan fits inside the allowance for the month. A scan that stops at the limit can look like a network failure in logs. Check your account status in the promptfoo pricing terms and split large scans across days if needed.
- Probes per month
- 10k
Node.js runtime version
The current npm release of promptfoo requires Node.js 22.22.0 or newer. Hosts and CI images still on older Node versions may install the package without an error and then fail at runtime in ways that look like connection problems. Check the Node version on every runner, container image and developer workstation that will run the scan, and pin it in your build image. Upgrade the runtime before debugging network settings.
promptfoo on npmData-flow review against vendor documentation
Before your security team approves the allowlist, compare what the scan sends to api.promptfoo.app with the vendor's data-flow documentation. Generation and grading traffic leaves your network, while evals run locally, so the approval should name which content leaves and under which conditions. Record the review, the version of the documentation you read and the owner who approved the rule. Revisit the approval when the tool version changes.
Red teaming docsWhat still works when remote generation is refused
Evals and target-side testing keep working without the hosted API. promptfoo runs on the machine where you start it and talks directly to the model or application under test, so eval suites and scans that send prompts to your own endpoint can continue behind the firewall. What the firewall blocks is generation and grading that depend on api.promptfoo.app. Before you commit to a plan, run a small suite from the same host and network segment your team will use, then confirm that the target endpoint is reachable and that the results file is written as expected.
The main local option is redteam.provider, which can point red team generation and grading at a model you run yourself, such as one served through Ollama or vLLM. Confirm that the chosen model is capable enough to produce usable attack prompts and to judge responses, since weak graders are a common source of false positives. Check the model's license, its hardware needs and where its logs go. Keep the model endpoint inside the same controlled network and document it as part of your data flow, because a local model moves the external dependency rather than removing it.
Some plugins and strategies depend on hosted generation, so a local run will not cover the same ground as a hosted one. Treat the gap as a planning input: list which plugins and strategies in your scan rely on remote generation, decide which risks they cover, and either accept the gap in writing, test those risks another way, or request an allowlist exception. Confirm the exact coverage gap with your own run and your version of promptfoo before you report results, and state in the report which generation path was used for each scan.
Setup sequence for a working red team behind the firewall
This sequence takes a red team that fails at generation behind a corporate firewall to a documented, verified configuration that security and network teams can sign off. Each step ends with a check so the team knows it is done before moving on.
Confirm the Node.js version
The engineer running promptfoo checks the installed Node.js version against the requirement for the promptfoo release in use. The current npm release, 0.124.1, requires Node.js 22.22.0 or newer, so run the version command on the scanning host and on any CI runner that will execute the scan. Done when the reported version meets or exceeds that minimum on every host, and the version is recorded in the scan notes so a later failure is not blamed on the runtime.
Reproduce the failure with a minimal scan
Run a small red team scan from the same host and network segment that will be used in production, with a single plugin and a low test count against a known target. Capture the full error output, including any connection refusal, timeout, TLS error or blocked response that mentions the generation service. Done when the failure repeats on a second run and the error text is saved, which confirms the problem is network-side and not a configuration typo.
Test connectivity to the hosted generation endpoint
From the same host, check whether api.promptfoo.app resolves and accepts an HTTPS connection, using a standard tool such as curl in verbose mode. Note whether the request is blocked at DNS, at a proxy, by a TLS inspection certificate, or by a firewall reset. Done when you can state which layer refuses the traffic, because each layer is fixed by a different owner in the next step.
Obtain the approved allowlist or proxy route
Send the security team the endpoint name, the protocol, the purpose (automated generation and grading of red team test content) and the hosts that initiate the calls. Ask whether the approach is a DNS or URL allowlist entry, an outbound proxy route, or a documented exception, and ask for the change ticket reference. The promptfoo troubleshooting guidance suggests allowlisting the host or setting a proxy with standard variables, so confirm which of those your policy permits. Done when the approver has written the approved route and the change is scheduled or applied.
Set HTTPS_PROXY and NO_PROXY
Configure the approved proxy address in the HTTPS_PROXY environment variable for the account or CI job that runs promptfoo, and set NO_PROXY for internal hosts such as your target application, model servers and internal metadata endpoints so they are not sent through the proxy. Store the values in the same place as other pipeline configuration, not in the red team config file, and avoid embedding any credentials in the proxy URL. Done when the connectivity check from the previous step succeeds through the proxy and internal targets still respond directly.
Run a small scan to verify connectivity
Repeat the minimal scan from the reproduction step with the new proxy settings in place, keeping the plugin set and test count small so any remaining failure is easy to isolate. Check the run output for generation and grading calls completing without error, and confirm the results are written to the expected output location. Done when the small scan completes twice in a row from the production host, with the output saved as the baseline for later comparison.
Decide local fallback for refused calls
For any call the security team does not approve, decide in writing whether the affected plugins and strategies will be skipped, run with a local model configured for redteam.provider, or deferred to a network that is allowed to reach the hosted service. Record which plugins and strategies lose coverage under each option, because some depend on hosted generation. Done when every refused function has a named fallback and the owner has accepted the coverage gap.
Document the data flow and retest after changes
Write a short data-flow record covering what is sent to the hosted endpoint for generation and grading, what stays on local systems, the proxy path, and the approval reference, then give it to the security and privacy reviewers for sign-off. Schedule a repeat of the small scan after every firewall, proxy, certificate or runtime change, and keep the logs with the record. Done when the sign-off is on file and the retest produces the same passing output as the baseline.
How DeployOpen approaches this work
DeployOpen is a Chainscore Labs company that plans, implements, hardens and supports self-hosted open-source platforms in infrastructure you control, and runs security testing including AI red teaming. For a promptfoo red team blocked by a corporate firewall, the work connects network changes, security review and evidence so that every outbound path is approved before a scan runs.
Write the network path down first
Before any proxy or allowlist change, DeployOpen records which hosts the red team run must reach, which machine makes the calls, and which traffic is expected to stay local. The written scope names api.promptfoo.app as the only hosted endpoint in question and lists the target application separately. This prevents a firewall exception from being granted for a broader range than the work requires, and gives the security team a clear request to approve or refuse.
Remote generation docsCoordinate with security and network teams
Corporate proxies, DNS filters and secure web gateways are usually owned by different teams, and each has its own change process. DeployOpen prepares the request with the destination, the business reason, the data categories involved and the duration of the exception, so approvers can decide on evidence rather than on the tool name. Ask your security team who owns outbound allowlists and what their review cycle is before scheduling the work.
Configure proxies and environment variables
Where a proxy is the approved route, DeployOpen sets standard variables such as HTTPS_PROXY on the host or runner that executes promptfoo, then confirms the CLI reaches the endpoint through that proxy. Proxy credentials are stored in your secrets system, not in promptfoo configuration files committed to source control. The team also checks that the proxy does not inspect and rewrite TLS traffic in ways that break certificate validation.
Plan local alternatives when access is refused
If the security team declines the hosted endpoint, DeployOpen designs the fallback before the scan: which models handle generation and grading, which plugins and strategies depend on hosted inference, and where results will be reviewed. Local generation through a model you run yourself is a separate build with its own sizing, GPU or CPU capacity and grading quality checks. Confirm these trade-offs with the security team before the first run.
Test and document the data flow
DeployOpen runs a controlled test scan and captures what leaves the network, including request destinations, payload categories and whether any secrets or customer records appear in prompts. The result is a short data-flow record that a privacy or security reviewer can sign off. The record is updated whenever plugins, strategies or the target changes, because each change can alter what is sent.
Retainers for ongoing red team runs
Network rules, promptfoo versions and target applications change over time, so a one-time fix can drift. DeployOpen offers retainers for ongoing support, upgrades and repeated testing, which keep the firewall exception, proxy settings and evidence current. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing and a quote that follows from that scope.

