Skip to content

[PM-35111] feat: Add FedRAMP (bitwarden-gov.com) entry to region selector#2857

Open
fedemkr wants to merge 5 commits into
mainfrom
worktree-PM-35111
Open

[PM-35111] feat: Add FedRAMP (bitwarden-gov.com) entry to region selector#2857
fedemkr wants to merge 5 commits into
mainfrom
worktree-PM-35111

Conversation

@fedemkr

@fedemkr fedemkr commented Jul 6, 2026

Copy link
Copy Markdown
Member

🎟️ Tracking

PM-35111

📔 Objective

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.

📸 Screenshots

New fedRAMP gov region option in the picker

… 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.
@fedemkr fedemkr requested review from a team and matt-livefront as code owners July 6, 2026 20:32
# 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
@github-actions github-actions Bot added app:password-manager Bitwarden Password Manager app context app:authenticator Bitwarden Authenticator app context t:feature labels Jul 6, 2026
@fedemkr fedemkr added the enhancement New feature or request label Jul 6, 2026
let environmentURLData: EnvironmentURLData = switch environmentURLData.region {
case .europe: .defaultEU
case .unitedStates: .defaultUS
case .gov: .defaultGov

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Should these be alphabetized?

@@ -0,0 +1,75 @@
import XCTest

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 If we're making a new test file, would it make sense to make it Swift Testing?

@testable import BitwardenKit

class EnvironmentURLsTests: BitwardenTestCase {
class EnvironmentURLsTests: BitwardenTestCase { // swiftlint:disable:this type_body_length

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 Is this getting rid of a pre-existing warning?

@testable import BitwardenShared
@testable import BitwardenSharedMocks

extension EnvironmentServiceTests {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨 Could we make these tests Swift Testing?

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 60.00000% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 40.60%. Comparing base (85f3884) to head (9f5541c).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...re/Platform/Models/Domain/EnvironmentURLData.swift 71.42% 2 Missing ⚠️
...rdenKit/Core/Platform/Models/Enum/RegionType.swift 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2857       +/-   ##
===========================================
- Coverage   81.27%   40.60%   -40.68%     
===========================================
  Files        1027      357      -670     
  Lines       66109    16664    -49445     
===========================================
- Hits        53733     6767    -46966     
+ Misses      12376     9897     -2479     

☔ View full report in Codecov by Harness.
📢 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context enhancement New feature or request t:feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants