-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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-12607] Move key rotation & validators to km ownership #4941
base: main
Are you sure you want to change the base?
Changes from all commits
1ef37fb
10124e2
d925bac
52581fa
dc44898
1ed890f
aa112cf
c9df50e
cbac040
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
using Bit.Core.Auth.Models.Data; | ||
using Bit.Core.Entities; | ||
using Bit.Core.Entities; | ||
using Bit.Core.KeyManagement.Models.Data; | ||
using Microsoft.AspNetCore.Identity; | ||
using Microsoft.Data.SqlClient; | ||
|
||
namespace Bit.Core.Auth.UserFeatures.UserKey; | ||
namespace Bit.Core.KeyManagement.UserFeatures.UserKey; | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong namespace as already pointed out by @djsmith85 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any automated linting, we could put in places to prevent this in the future? |
||
/// <summary> | ||
/// Responsible for rotation of a user key and updating database with re-encrypted data | ||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,13 +1,13 @@ | ||||||
using Bit.Core.Auth.Models.Data; | ||||||
using Bit.Core.Auth.Repositories; | ||||||
using Bit.Core.Auth.Repositories; | ||||||
using Bit.Core.Entities; | ||||||
using Bit.Core.KeyManagement.Models.Data; | ||||||
using Bit.Core.Repositories; | ||||||
using Bit.Core.Services; | ||||||
using Bit.Core.Tools.Repositories; | ||||||
using Bit.Core.Vault.Repositories; | ||||||
using Microsoft.AspNetCore.Identity; | ||||||
|
||||||
namespace Bit.Core.Auth.UserFeatures.UserKey.Implementations; | ||||||
namespace Bit.Core.KeyManagement.UserFeatures.UserKey.Implementations; | ||||||
|
||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. wrong namespace to the file location, should be:
Suggested change
Or move the file to "UserFeatures" directory. |
||||||
/// <inheritdoc /> | ||||||
public class RotateUserKeyCommand : IRotateUserKeyCommand | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. namespace not updated, should be |
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.
⛏️ Namespace doesn't correspond to file location, due to
UserFeatures
not existing underKeyManagement