Skip to content

Conversation

@SaintPatrck
Copy link
Contributor

@SaintPatrck SaintPatrck commented Feb 9, 2026

🎟️ Tracking

PM-31954
Relates to bitwarden/server#6892

📔 Objective

PM-27124 Add server communication models to ConfigResponseJson

Introduce new data models to the network module for handling server communication configuration received in the /config endpoint response.

Specifically, adds CommunicationJson and its nested BootstrapJson class to ConfigResponseJson to support server-driven cookie acquisition flows.

Specific Changes:

  • ConfigResponseJson.kt
    • Added a new nullable property communication: CommunicationJson? to ConfigResponseJson.
    • Defined the new serializable data class CommunicationJson, which contains a nullable bootstrap: BootstrapJson? property.
    • Defined the nested serializable data class BootstrapJson, which includes properties for SSO cookie vendor authentication:
      • type: String
      • idpLoginUrl: String?
      • cookieName: String?
      • cookieDomain: String?

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@SaintPatrck SaintPatrck requested review from a team and david-livefront as code owners February 9, 2026 21:09
@github-actions github-actions bot added app:password-manager Bitwarden Password Manager app context app:authenticator Bitwarden Authenticator app context labels Feb 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 9, 2026

Logo
Checkmarx One – Scan Summary & Details898c6d6d-f99b-4cb5-b949-5ae0845e9466

Great job! No new security vulnerabilities introduced in this pull request

@SaintPatrck SaintPatrck force-pushed the PM-31954/config-response-communication-prop branch 2 times, most recently from 429ef05 to fe4bbb7 Compare February 9, 2026 21:47
@Serializable
data class CommunicationJson(
@SerialName("bootstrap")
val bootstrap: BootstrapJson?,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this really nullable?

If they send the CommunicationJson, I would expect this property to be present, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct. Didn't mean to make this one nullable. Thanks.

val cookieName: String?,

@SerialName("cookieDomain")
val cookieDomain: String?,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is everything on this model really nullable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Based on the server PR, these are all nullable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

So the BootstrapJson could be present but completely empty?

@SaintPatrck SaintPatrck force-pushed the PM-31954/config-response-communication-prop branch from fe4bbb7 to 60da5ff Compare February 9, 2026 22:04
@codecov
Copy link

codecov bot commented Feb 9, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.36%. Comparing base (594cb50) to head (c892ba1).
⚠️ Report is 7 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6500   +/-   ##
=======================================
  Coverage   86.36%   86.36%           
=======================================
  Files         767      767           
  Lines       56035    56045   +10     
  Branches     8151     8152    +1     
=======================================
+ Hits        48395    48405   +10     
  Misses       4800     4800           
  Partials     2840     2840           

☔ 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.

@SaintPatrck SaintPatrck force-pushed the PM-31954/config-response-communication-prop branch from 60da5ff to 82a4331 Compare February 9, 2026 22:46
@SaintPatrck SaintPatrck added ai-review Request a Claude code review t:feature Change Type - Feature Development labels Feb 9, 2026
@claude
Copy link
Contributor

claude bot commented Feb 9, 2026

Claude finished @SaintPatrck's task in 1m 56s —— View job


Code Review Complete

  • Run Bitwarden code review skill
  • Analyze PR changes for issues
  • Post comprehensive review feedback

Status: Review completed and posted to GitHub. No blocking issues found. The PR correctly adds new CommunicationJson and BootstrapJson data models to support server-driven cookie acquisition flows.

The existing discussion about nullable properties has been resolved - bootstrap is now non-nullable, and the remaining nullable properties in BootstrapJson align with the server contract.

Introduce new data models to the `network` module for handling server communication configuration received in the `/config` endpoint response.

Specifically, adds `CommunicationJson` and its nested `BootstrapJson` class to `ConfigResponseJson` to support server-driven cookie acquisition flows.

### Specific Changes:

-   **`ConfigResponseJson.kt`**
    -   Added a new nullable property `communication: CommunicationJson?` to `ConfigResponseJson`.
    -   Defined the new serializable data class `CommunicationJson`, which contains a non-nullable `bootstrap: BootstrapJson` property.
    -   Defined the nested serializable data class `BootstrapJson`, which includes properties for SSO cookie vendor authentication:
        -   `type: String`
        -   `idpLoginUrl: String?`
        -   `cookieName: String?`
        -   `cookieDomain: String?`
@SaintPatrck SaintPatrck force-pushed the PM-31954/config-response-communication-prop branch from 82a4331 to c892ba1 Compare February 10, 2026 02:34
@github-actions github-actions bot removed the t:feature Change Type - Feature Development label Feb 10, 2026
@SaintPatrck SaintPatrck added this pull request to the merge queue Feb 10, 2026
Merged via the queue into main with commit cf3660a Feb 10, 2026
16 checks passed
@SaintPatrck SaintPatrck deleted the PM-31954/config-response-communication-prop branch February 10, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review app:authenticator Bitwarden Authenticator app context app:password-manager Bitwarden Password Manager app context

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants