Skip to content

feat(server): add Gov cloud region#7730

Merged
addisonbeck merged 1 commit into
mainfrom
pm-38016-gov-region
Jun 1, 2026
Merged

feat(server): add Gov cloud region#7730
addisonbeck merged 1 commit into
mainfrom
pm-38016-gov-region

Conversation

@addisonbeck

@addisonbeck addisonbeck commented May 27, 2026

Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-38016
Stacked on #7728

📔 Objective

Adds the Gov cloud region to CloudRegionConfig, following up on the refactor to create CloudRegionConfig on #7728. This applys the Gov region across different services in the server, like Swagger, Handlebars, CloudDomains, and mobile SSO.

@codecov

codecov Bot commented May 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.60%. Comparing base (7d0e729) to head (65ad821).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7730      +/-   ##
==========================================
+ Coverage   60.58%   60.60%   +0.01%     
==========================================
  Files        2146     2147       +1     
  Lines       95074    95093      +19     
  Branches     8507     8507              
==========================================
+ Hits        57598    57628      +30     
+ Misses      35451    35439      -12     
- Partials     2025     2026       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Base automatically changed from pm-38015-cloudregion-config to main May 28, 2026 16:43
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-38016
@addisonbeck addisonbeck force-pushed the pm-38016-gov-region branch from 01337bd to 65ad821 Compare May 28, 2026 18:02
@addisonbeck addisonbeck marked this pull request as ready for review May 28, 2026 18:03
@addisonbeck addisonbeck requested review from a team and dani-garcia May 28, 2026 18:04
@sonarqubecloud

Copy link
Copy Markdown

@addisonbeck addisonbeck merged commit 788eaa6 into main Jun 1, 2026
43 checks passed
@addisonbeck addisonbeck deleted the pm-38016-gov-region branch June 1, 2026 13:09
@djsmith85 djsmith85 added the t:feature Change Type - Feature Development label Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t:feature Change Type - Feature Development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants