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
[PM-7029] Remove conditional logic for KeyRotationImprovements feature flag #4002
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4002 +/- ##
==========================================
+ Coverage 37.86% 38.00% +0.13%
==========================================
Files 1192 1192
Lines 57988 57781 -207
Branches 5549 5535 -14
==========================================
Hits 21960 21960
+ Misses 34995 34788 -207
Partials 1033 1033 ☔ View full report in Codecov by Sentry. |
New Issues
Fixed Issues
|
result = await _userService.UpdateKeyAsync( | ||
user, | ||
model.MasterPasswordHash, | ||
model.Key, | ||
model.PrivateKey, | ||
ciphers, | ||
folders, | ||
sends); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this method too? I think this is only called here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that I think about it, we also have code in the repository that needs to be removed as well. The good news is there's no actual sql, it should just be _cipherRepository.UpdateUserKeysAndCiphersAsync
in both repos (assuming nothing else calls it of course)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Thank you. I've removed the methods.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vault changes look good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this! May want to wait until rc
is cut before merging
Type of change
Objective
Removed the conditional logic for the KeyRotationImprovements feature flag now that it has been 3 releases.
Note that the flag itself is kept as defined so that old clients will still be able to act on it.
This was causing bitwarden/clients#8453 for self-hosted customers with the flag off. Rather than try to fix the issue, I elected to remove the flag as the feature has already been enabled.
See corresponding clients PR: bitwarden/clients#8816.
Before you submit
dotnet format --verify-no-changes
) (required)