The Simplest Way to Make Backstage and Elastic Observability Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Pairing backstage and elastic observability puts live service logs right inside your developer portal. This setup lets teams check app health and read error traces in one place. Engineers waste time when they jump between catalog pages and log search screens. Linking these two systems brings metrics, traces, and alerts straight to the service owner. Teams spot bad deploys faster and fix broken apps with less stress. How backstage and elastic observability share data Backstage acts as the fro

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.

Pairing backstage and elastic observability puts live service logs right inside your developer portal. This setup lets teams check app health and read error traces in one place.

Engineers waste time when they jump between catalog pages and log search screens. Linking these two systems brings metrics, traces, and alerts straight to the service owner. Teams spot bad deploys faster and fix broken apps with less stress.

How backstage and elastic observability share data

Backstage acts as the front door for all your services and team docs. Elastic stores the logs, metrics, and traces that those live services send out. A plugin connects the portal to your search cluster over a safe network path.

Each service in the catalog gets a tag that matches its log index name. When a user opens a service page, the portal sends a search request. The cluster checks the request key and sends back the matching log lines.

The portal never stores the raw log data on its own disk. It only fetches fresh results when an engineer views the service page. This keeps the portal fast and leaves heavy search work to the cluster.

Common traps with shared keys and broad roles

Many teams set up this link with a single master API key. That one key often has full read rights across every log index. If that key leaks, an attacker can read data from every single team.

Shared keys also ruin your audit trail during a security review. The cluster logs show that the portal ran a query, not which user asked. You cannot tell which engineer read sensitive error logs during an incident.

AI Observability + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Broad index rights create privacy risks for your customer data too. Raw app logs often hold emails, phone numbers, or card numbers by mistake. Without field rules, any portal user can pull those details from the search cluster.

Scoping roles and network paths between systems

Start by creating a read-only role just for your portal queries. Limit this role to the exact log indices that hold app health data. Block it from reading system audit logs or private billing indexes.

Next, map your portal user groups to specific cluster roles where you can. Give the payments team read rights only to payment service logs. Give the frontend team rights only to web app traces and browser errors.

Keep all traffic between the portal server and the search cluster on private networks. Use strict firewall rules so only the portal backend can reach the search port. Rotate your API keys on a set schedule to limit the risk of old secrets.

You should also clean up sensitive fields before they land in search results. Set up data masking to rewrite emails, phone numbers, and national IDs in results. This lets engineers fix bugs while keeping user data safe during daily work.

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

Does the portal store a copy of our logs?

No, the portal queries the search cluster live when you load a page. It displays the log lines on your screen and drops them when you leave.

You add a short tag to the service file in your code repo. That tag tells the portal which index or service name to query for logs.

Can we block portal users from deleting log indices?

Yes, you should give the portal a read-only role in your search cluster. This stops any portal request from changing settings or deleting stored log data.

The query runs. The emails stay hidden.