All posts

How to Configure FortiGate Playwright for Secure, Repeatable Access

Picture this: your staging environment is humming, Playwright tests are queued, and someone realizes the FortiGate firewall is locked down tighter than a submarine hatch. No outbound HTTP. No reruns. One late-night Slack thread later, you’re Googling “FortiGate Playwright access blocked?” Congratulations, you’ve found the rabbit hole this post is here to fill. FortiGate excels at network perimeter control. It enforces policies, filters traffic, and keeps unwanted connections out. Playwright, on

Free White Paper

VNC Secure Access + Customer Support Access to Production: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

Picture this: your staging environment is humming, Playwright tests are queued, and someone realizes the FortiGate firewall is locked down tighter than a submarine hatch. No outbound HTTP. No reruns. One late-night Slack thread later, you’re Googling “FortiGate Playwright access blocked?” Congratulations, you’ve found the rabbit hole this post is here to fill.

FortiGate excels at network perimeter control. It enforces policies, filters traffic, and keeps unwanted connections out. Playwright, on the other hand, is a browser automation framework that lives and dies by access predictability. When your CI runners hit external pages through a FortiGate-protected edge, policies that make sense for production traffic can break your test environments. Integrating them well is about aligning security context with automation trust.

The trick is to define identity-aware routes that FortiGate recognizes as test traffic rather than external browsing. Start with a dedicated policy for CI egress tied to an automation identity, such as a service account mapped via your identity provider. Use OIDC or SAML-backed credentials instead of static IP lists. That way, Playwright sessions flow through authentication rather than brittle network rules.

A clean FortiGate Playwright setup tracks session context from the runner to the proxy to FortiGate, allowing Playwright to hit staging URLs without tripping DLP or inspection filters. Your CI logs stay clean, firewall admins stay sane, and audit teams get a neat paper trail with timestamped identities.

Continue reading? Get the full guide.

VNC Secure Access + Customer Support Access to Production: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

Keep these best practices in mind:

  • Map each automation identity to a dedicated security policy, not a shared subnet rule.
  • Rotate service tokens regularly, just like any API secret.
  • Use FortiAnalyzer or similar logging for visibility into automated test traffic.
  • Tag test domains explicitly; don’t rely on wildcard bypasses.
  • Review any SSL inspection behavior that could break Playwright’s browser handshake.

When it runs right, FortiGate gives you control, and Playwright gives you speed. Together, they form the backbone of predictable, compliant CI automation. Platforms like hoop.dev turn those access rules into guardrails that enforce policy automatically. They let developers request just-in-time access, kick off Playwright runs, and revoke those permissions seconds later, no manual firewall edits required.

How do you connect FortiGate and Playwright?
Use an identity-aware proxy between your CI environment and FortiGate. Configure the proxy to authenticate via your SSO provider and forward authenticated sessions to FortiGate through a dedicated automation policy. This allows Playwright’s test requests to be validated by identity, not IP.

The result is faster onboarding, fewer false failures, and happier engineers who can focus on code instead of firewall approvals.

See an Environment Agnostic Identity-Aware Proxy in action with hoop.dev. Deploy it, connect your identity provider, and watch it protect your endpoints everywhere—live in minutes.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts