Commit 788eaa6
authored
feat(server): add Gov cloud region (#7730)
Adds the Gov cloud region across three layers. Enum: Gov = 2 in
Bit.Core.Enums.CloudRegion. Config: Gov entry in
CloudRegionConfig.All (bitwarden-gov.com domain, API, identity,
vault, and SSO-callback URLs). Because Constants.BitwardenCloudDomains
and BitwardenMobileSsoCallbackUris derive from CloudRegionConfig.All,
and ServiceCollectionExtensions iterates All for Swagger server
registration, Gov flows into HTTPS-redirect allowlists, mobile SSO
callback validation, and OpenAPI server definitions without further
code changes. Tests: first coverage for BitwardenCloudDomains and
BitwardenMobileSsoCallbackUris membership and for
GetCloudVaultSubscriptionUrl URL resolution, parametrized over
US/EU/Gov.
Server-side foundation for the Bitwarden Gov cloud environment,
independent of any feature flag. Stacked on PM-38015's consolidation
work; adding Gov required only one enum value and one
CloudRegionConfig.All entry.
Refs: PM-380161 parent 9b3e01e commit 788eaa6
4 files changed
Lines changed: 49 additions & 0 deletions
File tree
- src/Core
- Enums
- Settings
- test/Core.Test
- Services
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | 64 | | |
58 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
367 | 383 | | |
0 commit comments