SlidePub
Home
Categories
Login
Register
Home
Business
2024 RoOUG Security model for the cloud.pptx
2024 RoOUG Security model for the cloud.pptx
GeorgiKodinov
31 views
18 slides
May 30, 2024
Slide
1
of 18
Previous
Next
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
About This Presentation
How we've evolved the MySQL server security model from a single DBA to the cloud.
Size:
1.67 MB
Language:
en
Added:
May 30, 2024
Slides:
18 pages
Slide Content
Slide 1
A MySQL Server Security Model For the Cloud A Case Study Georgi Kodinov MySQL Server General team lead @ Oracle
Slide 2
About Me Have been working on MySQL since 2006. Leading one of the MySQL server development teams @ Oracle. Based in Plovdiv, Bulgaria. Spent all my carrier developing database servers. Still loving the cross-section of security and database Copyright © 2024, Oracle and/or its affiliates 2
Slide 3
Copyright © 2024, Oracle and/or its affiliates 3 MySQL In the Cloud: The Problem To Solve How is Cloud Different?
Slide 4
The Traditional MySQL Model Copyright © 2024, Oracle and/or its affiliates 4 Managed by the user SQL Remote Desktop
Slide 5
Copyright © 2024, Oracle and/or its affiliates 5 The 10k Feet View Of the MySQL-in-Oracle-Cloud Architecture Managed by the user Managed by Oracle Control Plane Data Plane SQL RPC RPC
Slide 6
Copyright © 2024, Oracle and/or its affiliates 6 How is Cloud Different From On-Premise Security-Wise? Single, All-powerful “root” account Everything! Database End User: "root" Control/Data Plane: " dbadmin " "Unsafe" Operations DML,DDL and ACL Cloud Database Instance RPC
Slide 7
CREATE TABLE t1(a INTEGER); INSERT INTO t1 VALUES (1); CREATE DEFINER=root PROCEDURE p1 SELECT 1; CREATE DATABASE db1; CREATE USER foo; GRANT INSERT ON db1.* TO foo; GRANT PROXY ON dbadmin TO root; SET GLOBAL binlog_format =STATEMENT; UNINSTALL PLUGIN firewall; RESET BINARY LOGS; DROP TABLESPACE foo; Safe vs. Unsafe Operations Copyright © 2024, Oracle and/or its affiliates 7 SAFE! Can destabilize the instance
Slide 8
GRANT CREATE USER ON *.* TO root; Root> CREATE USER foo IDENTIFIED BY 'bar’; GRANT SUPER, CREATE ROUTINE ON *.* TO root; Root> CREATE PROCEDURE p1 SELECT 1; GRANT DROP TABLE ON *.* TO root; Root> DROP TABLE t1; GRANT DELETE ON *.* TO root; Root> DELETE FROM t1; Root> ALTER USER dbadmin SET PASSWORD = `p0wned`; Root> CREATE DEFINER= dbadmin PROCEDURE sudo_jailbreak SET PERSIST binlog_format = statement; Root> DROP TABLE mysql.user ; Root> UNINSTALL PLUGIN audit_log ; BUT! Copyright © 2024, Oracle and/or its affiliates 8
Slide 9
Copyright © 2024, Oracle and/or its affiliates 9 Need More Granularity! And fast!
Slide 10
In theory there’s no difference between theory and practice. But in practice there is! Lawrence Peter "Yogi" Berra A baseball player and a philosopher Copyright © 2024, Oracle and/or its affiliates 10
Slide 11
Copyright © 2024, Oracle and/or its affiliates 11 Do not grant the right to the end user to cut the branch they are sitting on! Do not grant rights to SQL that can destabilize the server Do the sensitive adjustments via the control plane in a controlled manner Visibility to the end user on what the control plane does as SQL is OK and a Good Thing™ Performance schema Audit log Optimize for the 90%, do not allow severe tweaking Automatic memory management Alerts when memory use goes over a threshold Make the server read only if it’s close to going out of disk Prioritize stability when configuring: e.g. have conservative memory limits Ensure the control plane has priority network access No compiled-in limitations ! Provide tools to solve the issue Principles In Building the Cloud Security Model
Slide 12
Copyright © 2024, Oracle and/or its affiliates 12 A SYSTEM_USER privilege to fence off the ACL operations on the control plane user Partial revokes for the DDL/DML operations Make global privileges more granular Introducing the (Minimal Set Of) Tools!
Slide 13
Copyright © 2024, Oracle and/or its affiliates 13 CREATE USER foo, bar; GRANT CREATE USER ON *.* TO foo, bar; GRANT SYSTEM USER ON *.* TO foo; Foo> CREATE USER f1; Foo> ALTER USER f1 …; Bar> CREATE USER b1; Bar> ALTER USER b1 …; Bar> ALTER USER f1 …; Foo> ALTER USER b1 …; The SYSTEM_USER Privilege It’s like a secret society!
Slide 14
Copyright © 2024, Oracle and/or its affiliates 14 CREATE USER foo; CREATE DATABASE db1, db2; CREATE TABLE db1.t(a INTEGER); CREATE TABLE db2.t(a INTEGER); GRANT SELECT ON *.* TO foo; REVOKE SELECT ON db2.* FROM foo; F oo> SELECT * FROM db1.t; Foo> SELECT * FROM db2.t; CREATE DATABASE db3; CREATE TABLE db3.t(a INTEGER); Foo> SELECT * FROM db3.t; Partial Revokes It’s like GRANT … EXCEPT …
Slide 15
It’s all about more access via SQL to the end user Breaking and deprecating powerful role-like privileges SUPER RELOAD Fortifying sudo SQL stored programs usage ALLOW_NONEXISTENT_DEFINER SET_ANY_DEFINER Adding extra access controls to variable handling: SYSTEM_VARIABLES_ADMIN SESSION_VARIABLES_ADMIN PERSIST_RO_VARIABLES_ADMIN SENSITIVE_VARIABLES_OBSERVER Making Privileges More Granular Copyright © 2024, Oracle and/or its affiliates 15
Slide 16
Copyright © 2024, Oracle and/or its affiliates 16 Ask Me Anything MySQL Related ;)
Slide 17
Copyright © 2024, Oracle and/or its affiliates 17 https://bugs.mysql.com/ https://forums.mysql.com/ https://blogs.oracle.com/mysql/ Useful Links https://dev.mysql.com/doc/refman/8.4/en/ https://dev.mysql.com/doc/dev/mysql-server/latest/ https://dev.mysql.com/doc/index-enterprise.html https://dev.mysql.com/community/ Ways To Interact With the MySQL Development Team
Slide 18
Copyright © 2024, Oracle and/or its affiliates 18 Thank You F or using MySQL!
Tags
mysql
security
Categories
Business
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
31
Slides
18
Age
550 days
Related Slideshows
1
DTI BPI Pivot Small Business - BUSINESS START UP PLAN
MeljunCortes
28 views
1
CATHOLIC EDUCATIONAL Corporate Responsibilities
MeljunCortes
30 views
11
Karin Schaupp – Evocation; lançamento: 2000
alfeuRIO
28 views
10
Pillars of Biblical Oneness in the Book of Acts
JanParon
26 views
31
7-10. STP + Branding and Product & Services Strategies.pptx
itsyash298
27 views
44
Business Legislation PPT - UNIT 1 jimllpkggg
slogeshk98
29 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-18)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better