SlideShare a Scribd company logo
OpenSuse 2015: Secure Deployment Changes Coming in MySQL 5.7
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Secure Deployment Changes
in MySQL 5.7
Common problems and how do we intend to solve them
Georgi Kodinov
Team Lead, MySQL Server General Team
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
• Former banking IT Manager
• Veteran software developer
• Leading the MySQL Server General
development team
• Been with MySQL since 2006
• Regular MySQL conference
speaker
About Me
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Program Agenda
Recent trends in secure MySQL deployment
Secure deployment changes in MySQL 5.7
1
2
4
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Recent Trends in Secure MySQL Deployment
5
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Secure by Default !
• Help the novice user
• People now needing to explicitly relax security constraints
• Increases awareness and visibility of security issues
6
The “why”
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Secure by Default !
• mysql_secure_installation not needed on new installs !
• Single account with a random, expired password
• No test/demo databases and data in the server package
• Password strength validation plugin installed by default
• Self signed SSL CA/keys pre-generated if absent
• SSL encrypted connections by default
• Control over data import/export file system locations
• “Development” and “production” packages
7
The “how”
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Packaged in a Secure Way
• Careful use of the OS accounts
• All demo/test/example files in separate packages
• No default passwords
• Designated location data imported/exported through SQL commands
8
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Secure Deployment Changes in MySQL 5.7
9
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
A Single root@localhost Account
• Fully implemented in 5.7.7 (RC1)
• No root@<ip address>
• No anonymous accounts
• No test accounts
• With expired, auto-generated password
• Looking into using passwordless authentication where available
• FYI: Interactive installers will ask for a password
10
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
SSL Encryption by Default
• Fully implemented in 5.7.7 (RC1)
• SSL key material generated and set up at install time
– CA, server and client certificates and keys
• Clients attempting SSL connections by default
• A way to force SSL on the client side
11
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Security Conscious Package Layout
• Fully implemented in 5.7.7 (RC1)
• Tests and demos into a separate package
• A designated directory for OS file handling SQL commands
• Reviewed the use of OS accounts and permissions
12
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Non Security Related, But Noteworthy
13
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
The New Server –initialize* Option
• Heavy: mysql_install_db spawns the server in a weird mode
• Not platform independent
• Relying on external script files to bootstrap
14
Why ?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
The New Server –initialize* Option
• Everything needed linked into the server
• No extra binaries
• Works with the server binary = all server’s startup options work
• Platform independent
• Two modes:
– --initialize: root account with expired auto-generated strong password
– --initialize-insecure: root account without a password (scripts)
• mysql_install_db still works, but deprecated
15
How ?
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. |
Questions and Answers
16
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 17
OpenSuse 2015: Secure Deployment Changes Coming in MySQL 5.7

More Related Content

PDF
20150110 my sql-performanceschema
PPTX
MySQL Tech Tour 2015 - 5.7 Security
PDF
01 demystifying mysq-lfororacledbaanddeveloperv1
PDF
MySQL Security
PPTX
Openfest15 MySQL Plugin Development
PDF
MySQL Intro JSON NoSQL
PDF
MySQL 5.7: Focus on Replication
PDF
Mysql security 5.7
20150110 my sql-performanceschema
MySQL Tech Tour 2015 - 5.7 Security
01 demystifying mysq-lfororacledbaanddeveloperv1
MySQL Security
Openfest15 MySQL Plugin Development
MySQL Intro JSON NoSQL
MySQL 5.7: Focus on Replication
Mysql security 5.7

What's hot (20)

PPTX
MySQL High Availibility Solutions
PPT
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
PDF
MySQL Manchester TT - Replication Features
PDF
MySQL Tech Tour 2015 - Alt Intro
PDF
Upgrading to my sql 8.0
PDF
MySQL The State of the Dolphin - jun15
PPT
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
PPTX
MySQL Performance Tuning 101 (Bahasa)
PDF
MySQL Enterprise Edition Overview
PPTX
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
PPTX
Introduction to Oracle Infrastructure as a Service
PDF
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
PDF
MySQL 5.7: What's New, Nov. 2015
PDF
Sql tuning tools of the trade
PPTX
Robust easy affordable disaster recovery for MySQL Data
PDF
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
PDF
Oracle Traffic Director - a vital part of your Oracle infrastructure
PDF
MySQL & Oracle Linux Keynote at Open Source India 2014
PPT
PDF
MySQL Enterprise Monitor
MySQL High Availibility Solutions
MySQL Tech Tour 2015 - 5.7 Connector/J/Net
MySQL Manchester TT - Replication Features
MySQL Tech Tour 2015 - Alt Intro
Upgrading to my sql 8.0
MySQL The State of the Dolphin - jun15
MySQL in Oracle environment : Quick start guide for Oracle DBA (Part 1)
MySQL Performance Tuning 101 (Bahasa)
MySQL Enterprise Edition Overview
MySQL in oracle_environments(Part 2): MySQL Enterprise Monitor & Oracle Enter...
Introduction to Oracle Infrastructure as a Service
Netherlands Tech Tour - 06 MySQL Enterprise Monitor
MySQL 5.7: What's New, Nov. 2015
Sql tuning tools of the trade
Robust easy affordable disaster recovery for MySQL Data
Clone Oracle Databases In Minutes Without Risk Using Enterprise Manager 13c
Oracle Traffic Director - a vital part of your Oracle infrastructure
MySQL & Oracle Linux Keynote at Open Source India 2014
MySQL Enterprise Monitor
Ad

Similar to OpenSuse 2015: Secure Deployment Changes Coming in MySQL 5.7 (20)

PPTX
2014 OpenSuse Conf: Protect your MySQL Server
PDF
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
PDF
Mysql user-camp-march-11th-2016
PDF
MySQL Security
PDF
MySQL
ODP
MySQL for Oracle DBAs
PDF
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
PDF
MariaDB Server & MySQL Security Essentials 2016
PDF
MySQL Community and Commercial Edition
PDF
MySQL Day Paris 2016 - MySQL Enterprise Edition
PDF
Better encryption & security with MariaDB 10.1 & MySQL 5.7
PDF
Mysql repos testing.odp
PPTX
MySQL London Tech Tour March 2015 - Embedded Database of Choice
PPTX
BGOUG17: Cloudy with a chance of MySQL
PDF
MySQL for Oracle DBAs
ODP
MySQL Enterprise Portfolio
PDF
Large Scale Deployment of SSL/TLS For MySQL
PDF
MySQL Security in a Cloudy World
PPTX
DevTalks.ro 2019 What's New in MySQL 8.0 Security
PDF
Meet MariaDB Server 10.1 London MySQL meetup December 2015
2014 OpenSuse Conf: Protect your MySQL Server
MySQL's new Secure by Default Install -- All Things Open October 20th 2015
Mysql user-camp-march-11th-2016
MySQL Security
MySQL
MySQL for Oracle DBAs
MySQL Day Paris 2018 - MySQL & GDPR; Privacy and Security requirements
MariaDB Server & MySQL Security Essentials 2016
MySQL Community and Commercial Edition
MySQL Day Paris 2016 - MySQL Enterprise Edition
Better encryption & security with MariaDB 10.1 & MySQL 5.7
Mysql repos testing.odp
MySQL London Tech Tour March 2015 - Embedded Database of Choice
BGOUG17: Cloudy with a chance of MySQL
MySQL for Oracle DBAs
MySQL Enterprise Portfolio
Large Scale Deployment of SSL/TLS For MySQL
MySQL Security in a Cloudy World
DevTalks.ro 2019 What's New in MySQL 8.0 Security
Meet MariaDB Server 10.1 London MySQL meetup December 2015
Ad

More from Georgi Kodinov (20)

PPTX
2024 RoOUG Security model for the cloud.pptx
PPTX
2023 TurnovoConf MySQL Authentication.pptx
PPTX
2022 TurnovoConf MySQL за начинаещи.pptx
PPTX
OpenSUSE Conf 2020 MySQL Clone
PPTX
2020 pre fosdem mysql clone
PPTX
2019 BGOUG Autumn MySQL Clone
PPTX
2019 indit blackhat_honeypot your database server
PPTX
PLe19 How To Instrument Your Code in performance_schema
PPTX
DevTalks.ro 2019 MySQL Data Masking Talk
PPTX
FOSDEM19 MySQL Component Infrastructure
PPTX
MySQL Enterprise Data Masking
PPTX
Percona Live Europe 2018: What's New in MySQL 8.0 Security
PPTX
How to add stuff to MySQL
PPTX
Pl18 saving bandwidth
PPTX
Pl17: MySQL 8.0: security
PPTX
Fosdem17 honeypot your database server
PPTX
2016 oSC MySQL Firewall
PPTX
OUGLS 2016: Guided Tour On The MySQL Source Code
PPTX
OUGLS 2016: How profiling works in MySQL
PPTX
BGOUG 2014 Decrease Your MySQL Attack Surface
2024 RoOUG Security model for the cloud.pptx
2023 TurnovoConf MySQL Authentication.pptx
2022 TurnovoConf MySQL за начинаещи.pptx
OpenSUSE Conf 2020 MySQL Clone
2020 pre fosdem mysql clone
2019 BGOUG Autumn MySQL Clone
2019 indit blackhat_honeypot your database server
PLe19 How To Instrument Your Code in performance_schema
DevTalks.ro 2019 MySQL Data Masking Talk
FOSDEM19 MySQL Component Infrastructure
MySQL Enterprise Data Masking
Percona Live Europe 2018: What's New in MySQL 8.0 Security
How to add stuff to MySQL
Pl18 saving bandwidth
Pl17: MySQL 8.0: security
Fosdem17 honeypot your database server
2016 oSC MySQL Firewall
OUGLS 2016: Guided Tour On The MySQL Source Code
OUGLS 2016: How profiling works in MySQL
BGOUG 2014 Decrease Your MySQL Attack Surface

Recently uploaded (20)

PPTX
Essential Infomation Tech presentation.pptx
PDF
PTS Company Brochure 2025 (1).pdf.......
PDF
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PPTX
L1 - Introduction to python Backend.pptx
PDF
Softaken Excel to vCard Converter Software.pdf
PPTX
Introduction to Artificial Intelligence
PDF
medical staffing services at VALiNTRY
PPTX
history of c programming in notes for students .pptx
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
PDF
System and Network Administration Chapter 2
PPTX
ai tools demonstartion for schools and inter college
PDF
Which alternative to Crystal Reports is best for small or large businesses.pdf
PPTX
Operating system designcfffgfgggggggvggggggggg
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Digital Strategies for Manufacturing Companies
PDF
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf
Essential Infomation Tech presentation.pptx
PTS Company Brochure 2025 (1).pdf.......
EN-Survey-Report-SAP-LeanIX-EA-Insights-2025.pdf
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
L1 - Introduction to python Backend.pptx
Softaken Excel to vCard Converter Software.pdf
Introduction to Artificial Intelligence
medical staffing services at VALiNTRY
history of c programming in notes for students .pptx
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
System and Network Administration Chapter 2
ai tools demonstartion for schools and inter college
Which alternative to Crystal Reports is best for small or large businesses.pdf
Operating system designcfffgfgggggggvggggggggg
Understanding Forklifts - TECH EHS Solution
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
VVF-Customer-Presentation2025-Ver1.9.pptx
Digital Strategies for Manufacturing Companies
Raksha Bandhan Grocery Pricing Trends in India 2025.pdf

OpenSuse 2015: Secure Deployment Changes Coming in MySQL 5.7

  • 2. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Secure Deployment Changes in MySQL 5.7 Common problems and how do we intend to solve them Georgi Kodinov Team Lead, MySQL Server General Team
  • 3. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | • Former banking IT Manager • Veteran software developer • Leading the MySQL Server General development team • Been with MySQL since 2006 • Regular MySQL conference speaker About Me
  • 4. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Program Agenda Recent trends in secure MySQL deployment Secure deployment changes in MySQL 5.7 1 2 4
  • 5. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Recent Trends in Secure MySQL Deployment 5
  • 6. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Secure by Default ! • Help the novice user • People now needing to explicitly relax security constraints • Increases awareness and visibility of security issues 6 The “why”
  • 7. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Secure by Default ! • mysql_secure_installation not needed on new installs ! • Single account with a random, expired password • No test/demo databases and data in the server package • Password strength validation plugin installed by default • Self signed SSL CA/keys pre-generated if absent • SSL encrypted connections by default • Control over data import/export file system locations • “Development” and “production” packages 7 The “how”
  • 8. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Packaged in a Secure Way • Careful use of the OS accounts • All demo/test/example files in separate packages • No default passwords • Designated location data imported/exported through SQL commands 8
  • 9. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Secure Deployment Changes in MySQL 5.7 9
  • 10. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | A Single root@localhost Account • Fully implemented in 5.7.7 (RC1) • No root@<ip address> • No anonymous accounts • No test accounts • With expired, auto-generated password • Looking into using passwordless authentication where available • FYI: Interactive installers will ask for a password 10
  • 11. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | SSL Encryption by Default • Fully implemented in 5.7.7 (RC1) • SSL key material generated and set up at install time – CA, server and client certificates and keys • Clients attempting SSL connections by default • A way to force SSL on the client side 11
  • 12. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Security Conscious Package Layout • Fully implemented in 5.7.7 (RC1) • Tests and demos into a separate package • A designated directory for OS file handling SQL commands • Reviewed the use of OS accounts and permissions 12
  • 13. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Non Security Related, But Noteworthy 13
  • 14. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The New Server –initialize* Option • Heavy: mysql_install_db spawns the server in a weird mode • Not platform independent • Relying on external script files to bootstrap 14 Why ?
  • 15. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | The New Server –initialize* Option • Everything needed linked into the server • No extra binaries • Works with the server binary = all server’s startup options work • Platform independent • Two modes: – --initialize: root account with expired auto-generated strong password – --initialize-insecure: root account without a password (scripts) • mysql_install_db still works, but deprecated 15 How ?
  • 16. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | Questions and Answers 16
  • 17. Copyright © 2015, Oracle and/or its affiliates. All rights reserved. | 17