-
-
Notifications
You must be signed in to change notification settings - Fork 125
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
Encryption at rest #236
Comments
Fasten currently uses https://github.com/glebarez/sqlite which is a Go sqlite driver for Gorm (depends on glebarez/go-sqlite which is a fork of https://gitlab.com/cznic/sqlite) neither glebarez/sqlite nor cznic/sqlite support encryption at rest. https://github.com/jackfr0st13/gorm-sqlite-cipher is a Gorm driver based on https://github.com/mattn/go-sqlite3 (written in C) that supports encryption. We should see if we can copy/translate its code to work with glebarez/sqlite or glebarez/go-sqlite
|
mattn/go-sqlite3 has an open PR mattn/go-sqlite3#1109 which adds support for sqlcipher (and https://github.com/utelle/SQLite3MultipleCiphers) If we feel comfortable switching to mattn/go-sqlite3, we can use @jgiannuzzi 's branch/PR to enable encryption This comes with the following considerations:
|
For reference about building and distributing, we use my fork in https://github.com/G-Research/fasttrackml and we distribute Docker images and fully static binaries for all major platforms |
Migrated from github.com/glebarez/sqlite to gorm.io/driver/sqlite (which uses github.com/mattn/go-sqlite3) Override github.com/mattn/go-sqlite3 with forked version from @jgiannuzzi which supports Encryption at rest. See mattn/go-sqlite3#1109 See #236 Added documentation for how to open an encrypted sqlite database in IntelliJ - CONTRIBUTING.md update
thanks for the confirmation @jgiannuzzi. I've built binaries using cross-compilation in the past, and its been pretty brutal when using CGO, but this wasn't too bad (and thankfully I don't need to do cross-compilation for Fasten) I was able to use your branch, and get everything working pretty nicely - #284 Thanks for all your hard work @jgiannuzzi, I can't wait until your PR is merged into |
Could you please let the maintainers of |
Migrated from github.com/glebarez/sqlite to gorm.io/driver/sqlite (which uses github.com/mattn/go-sqlite3) Override github.com/mattn/go-sqlite3 with forked version from @jgiannuzzi which supports Encryption at rest. See mattn/go-sqlite3#1109 See #236 Added documentation for how to open an encrypted sqlite database in IntelliJ - CONTRIBUTING.md update
https://github.com/jackfr0st13/gorm-sqlite-cipher
The text was updated successfully, but these errors were encountered: