1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-21 12:05:42 +01:00
bitwarden-server/test
Jake Fink 989603ddd3
[Pm 3797 Part 2] Add emergency access rotations (#3434)
## Type of change

<!-- (mark with an `X`) -->

```
- [ ] Bug fix
- [ ] New feature development
- [x] Tech debt (refactoring, code cleanup, dependency upgrades, etc)
- [ ] Build/deploy pipeline (DevOps)
- [ ] Other
```

## Objective
<!--Describe what the purpose of this PR is. For example: what bug you're fixing or what new feature you're adding-->
See #3425 for part 1 and background.

This PR adds emergency access to the rotation. All new code is hidden behind a feature flag.

The Accounts controller has also been moved to Auth ownership.

## Code changes
<!--Explain the changes you've made to each file or major component. This should help the reviewer understand your changes-->
<!--Also refer to any related changes or PRs in other repositories-->

* **file.ext:** Description of what was changed and why
* **AccountsController.cs:** Moved to Auth ownership. Emergency access validation was added (as well as initializing empty lists to avoid errors).
* **EmergencyAccessRotationValidator.cs:** Performs validation on the provided list of new emergency access keys.
* **EmergencyAccessRepository.cs:** Adds a method to rotate encryption keys. This is added to a list in the `RotateUserKeyCommand` that the `UserRepository` calls so it doesn't have to know about all the domains.

## Before you submit

- Please check for formatting errors (`dotnet format --verify-no-changes`) (required)
- If making database changes - make sure you also update Entity Framework queries and/or migrations
- Please add **unit tests** where it makes sense to do so (encouraged but not required)
- If this change requires a **documentation update** - notify the documentation team
- If this change has particular **deployment requirements** - notify the DevOps team
2023-12-05 12:05:51 -05:00
..
Api.IntegrationTest Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Api.Test [Pm 3797 Part 2] Add emergency access rotations (#3434) 2023-12-05 12:05:51 -05:00
Billing.Test Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Common Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Core.Test [Pm 3797 Part 2] Add emergency access rotations (#3434) 2023-12-05 12:05:51 -05:00
Icons.Test Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Identity.IntegrationTest Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Identity.Test [PM-3565] Enforce higher minimum KDF (#3304) 2023-12-05 17:21:46 +01:00
Infrastructure.EFIntegration.Test Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
Infrastructure.IntegrationTest Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
IntegrationTestCommon Bumped version to 2023.12.0 (#3519) 2023-12-05 10:55:20 -05:00
bitwarden.tests.sln Add identity tests to test solution (#3342) 2023-10-13 14:15:11 +02:00
coverage.ps1 Implement code coverage tool (#1390) 2021-06-21 12:22:47 -05:00
coverage.sh Fix bug in TaxInfo (#1682) 2021-11-01 12:13:31 -04:00