securitybunker / databunker

Secure Vault for Customer PII/PHI/PCI/KYC Records
https://databunker.org/
MIT License
1.26k stars 73 forks source link

PostgreSQL backend? #9

Closed beeing closed 6 months ago

beeing commented 2 years ago

Hi @stremovsky, thank you for such as great project. It definitely helps many developers on PII compliance.

Just wondering is there a plan to support alternate DB like PostgreSQL? It is easier for self-hosting since there's existing tech stacks for this.

Thanks in advance!

stremovsky commented 2 years ago

Hello

I do support PostgreSQL in the Databunker PRO. It is used for multi- tenancy implemented using PostgreSQL row-based security feature.

If the community wants PostgreSQL support I can port the code to the regular version of Databunker.

Best regards, Yuli

stremovsky commented 2 years ago

I committed the postgresql support: https://github.com/securitybunker/databunker/blob/master/src/storage/pgsql-storage.go

I will need to do some tests to make sure it is working.

stremovsky commented 2 years ago

You will be able now to run Databunker with PostgreSQL

First run: ./generate-pgsql-env-files.sh script to generate .env directory and files with sectets.

Run docker-compose -f docker-compose-pgsql.yml up to start postgresql container and databunker together.

Best of luck!

beeing commented 2 years ago

Thanks @stremovsky, let me try it out and report if there's any issues.

rakateja commented 11 months ago

hey @beeing, have you tried Databunker with PostgreSQL in production? how was it? Thank you 🙇

stremovsky commented 6 months ago

@rakateja I am running it for quite a long time and I see no problems.

Thanks