The Simplest Way to Make Istio and Testcomplete Work Like They Should
Using istio and testcomplete together lets teams test web apps inside a service mesh. Istio controls network traffic between services while TestComplete runs automated UI and API checks. This setup helps teams catch bugs before code reaches production users. You get clear network rules from Istio and repeatable test runs from TestComplete. When both tools work in sync, teams can test complex routing rules with confidence. How traffic and logins flow in istio and testcomplete TestComplete act
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
Using istio and testcomplete together lets teams test web apps inside a service mesh. Istio controls network traffic between services while TestComplete runs automated UI and API checks.
This setup helps teams catch bugs before code reaches production users. You get clear network rules from Istio and repeatable test runs from TestComplete. When both tools work in sync, teams can test complex routing rules with confidence.
How traffic and logins flow in istio and testcomplete
TestComplete acts as an outside client that sends requests into your cluster. Istio sits at the edge of the cluster and checks every incoming request. Before a test can reach an app, it must pass Istio traffic rules.
Teams usually set up Istio to check tokens on incoming test traffic. TestComplete holds a test user key and sends it with each web call. Istio reads that key, checks the role, and routes the request to the right pod.
Inside the cluster, Istio encrypts traffic between services using mutual TLS. TestComplete does not need to manage internal service certificates for every microservice. It only needs to trust the edge certificate and send a valid user token. Once the request enters the mesh, Istio handles the rest of the service routing.
Common failure modes with shared keys and broad network rules
Many teams hit trouble when they take shortcuts with test user accounts. A common mistake is sharing one static admin key across all TestComplete runners. If that key leaks, anyone can send traffic through Istio into your test apps. Shared keys also make it impossible to tell which test run broke a service.
Another failure mode happens when teams turn off Istio security rules for testing. Teams often open broad network paths so TestComplete can reach internal databases or services. This hides real routing bugs that will break the app in production. Worse, unlogged queries from test runners can touch real emails or card numbers.
End-to-End Encryption + Istio Authorization Policies: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
To fix this, scope down the roles you give to TestComplete runners. Give each test suite its own service account with narrow read and write permissions. Set up Istio rules so test traffic only hits specific staging versions of apps. Keep mutual TLS turned on so your staging mesh matches your production mesh.
How to set up clean routing for automated test runs
You can use Istio headers to route TestComplete traffic to isolated app versions. Have TestComplete add a custom header to every request it sends during a run. Then set up an Istio routing rule that looks for that exact header.
When Istio sees the test header, it sends traffic to the canary pod. Normal user traffic without the header keeps flowing to the stable pod. This lets teams run full UI tests against new code without risking live users.
Make sure you log every request that enters the mesh from your test runners. Good logs show the timestamp, the test account name, and the target service. When a check fails in TestComplete, you can match it to the Istio log. If test data includes phone numbers or national IDs, data masking rewrites matched fields in results.
Check database and API queries on the wire
Identity tools, roles, and network rules decide who opens a session. Setup alone cannot check what each query does or mask sensitive values in a response once a session starts. When workflows touch Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, or internal HTTP APIs, hoop.dev runs beside those services as an open-source proxy, a sidecar for your Postgres or API. It inspects requests coming in and results going back on the wire.
Your login details and client tools stay as they are while hoop.dev guardrails refuse bad deletes or drops before they run. On responses, hoop.dev data masking rewrites matched sensitive values in memory. Furthermore, hoop.dev holds SOC 2 Type II, is MIT licensed, and writes every query and decision to an audit trail that generates evidence for HIPAA, GDPR, and PCI DSS. See the source on GitHub.
Frequently asked questions
Does TestComplete need a sidecar to talk to an Istio mesh?
No, TestComplete usually runs outside the cluster and sends traffic through the Istio ingress point. It acts like a regular browser or API client that follows edge routing rules.
Why do my TestComplete checks fail with connection resets after adding Istio?
This usually happens when Istio expects strict mutual TLS or a specific host header. Check your Istio ingress rules and make sure TestComplete sends the right host name and certificate.
How can I test canary builds with Istio and TestComplete?
Configure TestComplete to send a custom HTTP header with its web requests. Then write an Istio routing rule that sends requests with that header to your canary pods.
Related guides
In this post