Skip to content

[PM-34116][PM-34117] Drivers License and Passport#7512

Merged
nick-livefront merged 11 commits into
mainfrom
vault/pm-34116-34117/drivers-license-passport
Apr 28, 2026
Merged

[PM-34116][PM-34117] Drivers License and Passport#7512
nick-livefront merged 11 commits into
mainfrom
vault/pm-34116-34117/drivers-license-passport

Conversation

@nick-livefront
Copy link
Copy Markdown
Contributor

@nick-livefront nick-livefront commented Apr 20, 2026

🎟️ Tracking

PM-34116
PM-34117

📔 Objective

Building off of #7112, this adds Driver's License and Passport types.

  • I refactored the minimum version type to be respective all item types in the epic rather than specific item types.

📸 Screenshots

N/A

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 20, 2026

Logo
Checkmarx One – Scan Summary & Details1da348d9-9090-4a80-b276-8a75daafab3a


New Issues (2) Checkmarx found the following issues in this Pull Request
# Severity Issue Source File / Package Checkmarx Insight
1 MEDIUM CSRF src/Api/Vault/Controllers/CiphersController.cs: 1558
detailsMethod at line 1558 of /src/Api/Vault/Controllers/CiphersController.cs gets a parameter from a user request from id. This parameter value flows ...
Attack Vector
2 MEDIUM CSRF src/Api/Vault/Controllers/CiphersController.cs: 1385
detailsMethod at line 1385 of /src/Api/Vault/Controllers/CiphersController.cs gets a parameter from a user request from id. This parameter value flows ...
Attack Vector

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 20, 2026

Codecov Report

❌ Patch coverage is 94.66667% with 8 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.25%. Comparing base (d1280e8) to head (6e6e0eb).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Api/Vault/Models/Request/CipherRequestModel.cs 92.00% 2 Missing and 2 partials ⚠️
...re/Vault/Services/Implementations/CipherService.cs 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7512      +/-   ##
==========================================
+ Coverage   59.18%   59.25%   +0.07%     
==========================================
  Files        2077     2081       +4     
  Lines       91888    92036     +148     
  Branches     8177     8179       +2     
==========================================
+ Hits        54380    54534     +154     
+ Misses      35572    35563       -9     
- Partials     1936     1939       +3     

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

@nick-livefront nick-livefront marked this pull request as ready for review April 22, 2026 20:27
@nick-livefront nick-livefront requested review from a team as code owners April 22, 2026 20:27
IssuingCountry = DriversLicense.IssuingCountry,
IssuingState = DriversLicense.IssuingState,
ExpirationDate = DriversLicense.ExpirationDate,
LicenseClass = DriversLicense.LicenseClass,
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 there a reason DateOfBirth,IssueDate, and IssuingAuthority are omitted here?

Similarly with the passport below Sex, BirthPlace, and NationalIdentificationNumber are missing.

Tests would need to be updated if these are added.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Nope, they slipped through my own code review. Nice catch! These were the fields that were added after the original requirements. c4f8d2b

Copy link
Copy Markdown
Contributor

@jengstrom-bw jengstrom-bw left a comment

Choose a reason for hiding this comment

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

Looks good!

@nick-livefront nick-livefront enabled auto-merge (squash) April 28, 2026 01:29
@sonarqubecloud
Copy link
Copy Markdown

@nick-livefront nick-livefront merged commit 39a132d into main Apr 28, 2026
39 of 40 checks passed
@nick-livefront nick-livefront deleted the vault/pm-34116-34117/drivers-license-passport branch April 28, 2026 17:35
jaasen-livefront pushed a commit that referenced this pull request Apr 29, 2026
* update minimum version to handle all new item types rather than individual types

* add cipher types for driverslicense and passport

* add request and response models for DriversLicense and Passport

* add events for DriversLicense and Passport

* add seeder

* add additional properties from CXP

* add additional fields
nick-livefront added a commit to bitwarden/sdk-internal that referenced this pull request May 1, 2026
## 🎟️ Tracking

[PM-32691](https://bitwarden.atlassian.net/browse/PM-32691)
[PM-32694](https://bitwarden.atlassian.net/browse/PM-3269)
Server PR: bitwarden/server#7512

## 📔 Objective

Following suit from #949,
this PR adds `Driver's License` and `Passport` cipher types to the SDK.

@bitwarden/team-vault-dev - This clients pr:
bitwarden/clients#20438 will need to fast follow
to fix the breaking changes here and unblock any other SDK updates.
Implementation of the new cipher types will follow that PR.

## 🚨 Breaking Changes

New `Driver's License` and `Passport` types added to CipherType,
CipherListViewType, and CipherViewType — clients must handle


[PM-32691]:
https://bitwarden.atlassian.net/browse/PM-32691?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
[PM-32694]:
https://bitwarden.atlassian.net/browse/PM-32694?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants