How note.com Implements Just-in-Time (JIT) Database Access Control with Bytebase
Bytebase - Database CI/CD and Security at Scale
Leading open source database DevSecOps solution for Developer, Security, DBA, and Platform Engineering team.
Originally posted in https://www.bytebase.com/blog/note-case-study/
Hi and welcome to Database DevOps Academy #78! We share Database DevOps insights and best practices for modern engineering organizations weekly. ??
In Issue #78, we went through how note streamlined access control, enhanced security, and reduced operational costs by adopting Bytebase. ??
note (note.com) is a C2C content platform in Japan that empowers all types of creators and promotes creator economy. note was launched in 2014. note initially implemented an in-house database access system but faced challenges in efficiency and security. By adopting Bytebase, note streamlined access control, enhanced security, and reduced operational costs.
Data Access Control Challenges at note
Given that note manages data for millions of users, safeguarding user information is paramount. Typically, the internal development team does not have direct access to production databases containing user data. However, accessing these databases is often necessary for troubleshooting production issues. Effectively managing such just-in-time (JIT) access while ensuring compliance is essential for note.
Tackling the Challenge with an In-House Solution
To address this challenge, note built a process to manage database access requests:
However, after running this process for some time, they encountered notable limitations:
Bytebase Provides a One-Stop Database Access Control Solution
After extensive research, note’s SRE team selected Bytebase to replace their in-house solution, effectively addressing the challenges of fragmented processes, broad access permissions, and high maintenance costs. Bytebase acts as middleware between humans and databases, ensuring secure, efficient, and compliant just-in-time (JIT) access management.
Bytebase provides various capabilities to enable more secure and efficient database access, including a unified web-based SQL Editor with fine-grained sensitive data masking and role-based access control.
Web-based SQL Editor
Bytebase offers a web-based SQL Editor that consolidates all permissions management and data access operations into a single tool. This eliminates the need for the in-house tool, SSH proxy server, and local database clients, allowing developers to submit permission requests and access the database in one place, greatly improving convenience.
领英推荐
Dynamic Data Masking
Bytebase offers column-level dynamic data masking for our Aurora MySQL databases. When granting access permissions to developers for specific tables, sensitive columns can be dynamically masked based on the user's identity during data queries.
Role-Based Data Access Control
Bytebase provides role-based database access control, which can implement table-level access control. This permission management is independent of the database account system and is managed by Bytebase. This brings two benefits:
Integration with Other Tools
Bytebase supports Terraform, provides comprehensive open APIs, and can integrate with IM tools and SSO solutions, allowing it to be incorporated into existing development workflow.
Multiple SSO Solutions
Access request notifications will be pushed to Slack.
Overall Benefits of Bytebase's Solution
Next Steps
After implementing Bytebase's database access control, the following issues have become apparent. In response, note is considering further leveraging Bytebase's capabilities to address these challenges:
Currently, workflow approvals are only carried out on Bytebase. By utilizing the external approval feature, approvals can be processed through Slack.
At present, only read queries are utilized; the aim is to enable modifications for both DML and DDL directly on Bytebase.
Given that SQL is currently managed through GitHub Issues in the existing business process, the introduction of GitOps is expected to enhance operational efficiency.