MySQLを使用して開発しているWebアプリで行レベルのセキュリティをエミュレートしようとしています。
この方法の使用:必要なテーブルを使用してデータベースを作成します。このデータベースには、テーブルの列に適切なインデックスを付けて、すべてのユーザーに関連するデータが格納されます。
ユーザーIDに基づいて特定のユーザーにmysqlの「ビュー」を作成します。
行レベルのセキュリティを実現するには、すべてのユーザーにmysqlアカウントを作成し、ビューに「grant」権限を設定する必要があります。
Webインターフェイスには、PHPベースのMVCフレームワークが使用されます。
しかし、私の調査によれば、次のようになります。
1] Having separate mysql account per user "make the webapp less secure".
2]Having separate mysql account per user "increases the disk I/O".
質問:
1] How does creating mysql user per webapp user make the webapp less secure?
2] Does the disk I/O increase considerably?
3] Is there a better way to implement row-level-security in MySQL?
4]What are the pros/cons of implementing row-level-security by the above method?
行レベルのセキュリティを検討しているのはなぜですか?
I need row level security because there are rows which will be shared between multiple users & have 1 or 2 owners to it. Only these owners can delete/modify them.