How to Integrate Budibase and Neo4j Safely

Published
Length
3 min read

Luis Felipe Dias

All posts

Integrating budibase and neo4j lets teams build internal web apps on top of graph data. Budibase runs queries against Neo4j and shows the node and edge data in clean forms. This setup helps support teams, ops analysts, and managers read and update graph records fast. Without clear safety rules, though, internal apps can expose sensitive data to the wrong people. How data and permissions flow between budibase and neo4j Budibase acts as the front end where team members log in and click buttons

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 budibase and neo4j lets teams build internal web apps on top of graph data. Budibase runs queries against Neo4j and shows the node and edge data in clean forms.

This setup helps support teams, ops analysts, and managers read and update graph records fast. Without clear safety rules, though, internal apps can expose sensitive data to the wrong people.

How data and permissions flow between budibase and neo4j

Budibase acts as the front end where team members log in and click buttons. Neo4j sits in the back end and holds the graph nodes, labels, and relationships.

When a user opens a screen in Budibase, the app sends a query to Neo4j. Neo4j runs that graph query and sends the matching records back to the app screen.

To make this work, an admin sets up a data source inside the Budibase workspace. That data source stores the host address, port, and login key for the Neo4j database.

Budibase uses its own role system to control who sees each screen or button. Still, Neo4j only sees the single login account that Budibase uses to send queries.

Because of this design, permissions can get out of sync between the two tools. You must align app roles with database roles so users only touch allowed graph data.

Common failure modes and how to scope roles

The biggest mistake teams make is putting an admin database user inside the Budibase setup. If someone finds a bug in an app query, they gain full database rights.

Shared service accounts also ruin audit logs inside the graph database. When ten people click a button in Budibase, Neo4j logs the same single service user.

If a bad write breaks graph links, you cannot see which person ran the query. Broad tokens also stay valid for months if teams forget to rotate them on time.

End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

To fix this, create a narrow role in Neo4j just for your Budibase apps. Give this role read rights only on the node labels the app actually needs.

If the app only views customer orders, block the role from reading system settings. If a screen needs to write data, make a second data source with tight write rights.

Keep read queries and write queries in separate database accounts to lower risk. Never let the app account drop indexes, change users, or delete whole subgraphs.

Securing network paths and sensitive graph properties

Network rules are your first line of defense when linking an app builder to a database. Never open your Neo4j database port to the public internet for easy app setup.

Run both tools inside the same private network or link them through a private tunnel. Set firewall rules on the database host so it only accepts traffic from Budibase servers.

Turn on encrypted traffic between the two systems so nobody can snoop on query results. Graph nodes often hold sensitive fields like emails, phone numbers, card numbers, or national IDs.

When you write queries in Budibase, only return the specific properties needed for the screen. Returning whole nodes sends extra private fields over the network and into browser memory.

Also, use query parameters in Budibase instead of pasting user text straight into graph queries. Query parameters stop bad actors from sneaking extra commands into your user input boxes.

Finally, review your app queries and database roles every quarter as your team changes. Remove old screens and revoke unused database keys before they turn into security holes.

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

Should I use one Neo4j account for all Budibase apps?

No, you should create a separate Neo4j role and user for each Budibase app. This limits the damage if one app has a bad query or a leaked key.

How do I stop query injection in Budibase graph apps?

Always bind user inputs as query parameters rather than joining raw text strings together. This forces the database to treat user input as safe values instead of runnable commands.

How can I protect sensitive node fields like card numbers in Budibase?

Scope your Neo4j role to block restricted properties and only return needed fields in queries. You can also apply data masking so matched fields like emails get rewritten in results.

The query runs. The emails stay hidden.