Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

Hasura

← Back to Glossary
By NHI Mgmt Group Updated November 9, 2026 Domain: Architecture & Implementation

Hasura is a data access platform that exposes databases through an API, commonly by generating a GraphQL interface. It maps queries, mutations and subscriptions to underlying tables and permissions, so application access to data can be controlled centrally at the API layer.

What Hasura does in the access stack

Hasura sits between applications and databases, turning data access into an API layer with centrally enforced permissions. That makes it more than a query convenience layer: it becomes part of how teams decide which data operations are exposed, which roles can perform them, and how consistently those rules are applied across services.

For practitioners, the important shift is that access control moves closer to the interface that developers actually consume. A well-designed setup can reduce ad hoc database access and make policy easier to reuse, but the same centralisation also means misconfiguration can affect every caller that relies on the generated API.

How Hasura maps data operations to policy

Hasura generally maps queries, mutations and subscriptions to underlying tables and permission rules. In practice, that means read and write behaviour is expressed at the API boundary, while the database remains the system of record beneath it. The design is useful when teams want a single control plane for many application consumers, especially where direct database access would be hard to govern.

This model works best when the underlying permissions are intentional and reviewed as code, not treated as an afterthought. Because the API is generated from the data schema and policy configuration, changes to tables, relationships or permission rules can alter the visible attack surface quickly if they are not controlled through change management.

Security implications of API-layer data access

API-layer data access can improve consistency, but it also concentrates trust. If a role is over-permissioned, a query shape is too broad, or a mutation is exposed too generously, the application may retrieve or change more data than intended. The main security question is not whether the API exists, but whether its policy accurately reflects the organisation’s data boundaries.

The pattern also changes how teams think about exposure. Instead of only hardening the database network boundary, they must consider API authentication, authorisation logic, schema visibility, and whether the generated interface reveals more of the data model than intended. That makes review of permissions, query scopes and exposed relationships a core part of the security model.

Where Hasura fits in modern application architecture

Hasura is often chosen to speed up application development by abstracting database interaction behind a standard API. That can simplify integration for front ends, services and internal tools, especially when the same data needs to be read in different ways by different consumers. It can also support a cleaner separation between application logic and persistence logic.

At the same time, the platform should be treated as an architectural control point, not just a developer convenience. If teams rely on it for broad data exposure, they need clear ownership for schema changes, permission design and review of any external-facing API surface. Used well, it can make access governance more systematic; used carelessly, it can make access mistakes repeatable at scale.

Risk and Threat Considerations

Because Hasura centralises data exposure behind an API, the main risk is that an authorisation mistake, overly broad permission, or unintended schema exposure can propagate quickly across many consumers. That creates a high-impact failure mode where one policy error affects broad data access rather than a single bespoke integration.

Failure mechanism: A weak permission rule, exposed relationship, or mis-scoped mutation can let a caller infer, read, or modify data beyond the intended boundary, especially when application logic trusts the generated API as authoritative.

Impact: The result can be data disclosure, unauthorised writes, privilege expansion at the application layer, and a harder incident review because the risky access is expressed as normal API traffic rather than obvious database abuse.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, NIST CSF 2.0, CIS Controls v8 and OWASP ASVS set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API1 — Broken Object Level AuthorizationHasura exposes data through API-level object access rules.
Recommendation — Review object-level permissions to stop callers from reaching records they should not access.
NIST SP 800-53 Rev 5AC-6 — Least PrivilegeHasura permissions should limit each role to the minimum required data operations.
Recommendation — Restrict API roles and database mappings to the minimum access needed.
NIST CSF 2.0PR.AA-05 — Access Permissions are ManagedHasura centralises permission management for application data access.
Recommendation — Manage and review access permissions for generated API paths and roles.
CIS Controls v8CIS-6 — Access Control ManagementHasura depends on well-governed application and data access pathways.
Recommendation — Maintain and review access pathways so exposed data operations stay intentional.
OWASP ASVSV8 — AuthorizationHasura's security model depends on enforcing authorisation at the API boundary.
Recommendation — Verify that API authorisation rules enforce the intended data-access boundaries.

Practitioner Guidance

Why practitioners should care: Hasura works best when the API contract and the data policy are reviewed together. Teams should treat permission design, schema changes and exposed operations as one security surface, not as separate development tasks. That is especially important when multiple applications depend on the same generated API.

What to watch for: Pay close attention to broad role mappings, implicit access through relationships, and any migration that adds a new field, table or mutation. Those are the changes most likely to widen exposure without an obvious functional break.

Practitioner takeaway: The safest Hasura deployments are the ones where generated convenience is matched by disciplined review of data exposure, permission scope and change control.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 9, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org