Explanation

Database Security: Read, Write, and Admin Permission Levels

Ningjing
Ningjing1 min read
Database Security: Read, Write, and Admin Permission Levels

Database permissions are one of the database security fundamental component, involves assigning different permission levels to users based on their roles and responsibilities. In most database systems, these permissions are categorized into three main levels: Read, Write, and Admin.

Read

Read is the fundamental access level that allows a user to view or retrieve data from a database without the ability to modify it. Analysts and Developers use this level to access and analyze data. It includes the following operations:

  • Fetch metadata (information_schema or catalog info)
  • Run EXPLAIN. This is for developer to troubleshoot problematic queries
  • Run SELECT

This post is updated regularly. For the impatience, jump to the Recommended Setup section.

Write

Write allows a user to modify data in a database. Developers and DBAs (Database administrators) use this level to perform tasks such as data insertion, update, and deletion depending on their permissions. It includes the following operations:

  • DML change (data change)
  • DDL change (schema migration)

Admin

Admin is the highest level of access. DBAs use this level to perform tasks such as killing the connections.

Fine-grained database permissions in Bytebase

You can configure Bytebase database permissions to provide fine-grained control over database operations.

Access LevelOperationPermission
ReadEXPLAINdatabases.queryExplain
Querydatabases.query
Exportdatabases.export
Write (subject to execution mode)Mutation DMLdatabases.queryDML
DDLdatabases.queryDDL
Request change for reviewCreate Issueissues.create
AdminAdmininstances.adminExecute

Jointhe community

At Bytebase, we believe in the power of collaboration and open communication, and we have a number of communities that you can join to connect with other like-minded.

Subscribe to Newsletter

By subscribing, you agree with Bytebase's Terms of Service and Privacy Policy.