Percona-Lab / pg_tde

MIT License
107 stars 19 forks source link

Encrypt relation's Internal Key in XLog #97

Closed dAdAbird closed 8 months ago

dAdAbird commented 8 months ago

XLog record with its Internal Key for replication purposes. This commit makes this Key encrypted with the master key. Therefore we have to add also a master key name to XLog. That also means that standbys should have access to the very same master key as the primary.

Fix https://github.com/Percona-Lab/postgres-tde-ext/issues/56

dAdAbird commented 8 months ago

I reckoned it make sense to run pgindent on the file

dutow commented 8 months ago

@dAdAbird pgIndent is a good idea, but could we do it in a separate PR instead? Maybe even on the entire code?

With this now, if you squash and merge, we'll end up with lots of formatting changes and some logic changes in a single commit.

dAdAbird commented 8 months ago

@dutow I rearranged commits so there are two now - changes and formatting - so we can merge this PR instead of squashing