Skip to content

Overview

Security

SurrealDB provides a layered security model that covers how users and systems prove their identity, what they are allowed to do once authenticated, and the operational practices that keep a deployment safe.

This section is organised into three areas:

  • Authentication - signing in with credentials, record-based access, and third-party identity providers.

  • Authorization - controlling access at the table, field, and row level with the PERMISSIONS clause and JWTs.

  • Best practices - guidance on secure configuration, token handling, network exposure, and common pitfalls.

  • Tokens & JWTs - how a token carries identity and what the database checks

  • Troubleshooting - what a rejected token, an expired session or a denied permission looks like, and what to check

Was this page helpful?