mirror of
https://github.com/bitwarden/server
synced 2026-01-05 18:13:31 +00:00
Data protection for user columns at rest (#2571)
* ServerProtectedData for user entity * remove using statements * formatting * use data protection libs * no async * add data protection to ef user repo * switch to `SetApplicationName` per ASPNET docs * null checks * cleanup * value converter for EF * new line at eof * fix using * remove folder ref * restore ctor * fix lint * use global constant * UseApplicationServiceProvider for integration tests * implement constant for DatabaseFieldProtectedPrefix * Fix EF IntegrationTest * restore original values after protect and save * lint fixes * Use Constants Co-authored-by: Justin Baur <19896123+justindbaur@users.noreply.github.com>
This commit is contained in:
@@ -9,6 +9,8 @@ public static class Constants
|
||||
// in nginx/proxy.conf may also need to be updated accordingly.
|
||||
public const long FileSize101mb = 101L * 1024L * 1024L;
|
||||
public const long FileSize501mb = 501L * 1024L * 1024L;
|
||||
public const string DatabaseFieldProtectorPurpose = "DatabaseFieldProtection";
|
||||
public const string DatabaseFieldProtectedPrefix = "P|";
|
||||
}
|
||||
|
||||
public static class TokenPurposes
|
||||
|
||||
Reference in New Issue
Block a user