The Simplest Way to Make Cypress and Kibana Work Like They Should
Teams use cypress and kibana to run browser tests and view the results in charts. This pair lets you send test logs straight to a central search tool. When a test fails in your pipeline, you need fast answers. A local test log only shows one single run at a time. Sending those logs to a central dashboard helps you spot bad trends fast. Your team can track slow pages, flaky steps, and broken builds across weeks. How data and roles flow between cypress and kibana The test runner checks your we
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.
Teams use cypress and kibana to run browser tests and view the results in charts. This pair lets you send test logs straight to a central search tool.
When a test fails in your pipeline, you need fast answers. A local test log only shows one single run at a time. Sending those logs to a central dashboard helps you spot bad trends fast. Your team can track slow pages, flaky steps, and broken builds across weeks.
How data and roles flow between cypress and kibana
The test runner checks your web app in a real or headless browser. After each spec finishes, a custom reporter formats the test results as JSON. The pipeline then sends those JSON records over the network to your search backend. The dashboard tool reads that index so engineers can build charts and alerts.
To make this work, the test runner needs a key to send data. You set up a dedicated writer role in the search cluster first. This writer role should only allow adding new records to the test index. Next, your build runner uses an API key tied to that writer role. Human engineers log in to the dashboard with their own SSO accounts. Their user roles only allow reading test dashboards and searching the log index.
This split keeps your test history safe from accidental edits or deletions. The build job writes the logs, and the team reads them in the UI. You can also tag each log record with the branch name and build ID. Those tags let developers filter the dashboard to see their own feature branch.
Common failure modes and how to scope access
Many teams take shortcuts when they wire up test reporting in a hurry. A common mistake is putting an admin API key inside the test repo. Anyone who reads the code can take that key and delete indices. Another bad pattern is sharing one admin login for the whole team.
Shared accounts make it impossible to see who changed a saved dashboard. Broad keys also allow a compromised build server to read sensitive app logs. Sometimes, test runners capture real user inputs from staging pages and log them. Those test logs might hold emails, phone numbers, card numbers, or national IDs. If every developer has full index permissions, that sensitive data sits wide open.
End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix these risks with tight role scoping and network rules. First, restrict the test runner key to write-only permissions on one index pattern. Never give the test pipeline permission to read or delete existing log data. Second, put the search dashboard on a private network behind SSO login.
Third, scrub test output before the runner sends it over the network. Good data masking rewrites matched fields in results before they reach the index. You can also set up index lifecycle rules to delete old test logs. Deleting logs after thirty days keeps storage costs low and reduces data risk.
How to keep test dashboards fast and clean
Raw test output can grow huge if you log every single browser click. Sending giant payloads will slow down your build pipeline and fill your disk. Instead, only send summary counts, error messages, and run times for each test. Keep heavy screenshots and videos in blob storage, and log only their text paths.
Map each JSON field to a clear data type in your search index. Set run durations as numbers and test names as exact keyword strings. This step stops the search engine from guessing types and breaking your charts. Clean field types let your team group failures by spec file in seconds.
Add runtime guardrails and masking beside your databases and APIs
Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.
Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.
Frequently asked questions
How do I send test results to the dashboard without custom code?
Use a standard JSON reporter in your test runner to write local log files. Then run a lightweight log shipper on the build agent to forward those files.
What permissions should the CI pipeline key have?
Give the CI pipeline a role that only appends documents to the test index. It should never have rights to read data, delete indices, or change cluster settings.
How can we stop test logs from leaking sensitive data?
Use dummy data in your test cases whenever you can. Also add a scrubbing step that rewrites emails and card numbers before shipping the logs.
Related guides
In this post