The Simplest Way to Make Kuma and Testcomplete Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running Kuma and TestComplete together lets your team test apps inside a secure service mesh. Kuma manages traffic rules between services while TestComplete runs automated UI and API checks. This setup helps teams catch bugs before code reaches production users. Still, strict mesh rules can block test runners if you do not plan your network paths. How Kuma and TestComplete share traffic and permissions Kuma works as a control plane for service mesh traffic across your clusters. It sets up mu

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.

Running Kuma and TestComplete together lets your team test apps inside a secure service mesh. Kuma manages traffic rules between services while TestComplete runs automated UI and API checks.

This setup helps teams catch bugs before code reaches production users. Still, strict mesh rules can block test runners if you do not plan your network paths.

How Kuma and TestComplete share traffic and permissions

Kuma works as a control plane for service mesh traffic across your clusters. It sets up mutual TLS, routing rules, and traffic logs for every internal app. TestComplete acts as an external or internal test runner that sends requests to those apps. To work together, the test runner needs a clear network path into the mesh.

Your team must decide where the test runner lives on the network. If TestComplete runs outside the mesh, traffic enters through an ingress point. Kuma checks the incoming request and applies traffic rules before forwarding it to the app. If the runner sits inside the mesh, it gets its own sidecar to handle certs.

Identity and permissions matter at every step of this test flow. TestComplete needs valid login keys or tokens to talk to protected endpoints. Kuma verifies service identities at the mesh level while the app checks user roles. Keeping these two permission layers separate prevents test failures and clarifies error logs.

Common failure modes and how to scope roles

Many teams fail by using one shared admin account for all automated tests. When a test breaks or leaks a key, nobody knows which runner caused the issue. Broad network rules in Kuma also create risk by letting test runners reach production databases. Unlogged test traffic makes it hard to spot slow queries or failed checks.

To fix this, give each TestComplete runner its own scoped service account. Limit that role so it only reaches the specific staging services under test. Set up Kuma traffic permissions to block test runners from calling sensitive backend stores directly. Always turn on mesh logging for test namespaces so you can trace every failed call.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You should also watch out for cert rotation issues during long test runs. Short-lived certs in Kuma can expire while a long UI test suite is still running. Make sure your test runner handles connection drops and retries failed requests cleanly. Clear timeouts in both tools stop hung tests from blocking your whole build pipeline.

Protecting test data and service keys in pipelines

Automated tests often need real-looking data to check forms and API payloads. Using real customer records in staging creates big privacy risks for your team. Instead, use data masking to rewrite emails, phone numbers, card numbers, and national IDs in results. This keeps test checks accurate while keeping sensitive values out of test logs.

Store all test keys outside of your test project files and source code. Pull fresh tokens at the start of each test run and drop them right after. When Kuma and TestComplete follow strict role limits, your pipeline stays fast and safe.

Govern statements and responses across databases and APIs

Good config and scoped roles are needed setup. They do not check single queries in flight or mask sensitive fields in returned rows. Across Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes APIs, SSH, and internal HTTP endpoints, hoop.dev runs beside each supported service as an open-source proxy, a sidecar for your database or API.

First, hoop.dev guardrails block banned queries before they run. Then hoop.dev data masking rewrites matched sensitive values in responses in memory. The audit trail records every statement and verdict per resource. Furthermore, hoop.dev holds SOC 2 Type II and is open source on GitHub.

Frequently asked questions

Why does Kuma block requests from my TestComplete runner?

Kuma blocks traffic when mutual TLS is on and the runner lacks a valid mesh cert. You must route test traffic through an allowed ingress or attach a sidecar to the runner host.

Should TestComplete run inside or outside the Kuma mesh?

Run TestComplete outside the mesh when testing public user paths through your main ingress. Run it inside the mesh only when you need to test internal APIs directly.

How do we stop test runners from hitting production services?

Use separate Kuma zones or virtual meshes for staging and production workloads. Bind your TestComplete service role only to the staging zone so production paths stay blocked.

The query runs. The emails stay hidden.