SlideShare a Scribd company logo
Full PostgreSQL instance encryption
Hans-Jürgen Schönig
www.postgresql-support.de
Hans-Jürgen Schönig
www.postgresql-support.de
First of all
Hans-Jürgen Schönig
www.postgresql-support.de
Did . . .
Did everybody have a good time in Tallinn?
Hans-Jürgen Schönig
www.postgresql-support.de
Introduction
Hans-Jürgen Schönig
www.postgresql-support.de
Cybertec Schönig & Schönig GmbH
24x7 support for PostgreSQL
PostgreSQL training
PostgreSQL consulting
Hans-Jürgen Schönig
www.postgresql-support.de
Get more out of PostgreSQL
Hans-Jürgen Schönig
www.postgresql-support.de
PostgreSQL features
PostgreSQL provides many features
Many “Enterprise” features are available
e.g. replication, analytics, etc.
Hans-Jürgen Schönig
www.postgresql-support.de
Missing stuff
Nothing is feature complete
Once in a while everybody finds missing parts
Hans-Jürgen Schönig
www.postgresql-support.de
Sponsoring vs. licensing
Remember, PostgreSQL is Open Source
Sponsoring a feature is often cheaper than buying commercial
licenses
No need to chain yourself to a commercial vendor
Hans-Jürgen Schönig
www.postgresql-support.de
Database encryption: An example
Hans-Jürgen Schönig
www.postgresql-support.de
Specific customer requirements
Customer could only provide encryption based on expensive
commercial software
Encryption is needed to fulfill legal and internal requirements
Hans-Jürgen Schönig
www.postgresql-support.de
Making it work
Implement highly optimized code to handle encryption on the
block level in PostgreSQL
Totally transparent to the end user
Keys can be stored in a key store of your choice
Hans-Jürgen Schönig
www.postgresql-support.de
What it does
We encrypt:
Tables
Indexes
Temporary files
Full WAL encryption
Commit Log (clog)
More stuff: Subtransaction directories, MultiXact . . .
What we do not encrypt (yet):
pg_stat_statements, logical replication buffers, control data (on
purpose)
Hans-Jürgen Schönig
www.postgresql-support.de
Encryption technology
Extensible mechanism
Included in pgcrypto: AES-XTS 128
Future versions will use Intel hardware support
Current prototype does 4 GB / sec per core !
Hans-Jürgen Schönig
www.postgresql-support.de
Good news
We all got encryption now
Not yet in core but available to end users already with full
professional support
Patch on hackers
Anybody willing to feedback?
Hans-Jürgen Schönig
www.postgresql-support.de
Commercial success
Writing code + integrating was cheaper than just integrating
commercial stuff
Makes sense for everybody
Customer
Community
Hans-Jürgen Schönig
www.postgresql-support.de
What we learn from this
Have the guts and the conviction to do what is right
Think for yourself
Find solutions to YOUR problems
Do not change your requirements just because some commercial
vendor forces you to do so
Benefit from Open Source
Invest wisely
Hans-Jürgen Schönig
www.postgresql-support.de
Where can we get the code?
Our website has the code:
http://www.cybertec.at/en/products/postgresql-instance-
level-encryption/
It is under PostgreSQL license
Hans-Jürgen Schönig
www.postgresql-support.de
Finally
Hans-Jürgen Schönig
www.postgresql-support.de
Any questions?
Feel free to ask
Hans-Jürgen Schönig
www.postgresql-support.de
Contact us
Cybertec Schönig & Schönig GmbH
Email: office@cybertec.at
Web: www.postgresql-support.de
Follow us on Twitter: @PostgresSupport
Hans-Jürgen Schönig
www.postgresql-support.de

More Related Content

PDF
PostgreSQL Replication Tutorial
PDF
PostgreSQL High_Performance_Cheatsheet
PDF
Troubleshooting PostgreSQL with pgCenter
PDF
Postgres
PDF
Как PostgreSQL работает с диском
PDF
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
ODP
PostgreSQL Administration for System Administrators
PPTX
Http Caching for the Android Aficionado
PostgreSQL Replication Tutorial
PostgreSQL High_Performance_Cheatsheet
Troubleshooting PostgreSQL with pgCenter
Postgres
Как PostgreSQL работает с диском
How does PostgreSQL work with disks: a DBA's checklist in detail. PGConf.US 2015
PostgreSQL Administration for System Administrators
Http Caching for the Android Aficionado

What's hot (19)

PDF
Infinum Android Talks #18 - How to cache like a boss by Željko Plesac
PDF
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
PDF
To Ksql Or Live the KStream
PDF
Chef patterns
PDF
PostgreSQL Streaming Replication Cheatsheet
PDF
Clug 2012 March web server optimisation
PDF
Out of the box replication in postgres 9.4(pg confus)
PPTX
MySQL Replication
PDF
Tuning Linux for Databases.
PDF
Java In-Process Caching - Performance, Progress and Pittfalls
PPTX
Webinar: Tales from the Field - 48 Hours to Data Centre Recovery
PPTX
100500 способов кэширования в Oracle Database или как достичь максимальной ск...
PDF
Odoo Performance Limits
PDF
Caching. api. http 1.1
PPTX
Example R usage for oracle DBA UKOUG 2013
PPTX
Oracle: Binding versus caging
PPT
Ash masters : advanced ash analytics on Oracle
PDF
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016
Infinum Android Talks #18 - How to cache like a boss by Željko Plesac
Nine Circles of Inferno or Explaining the PostgreSQL Vacuum
To Ksql Or Live the KStream
Chef patterns
PostgreSQL Streaming Replication Cheatsheet
Clug 2012 March web server optimisation
Out of the box replication in postgres 9.4(pg confus)
MySQL Replication
Tuning Linux for Databases.
Java In-Process Caching - Performance, Progress and Pittfalls
Webinar: Tales from the Field - 48 Hours to Data Centre Recovery
100500 способов кэширования в Oracle Database или как достичь максимальной ск...
Odoo Performance Limits
Caching. api. http 1.1
Example R usage for oracle DBA UKOUG 2013
Oracle: Binding versus caging
Ash masters : advanced ash analytics on Oracle
Managing PostgreSQL with Ansible - FOSDEM PGDay 2016
Ad

Viewers also liked (11)

PDF
PostgreSQL: Joining 1 million tables
PDF
5min analyse
ODP
PostgreSQL: Welcome To Total Security
PDF
Walbouncer: Filtering PostgreSQL transaction log
PDF
Explain explain
PDF
PostgreSQL: Eigene Aggregate schreiben
PDF
PostgreSQL: The NoSQL way
PDF
PostgreSQL: Advanced indexing
PDF
Secure PostgreSQL deployment
PDF
Security Best Practices for your Postgres Deployment
PDF
PostgreSQL: Data analysis and analytics
PostgreSQL: Joining 1 million tables
5min analyse
PostgreSQL: Welcome To Total Security
Walbouncer: Filtering PostgreSQL transaction log
Explain explain
PostgreSQL: Eigene Aggregate schreiben
PostgreSQL: The NoSQL way
PostgreSQL: Advanced indexing
Secure PostgreSQL deployment
Security Best Practices for your Postgres Deployment
PostgreSQL: Data analysis and analytics
Ad

Similar to PostgreSQL instance encryption: More database security (20)

PDF
NLP for videos: Understanding customers' feelings in videos - Albert Lewandow...
PPTX
ScriptRunner introduction
PDF
Mpole system introduction 2018
PPTX
Disruptive Innovation at Cloudflare
PDF
Agile Secure Development
PDF
Telemetry: The Overlooked Treasure in Axon Server-Centric Applications
PDF
DevOps Days Austin 2014 - Vendor DEMO
PPT
Anton's Log Management 'Worst Practices'
PPTX
Implementing and Running SIEM: Approaches and Lessons
PDF
Pinterest - Big Data Machine Learning Platform at Pinterest
PDF
Predicting Startup Market Trends based on the news and social media - Albert ...
PPS
Digital Signage for Retail
PDF
Hpe bloombase store safe kmip integration license - 1 cpu core - with hpe -...
PPTX
Care and feeding of your website
PPS
Digital Signage for Auto Retailers
PPS
Digital Signage for Public Spaces
PDF
SaaS - Software as a Service - Charles University - Prague - March 2013
PPTX
Getting Space Pirate Trainer* to Perform on Intel® Graphics
PDF
LeanJS - Lean startup with JavaScript
PDF
PostgreSQL Security. How Do We Think? at PGCon 2017
NLP for videos: Understanding customers' feelings in videos - Albert Lewandow...
ScriptRunner introduction
Mpole system introduction 2018
Disruptive Innovation at Cloudflare
Agile Secure Development
Telemetry: The Overlooked Treasure in Axon Server-Centric Applications
DevOps Days Austin 2014 - Vendor DEMO
Anton's Log Management 'Worst Practices'
Implementing and Running SIEM: Approaches and Lessons
Pinterest - Big Data Machine Learning Platform at Pinterest
Predicting Startup Market Trends based on the news and social media - Albert ...
Digital Signage for Retail
Hpe bloombase store safe kmip integration license - 1 cpu core - with hpe -...
Care and feeding of your website
Digital Signage for Auto Retailers
Digital Signage for Public Spaces
SaaS - Software as a Service - Charles University - Prague - March 2013
Getting Space Pirate Trainer* to Perform on Intel® Graphics
LeanJS - Lean startup with JavaScript
PostgreSQL Security. How Do We Think? at PGCon 2017

Recently uploaded (20)

PDF
Fluorescence-microscope_Botany_detailed content
PDF
Business Analytics and business intelligence.pdf
PPTX
IB Computer Science - Internal Assessment.pptx
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPTX
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
PPTX
Computer network topology notes for revision
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPT
Miokarditis (Inflamasi pada Otot Jantung)
PPTX
Introduction-to-Cloud-ComputingFinal.pptx
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
1_Introduction to advance data techniques.pptx
PPTX
oil_refinery_comprehensive_20250804084928 (1).pptx
PDF
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
PPTX
Qualitative Qantitative and Mixed Methods.pptx
PDF
Introduction to Data Science and Data Analysis
Fluorescence-microscope_Botany_detailed content
Business Analytics and business intelligence.pdf
IB Computer Science - Internal Assessment.pptx
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Market Analysis -202507- Wind-Solar+Hybrid+Street+Lights+for+the+North+Amer...
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Acceptance and paychological effects of mandatory extra coach I classes.pptx
ALIMENTARY AND BILIARY CONDITIONS 3-1.pptx
Computer network topology notes for revision
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
IBA_Chapter_11_Slides_Final_Accessible.pptx
Miokarditis (Inflamasi pada Otot Jantung)
Introduction-to-Cloud-ComputingFinal.pptx
Galatica Smart Energy Infrastructure Startup Pitch Deck
1_Introduction to advance data techniques.pptx
oil_refinery_comprehensive_20250804084928 (1).pptx
BF and FI - Blockchain, fintech and Financial Innovation Lesson 2.pdf
Qualitative Qantitative and Mixed Methods.pptx
Introduction to Data Science and Data Analysis

PostgreSQL instance encryption: More database security

  • 1. Full PostgreSQL instance encryption Hans-Jürgen Schönig www.postgresql-support.de Hans-Jürgen Schönig www.postgresql-support.de
  • 2. First of all Hans-Jürgen Schönig www.postgresql-support.de
  • 3. Did . . . Did everybody have a good time in Tallinn? Hans-Jürgen Schönig www.postgresql-support.de
  • 5. Cybertec Schönig & Schönig GmbH 24x7 support for PostgreSQL PostgreSQL training PostgreSQL consulting Hans-Jürgen Schönig www.postgresql-support.de
  • 6. Get more out of PostgreSQL Hans-Jürgen Schönig www.postgresql-support.de
  • 7. PostgreSQL features PostgreSQL provides many features Many “Enterprise” features are available e.g. replication, analytics, etc. Hans-Jürgen Schönig www.postgresql-support.de
  • 8. Missing stuff Nothing is feature complete Once in a while everybody finds missing parts Hans-Jürgen Schönig www.postgresql-support.de
  • 9. Sponsoring vs. licensing Remember, PostgreSQL is Open Source Sponsoring a feature is often cheaper than buying commercial licenses No need to chain yourself to a commercial vendor Hans-Jürgen Schönig www.postgresql-support.de
  • 10. Database encryption: An example Hans-Jürgen Schönig www.postgresql-support.de
  • 11. Specific customer requirements Customer could only provide encryption based on expensive commercial software Encryption is needed to fulfill legal and internal requirements Hans-Jürgen Schönig www.postgresql-support.de
  • 12. Making it work Implement highly optimized code to handle encryption on the block level in PostgreSQL Totally transparent to the end user Keys can be stored in a key store of your choice Hans-Jürgen Schönig www.postgresql-support.de
  • 13. What it does We encrypt: Tables Indexes Temporary files Full WAL encryption Commit Log (clog) More stuff: Subtransaction directories, MultiXact . . . What we do not encrypt (yet): pg_stat_statements, logical replication buffers, control data (on purpose) Hans-Jürgen Schönig www.postgresql-support.de
  • 14. Encryption technology Extensible mechanism Included in pgcrypto: AES-XTS 128 Future versions will use Intel hardware support Current prototype does 4 GB / sec per core ! Hans-Jürgen Schönig www.postgresql-support.de
  • 15. Good news We all got encryption now Not yet in core but available to end users already with full professional support Patch on hackers Anybody willing to feedback? Hans-Jürgen Schönig www.postgresql-support.de
  • 16. Commercial success Writing code + integrating was cheaper than just integrating commercial stuff Makes sense for everybody Customer Community Hans-Jürgen Schönig www.postgresql-support.de
  • 17. What we learn from this Have the guts and the conviction to do what is right Think for yourself Find solutions to YOUR problems Do not change your requirements just because some commercial vendor forces you to do so Benefit from Open Source Invest wisely Hans-Jürgen Schönig www.postgresql-support.de
  • 18. Where can we get the code? Our website has the code: http://www.cybertec.at/en/products/postgresql-instance- level-encryption/ It is under PostgreSQL license Hans-Jürgen Schönig www.postgresql-support.de
  • 20. Any questions? Feel free to ask Hans-Jürgen Schönig www.postgresql-support.de
  • 21. Contact us Cybertec Schönig & Schönig GmbH Email: office@cybertec.at Web: www.postgresql-support.de Follow us on Twitter: @PostgresSupport Hans-Jürgen Schönig www.postgresql-support.de