8000 Add pgsodium getkey script using /dev/urandom and update to 2.0.1 by michelp · Pull Request #126 · supabase/postgres · GitHub
[go: up one dir, main page]

Skip to content

Add pgsodium getkey script using /dev/urandom and update to 2.0.1 #126

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

Merged
merged 5 commits into from
Jan 17, 2022
Merged

Add pgsodium getkey script using /dev/urandom and update to 2.0.1 #126

merged 5 commits into from
Jan 17, 2022

Conversation

michelp
Copy link
Contributor
@michelp michelp commented Jan 16, 2022

What kind of change does this PR introduce?

This adds a pgsodium getkey script which generates a random root key from /dev/urandom on db init.

What is the current behavior?

The current config does not preload pgsodium and cannot load a hidden root key.

What is the new behavior?

This change adds a script that postgres calls on boot to load a new key. I was originally adding this upstream in the supabase/supabase docker compose, but I think it makes more sense to make this feature available by default. This is backwards compatible and shouldn't break anything. My only concern would be it hsould only work on linux, bsd, and macos. If this package is expected to run on windows perhaps there is a way to make it optional.

Additional context

Add any other context or screenshots.

@michelp michelp changed the title Add pgsodium getkey script using /dev/urandom Add pgsodium getkey script using /dev/urandom and update to 2.0.1 Jan 17, 2022
@dragarcia dragarcia merged commit cc8ecd4 into supabase:develop Jan 17, 2022
hf pushed a commit that referenced this pull request Jan 23, 2023
* update to pgsodium 2.0.0

* add urandom get key script on db init.

* add urandom get key script on db init.

* update to pgsodium 2.0.1
damonrand pushed a commit to cepro/postgres that referenced this pull request Jun 15, 2025
…pabase#126)

* update to pgsodium 2.0.0

* add urandom get key script on db init.

* add urandom get key script on db init.

* update to pgsodium 2.0.1
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.

2 participants
0