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

Published
Length
3 min read

Luis Felipe Dias

All posts

Integrating backstage and cypress lets teams see browser test results inside the developer portal. This setup runs automated checks on web apps and sends pass or fail data back. Teams use this workflow to check service health before they push new code. Developers stay in one central catalog while they review recent test runs and error logs. How data and roles flow between backstage and cypress The developer portal acts as the main dashboard for all software components and services. The testi

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.

Integrating backstage and cypress lets teams see browser test results inside the developer portal. This setup runs automated checks on web apps and sends pass or fail data back.

Teams use this workflow to check service health before they push new code. Developers stay in one central catalog while they review recent test runs and error logs.

How data and roles flow between backstage and cypress

The developer portal acts as the main dashboard for all software components and services. The testing tool runs in the build pipeline and checks how the web app works.

After a test run ends, the pipeline sends a summary report to the portal backend. The portal reads this data through a plugin or a standard build server connection.

Both tools need clear identity rules so they can share data in a safe way. A user logs into the portal using single sign-on to view a specific service page.

The portal backend uses a scoped service key to fetch test results from the pipeline. That key only needs read rights for the test reports of that specific project.

If a developer triggers a new test run from the portal, the flow changes direction. The portal sends a request to the build runner with the user identity attached.

The runner checks the user role before it starts the browser test job. This step ensures only approved team members can run tests against staging or production apps.

Common failure modes and how to scope network paths

Many teams start by sharing one broad admin token between the portal and test runners. If an attacker steals that shared key, they can read or alter every project pipeline.

Broad tokens also hide who started a test job when you check the audit logs. Every request looks like it came from the same shared service account.

End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Another common risk happens when browser tests run against staging databases with real customer data. Test logs and screenshots might capture sensitive fields like emails, phone numbers, or card numbers.

When the portal pulls those logs, any portal user might see private customer records. Data masking rewrites matched fields in results like national IDs so test outputs stay clean.

Unlogged queries between the portal backend and the test storage bucket also create blind spots. Security teams need a clear log of every API call and every test run.

To fix these issues, create separate service roles for each team or software group. Give the portal read-only rights to test status endpoints and block write calls by default.

Set expiration dates on all API keys and rotate them on a set schedule. Keep the test runners in a private network segment with strict outbound firewall rules.

Only allow the portal backend to reach the test report server on specific ports. Log every request with a user ID, a timestamp, and the target service name.

Testing portal plugins with browser automation

Teams also use browser tests to check the developer portal itself before an upgrade. Whenever someone builds a custom portal plugin, automated tests verify that every page loads fast.

In this setup, the test runner logs into a local or staging portal instance. You can pass a mock user token so the test runner skips external login screens.

Keep these test accounts restricted to staging systems so they never touch production catalogs. Clear out test data after each run so the staging catalog stays fast and clean.

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

How does the developer portal display browser test results?

The portal fetches test reports from your build server or cloud test dashboard via API. It then maps those results to the matching service page in the software catalog.

Should the portal use a shared admin key to trigger test runs?

No, shared admin keys create security risks and ruin your audit trail. Use scoped tokens with read-only rights for viewing results and check user roles before runs.

How do we protect sensitive data during automated browser tests?

Use synthetic test data in staging apps whenever you run automated browser checks. You can also apply masking rules that rewrite emails and card numbers in query results.

The query runs. The emails stay hidden.