Top Banner
Full PostgreSQL instance encryption Hans-Jürgen Schönig www.postgresql-support.de Hans-Jürgen Schönig www.postgresql-support.de
21

PostgreSQL instance encryption: More database security

Jan 18, 2017

Download

Data & Analytics

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: PostgreSQL instance encryption: More database security

Full PostgreSQL instance encryption

Hans-Jürgen Schönigwww.postgresql-support.de

Hans-Jürgen Schönigwww.postgresql-support.de

Page 2: PostgreSQL instance encryption: More database security

First of all

Hans-Jürgen Schönigwww.postgresql-support.de

Page 3: PostgreSQL instance encryption: More database security

Did . . .

Did everybody have a good time in Tallinn?

Hans-Jürgen Schönigwww.postgresql-support.de

Page 4: PostgreSQL instance encryption: More database security

Introduction

Hans-Jürgen Schönigwww.postgresql-support.de

Page 5: PostgreSQL instance encryption: More database security

Cybertec Schönig & Schönig GmbH

I 24x7 support for PostgreSQLI PostgreSQL trainingI PostgreSQL consulting

Hans-Jürgen Schönigwww.postgresql-support.de

Page 6: PostgreSQL instance encryption: More database security

Get more out of PostgreSQL

Hans-Jürgen Schönigwww.postgresql-support.de

Page 7: PostgreSQL instance encryption: More database security

PostgreSQL features

I PostgreSQL provides many featuresI Many “Enterprise” features are available

I e.g. replication, analytics, etc.

Hans-Jürgen Schönigwww.postgresql-support.de

Page 8: PostgreSQL instance encryption: More database security

Missing stuff

I Nothing is feature completeI Once in a while everybody finds missing parts

Hans-Jürgen Schönigwww.postgresql-support.de

Page 9: PostgreSQL instance encryption: More database security

Sponsoring vs. licensing

I Remember, PostgreSQL is Open SourceI Sponsoring a feature is often cheaper than buying commercial

licensesI No need to chain yourself to a commercial vendor

Hans-Jürgen Schönigwww.postgresql-support.de

Page 10: PostgreSQL instance encryption: More database security

Database encryption: An example

Hans-Jürgen Schönigwww.postgresql-support.de

Page 11: PostgreSQL instance encryption: More database security

Specific customer requirements

I Customer could only provide encryption based on expensivecommercial software

I Encryption is needed to fulfill legal and internal requirements

Hans-Jürgen Schönigwww.postgresql-support.de

Page 12: PostgreSQL instance encryption: More database security

Making it work

I Implement highly optimized code to handle encryption on theblock level in PostgreSQL

I Totally transparent to the end userI Keys can be stored in a key store of your choice

Hans-Jürgen Schönigwww.postgresql-support.de

Page 13: PostgreSQL instance encryption: More database security

What it does

I We encrypt:I TablesI IndexesI Temporary filesI Full WAL encryptionI Commit Log (clog)I More stuff: Subtransaction directories, MultiXact . . .

I What we do not encrypt (yet):I pg_stat_statements, logical replication buffers, control data (on

purpose)

Hans-Jürgen Schönigwww.postgresql-support.de

Page 14: PostgreSQL instance encryption: More database security

Encryption technology

I Extensible mechanismI Included in pgcrypto: AES-XTS 128I Future versions will use Intel hardware support

I Current prototype does 4 GB / sec per core !

Hans-Jürgen Schönigwww.postgresql-support.de

Page 15: PostgreSQL instance encryption: More database security

Good news

I We all got encryption nowI Not yet in core but available to end users already with full

professional supportI Patch on hackers

I Anybody willing to feedback?

Hans-Jürgen Schönigwww.postgresql-support.de

Page 16: PostgreSQL instance encryption: More database security

Commercial success

I Writing code + integrating was cheaper than just integratingcommercial stuff

I Makes sense for everybodyI CustomerI Community

Hans-Jürgen Schönigwww.postgresql-support.de

Page 17: PostgreSQL instance encryption: More database security

What we learn from this

I Have the guts and the conviction to do what is rightI Think for yourself

I Find solutions to YOUR problemsI Do not change your requirements just because some commercial

vendor forces you to do so

I Benefit from Open SourceI Invest wisely

Hans-Jürgen Schönigwww.postgresql-support.de

Page 18: PostgreSQL instance encryption: More database security

Where can we get the code?

I Our website has the code:I http://www.cybertec.at/en/products/postgresql-instance-

level-encryption/I It is under PostgreSQL license

Hans-Jürgen Schönigwww.postgresql-support.de

Page 19: PostgreSQL instance encryption: More database security

Finally

Hans-Jürgen Schönigwww.postgresql-support.de

Page 20: PostgreSQL instance encryption: More database security

Any questions?

I Feel free to ask

Hans-Jürgen Schönigwww.postgresql-support.de

Page 21: PostgreSQL instance encryption: More database security

Contact us

Cybertec Schönig & Schönig GmbH

Email: [email protected]: www.postgresql-support.deFollow us on Twitter: @PostgresSupport

Hans-Jürgen Schönigwww.postgresql-support.de