The Simplest Way to Make Cypress and Tekton Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Running cypress and tekton together lets teams test web apps inside Kubernetes pipelines. Tekton builds the app pod, and Cypress runs browser checks against that live test target. This setup runs end-to-end tests on every code push in your cluster. Teams catch broken pages before bad code reaches real users. How cypress and tekton share keys and data Tekton runs each pipeline step inside its own Kubernetes pod. One step starts the web app, and another step launches the Cypress container. The

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 cypress and tekton together lets teams test web apps inside Kubernetes pipelines. Tekton builds the app pod, and Cypress runs browser checks against that live test target.

This setup runs end-to-end tests on every code push in your cluster. Teams catch broken pages before bad code reaches real users.

How cypress and tekton share keys and data

Tekton runs each pipeline step inside its own Kubernetes pod. One step starts the web app, and another step launches the Cypress container. These pods need a clean way to share network paths and login keys.

First, the pipeline mounts a shared volume between the task pods. The build step writes the compiled app files to this disk space. Next, the test pod reads those files and starts the browser runner. Both pods talk over the local cluster network during the test run.

The test runner also needs keys to log in to the test app. Teams store these test keys in Kubernetes secret objects. Tekton reads the secret object and passes it into the Cypress pod. The browser script uses those keys to fill out login forms or call APIs. When the test ends, the pod writes screenshots and reports to the shared disk. A final step uploads those files to cloud storage for the team to review.

Common failure modes and how to scope roles

Many teams hit trouble when they share one broad service account across all tasks. A single shared key gives every test pod too much power in the cluster. If a test script leaks its log output, anyone can read that shared key. Broad tokens also let test pods reach production databases by mistake.

End-to-End Encryption + Tekton Pipeline Security: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Unlogged database queries cause another major headache during pipeline runs. Test scripts often seed data or clean up rows before a browser check starts. When ten pipelines run at once, they overwrite the same test records. Without clear logs, engineers cannot tell which test run broke the shared data. Also, test logs might print raw user emails or phone numbers by accident.

To fix this, give each Tekton task its own small Kubernetes role. Scope that role so the test pod can only read its own test secrets. Block the test pod from calling any network path outside the staging namespace. Use Kubernetes network rules to lock down traffic between the browser pod and backend services. Make sure every database call from a test step goes through a logged path. Masking rules can also rewrite emails and card numbers in query results during tests. Finally, wipe the test pod and its temporary keys right after the run finishes.

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

How do Cypress pods reach the web app inside a Tekton task?

Run the web app as a sidecar container inside the same Tekton task pod. Both containers share the local network, so the browser can reach the app right away.

Where should teams store test login keys for Tekton pipelines?

Store test keys in scoped Kubernetes secret objects inside the test namespace. Bind those secrets only to the specific service account that runs the test task.

Why do browser tests fail randomly inside Kubernetes pods?

Browser tests often fail when the pod runs out of shared memory or CPU. Set clear resource limits on the task pod and isolate test data for each run.

The query runs. The emails stay hidden.