简体   繁体   English

MYSQL访问控制

[英]MYSQL Access Control

I want to implement column level and row level access control on data stored in my MySQL database. 我想对存储在我的MySQL数据库中的数据实施列级和行级访问控制。 I am using NodeJS on my server, what's the way to go for this ? 我在服务器上使用NodeJS,要怎么做? I see SAP Hana allows that but want to keep MySQL. 我看到SAP Hana允许这样做,但希望保留MySQL。

There are three approaches you could take: 您可以采用三种方法:

  1. Do it within the app 在应用内完成
  2. Do it between the app and the db, inside a db proxy 在数据库代理内部的应用程序和数据库之间进行操作
  3. Do it inside the database 在数据库内做

The first option wouldn't really qualify as row-level access control since the application logic is the one responsible for the filtering / masking. 由于应用程序逻辑是负责过滤/屏蔽的应用程序, 因此第一个选项实际上并不能作为行级访问控制。 (Filtering is row-level access control whereas masking is cell-level). (过滤是行级访问控制,而屏蔽是单元级)。

The second option , using a proxy, is an approach that is increasingly being taken. 第二种选择是使用代理,这是一种越来越被采用的方法。 There are dedicated solutions such as: 有专用的解决方案,例如:

  1. GreenSQL GreenSQL的
  2. Informatica DDM, and Informatica DDM和
  3. Axiomatics Data Access Filter. 公理学数据访问过滤器。

These solutions typically intercept the SQL traffic and modify it such that only authorized data is returned. 这些解决方案通常会截获SQL通信并对其进行修改,以便仅返回授权数据。 This is called dynamic data masking . 这称为动态数据屏蔽 It is explained a little bit more on Wikipedia . Wikipedia上有更多解释。

The third option is to use the database's native capabilities. 第三种选择是使用数据库的本机功能。 For instance Oracle has something called Virtual Private Database (VPD) which lets you configure advanced row filtering capabilities. 例如,Oracle有一个称为虚拟专用数据库(VPD)的东西,它使您可以配置高级行过滤功能。

In your case (MySQL), there is something called fine-grained access control (FGAC). 在您的情况下(MySQL),有一种称为细粒度访问控制 (FGAC)的东西。 There is a great article on the topic here . 有关于这一主题的大文章在这里 Google that term for more resources. Google用这个词来表示更多资源。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 MySQL访问控制列表 - MySQL Access Control List Sqoop 访问控制 mysql 问题 - Sqoop Access Control of mysql issue 基于角色的访问控制 MySql 实现 - Role Based Access Control MySql Implementation 用于用户和组访问控制的MySQL数据库架构 - MySQL database schema for user and group access control HAProxy IP转发到MySQL以控制基于IP的用户访问 - HAProxy IP forwarding to MySQL to control user access based on IP 是否有像PostgreSQL和MySQL权限管理这样的CouchDB数据库的访问控制? - Is there access control for CouchDB databases like PostgreSQL and MySQL privilege management? 如何使用mysql数据库为我的wordpress网站创建访问控制 - How to create an access control for my wordpress site using mysql database 使用Mysql和Apache的Subversion访问控制(mod-dav-svn,mod-auth-sql,apache,mysql) - Subversion Access Control using Mysql and Apache (mod-dav-svn, mod-auth-sql, apache, mysql) 如何在LoopbackJS中从内存数据源导入或创建与回送访问控制相关的表到内存数据源? - How to import or create loopback Access control related tables from memory datasource to mysql datasource in loopbackJS? AngularJS MySQL REST - Access-Control-Allow-Origin不允许使用原始http:// localhost:8383 - AngularJS MySQL REST - Origin http://localhost:8383 is not allowed by Access-Control-Allow-Origin
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM