netbird/management/server/activity/sqlite
Bethuel Mmbaga cf6210a6f4
[management] Add GCM encryption and migrate legacy encrypted events (#2569)
* Add AES-GCM encryption

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* migrate legacy encrypted data to AES-GCM encryption

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Refactor and use transaction when migrating data

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Add events migration tests

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* fix lint

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* skip migrating record on error

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

* Preallocate capacity for nonce to avoid allocations in Seal

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>

---------

Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
2024-09-11 20:09:57 +03:00
..
crypt_test.go [management] Add GCM encryption and migrate legacy encrypted events (#2569) 2024-09-11 20:09:57 +03:00
crypt.go [management] Add GCM encryption and migrate legacy encrypted events (#2569) 2024-09-11 20:09:57 +03:00
migration_test.go [management] Add GCM encryption and migrate legacy encrypted events (#2569) 2024-09-11 20:09:57 +03:00
migration.go [management] Add GCM encryption and migrate legacy encrypted events (#2569) 2024-09-11 20:09:57 +03:00
sqlite_test.go Add context to throughout the project and update logging (#2209) 2024-07-03 11:33:02 +02:00
sqlite.go [management] Add GCM encryption and migrate legacy encrypted events (#2569) 2024-09-11 20:09:57 +03:00