Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal keyring prototype #8

Merged
merged 2 commits into from
Sep 4, 2023
Merged

Minimal keyring prototype #8

merged 2 commits into from
Sep 4, 2023

Conversation

dutow
Copy link
Collaborator

@dutow dutow commented Aug 23, 2023

This commit implements a very basic file based keyring, intended for development.

To use the server after these changes, the following initialization steps are required:

  • pg_tde should be preloaded: ALTER SYSTEM SET shared_preload_libraries = 'pg_tde';
  • pg_tde extension should be installed
  • pg_tde.keyringConfigFile = '' should be set in postgresql.conf or command line
  • The config file is a simple json file
  • After the variable is set, and the config file exists, the server needs a restart

Example config file:

{
'provider': 'file',
'datafile': '/tmp/pgkeyring.data',
}

@dutow dutow marked this pull request as draft August 23, 2023 13:38
@dutow dutow force-pushed the keyring branch 2 times, most recently from af8523b to 72bc641 Compare August 24, 2023 06:52
@dutow dutow force-pushed the keyring branch 2 times, most recently from ccb0592 to 821a790 Compare August 31, 2023 09:26
@dutow dutow marked this pull request as ready for review August 31, 2023 09:31
This commit implements a very basic file based keyring, intended for development.

To use the server after these changes, the following initialization steps are required:

* pg_tde should be preloaded: ALTER SYSTEM SET shared_preload_libraries = 'pg_tde';
* pg_tde extension should be installed
* pg_tde.keyringConfigFile = '<path>' should be set in postgresql.conf or command line
* The config file is a simple json file
* After the variable is set, and the config file exists, the server needs a restart

Example config file:

{
        'provider': 'file',
        'datafile': '/tmp/pgkeyring.data',
}
src/Makefile Outdated
@@ -0,0 +1,19 @@
# contrib/pg_tde/Makefile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need this file anymore. It was removed in 9fa73a6#diff-3e2513390df543315686d7c85bd901ca9256268970032298815d2f893a9f0685

@dutow dutow merged commit 7443f3e into Percona-Lab:tuple_enc Sep 4, 2023
2 of 3 checks passed
@dutow dutow deleted the keyring branch September 4, 2023 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants