[PM-39884] feat: Hide Gov region from start registration region picker#2869
[PM-39884] feat: Hide Gov region from start registration region picker#2869fedemkr wants to merge 8 commits into
Conversation
… selector Adds a `.gov` RegionType case backed by bitwarden-gov.com default URLs so users can select the new government cloud environment from the region selector, ahead of the broader FedRAMP support work tracked in PM-35110.
# Conflicts: # BitwardenKit/Core/Platform/Models/Domain/EnvironmentURLData.swift # BitwardenKit/Core/Platform/Models/Domain/EnvironmentURLs.swift # BitwardenShared/Core/Platform/Models/Enum/RegionType.swift # BitwardenShared/Core/Platform/Models/Enum/RegionTypeTests.swift # BitwardenShared/Core/Platform/Services/EnvironmentService.swift # BitwardenShared/UI/Auth/Utilities/RegionHelper.swift
…erRegistration config Adds `settings.disableUserRegistration` to `ConfigResponseModel` and `ServerConfig`. The landing processor subscribes to `configPublisher` in `init` and reactively hides the "New around here? Create account" row whenever the server signals that user registration is disabled.
…gainst disableUserRegistration FedRAMP does not allow self-registration, so the Gov region is now excluded from the region selector on the start registration screen. Additionally, the processor now subscribes to configPublisher and shows an alert + dismisses when disableUserRegistration becomes true after a region change, mirroring the pattern used in LandingProcessor.
🤖 Bitwarden Claude Code ReviewOverall Assessment: APPROVE Reviewed the addition of the Gov (FedRAMP) region to the shared No blocking issues found. Test coverage is thorough across Code Review DetailsNo findings at or above the reporting confidence threshold. Notes considered and intentionally not raised as findings:
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2869 +/- ##
===========================================
- Coverage 81.24% 40.58% -40.67%
===========================================
Files 1027 357 -670
Lines 66109 16675 -49434
===========================================
- Hits 53712 6767 -46945
+ Misses 12397 9908 -2489 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-39884
📔 Objective
FedRAMP does not allow self-registration, so the Gov region
(
bitwarden-gov.com) is now hidden from the region selector on thestart registration screen. Additionally, the processor subscribes to
configPublisherand dismisses with an alert ifdisableUserRegistrationbecomes
trueafter a region change — mirroring the pattern used inLandingProcessor.