The Simplest Way to Make Backstage and TimescaleDB Work Like They Should
You pair backstage and timescaledb to show live time-series data in your developer portal. This setup lets teams provision databases and read metric charts from one dashboard. Backstage acts as the central catalog for all your software services and teams. TimescaleDB stores fast time-series events, system metrics, and app usage logs on PostgreSQL. Putting them together gives developers self-service database creation and clear health views. Still, linking a portal to a production data store brin
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.
You pair backstage and timescaledb to show live time-series data in your developer portal. This setup lets teams provision databases and read metric charts from one dashboard.
Backstage acts as the central catalog for all your software services and teams. TimescaleDB stores fast time-series events, system metrics, and app usage logs on PostgreSQL. Putting them together gives developers self-service database creation and clear health views. Still, linking a portal to a production data store brings real security risks.
How data and roles flow between backstage and timescaledb
Backstage uses backend plugins and templates to talk to external database clusters. When a user opens a service page, the portal requests fresh time-series metrics. The backend reads its local settings to find the database host and key. Then it opens a standard PostgreSQL session to run read queries on hypertables.
Teams also use software templates to spin up new time-series databases on demand. A developer fills out a short form in the portal to start. The portal then triggers a job that creates schemas and roles in TimescaleDB. After that, the new database appears in the catalog with an owner tag.
Identity starts with the single sign-on provider linked to your developer portal. Users log in with their work email to view their team pages. Yet the database rarely sees the actual user identity during these portal requests. Instead, the portal backend uses its own static service role to read data.
Common failure modes and how to scope database roles
The biggest mistake teams make is using one shared admin database account. Teams often drop a high-level key into the portal backend settings file. That single key can read, change, or delete every hypertable in the cluster. If an attacker compromises the portal, they gain full control over production data.
Unlogged queries create another major blind spot for security and platform teams. When every portal request uses the same database user, audit logs lose value. You can see that a heavy query ran, but not who triggered it. This makes it hard to track down slow queries or data leaks.
End-to-End Encryption + Backstage Security Plugins: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
Broad network paths also put your time-series data at risk of attack. Many setups open the database port to the whole internal cluster network. Any pod or service on that network can try to log in directly. You should lock down network rules so only approved nodes can reach TimescaleDB.
Steps to harden your portal and database setup
Split your database roles by task to cut down on risk right away. Create a strict read-only role for portal plugins that only display metric charts. Grant this role permission to select from specific views rather than raw tables. Keep schema creation rights locked inside a separate role for provisioning jobs.
Protect sensitive customer fields that might live inside your event log tables. Time-series events often hold user emails, phone numbers, card numbers, or national IDs. Use database views or masking rules that rewrite matched fields in query results. This keeps raw personal data out of general developer portal screens.
Rotate your database keys often and keep them out of plain text files. Store all connection secrets in a dedicated secret manager with strict role checks. Set short timeouts on database sessions started by the portal backend service. Check your database logs each week to spot strange query patterns early.
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
Can Backstage use TimescaleDB as its own internal catalog database?
Yes, because TimescaleDB runs as an extension on top of standard PostgreSQL. Still, most teams only use TimescaleDB for heavy time-series workloads and metrics.
How do we stop portal queries from slowing down production writes?
Point your portal read plugins to a read replica instead of the primary node. You should also set a hard statement timeout on the portal database role.
What is the safest way to let developers run custom SQL queries?
Do not run raw user SQL through the shared portal service account. Route developer queries through an access workflow that checks identity and logs every command.
Related guides
In this post