Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

Add fsync for pg_tde.map, pg_tde.dat files and FS key provider #200

Closed dAdAbird closed 2 months ago

dAdAbird commented 4 months ago

Creating Internal and External key we write data into file without fsync() (see pg_tde_write_one_map_entry() for example). It can lead to situation when encrypted data is written to the disk but the internal key is lost due to a server crash.

The same concerned set_key_by_name() of keyringFileRoutine

ImTheKai commented 2 months ago

Will be tracked here https://perconadev.atlassian.net/browse/PG-824