Skip to content

[PM-28195] Remove pm-27632-cipher-crud-operations-to-sdk feature flag - #23921

Merged
jaasen-livefront merged 6 commits into
mainfrom
vault/pm-28195/remove-sdk-cipher-crud-flag
Oct 22, 2026
Merged

jaasen-livefront merged 6 commits into
mainfrom
vault/pm-28195/remove-sdk-cipher-crud-flag

Conversation

@jaasen-livefront

@jaasen-livefront jaasen-livefront commented Oct 16, 2026 •

Copy link
Copy Markdown
Collaborator

🎟️ Tracking

PM-28195

📔 Objective

Removes the pm-27632-cipher-crud-operations-to-sdk flag. Cipher create/update/delete/soft-delete/restore, getAllDecrypted, and getAllFromApiForOrganization now always go through the SDK.

Also removes what the legacy path left unused:

  • 18 cipher endpoints on ApiService (deleteCipher stays; data recovery uses it)
  • CipherBulkDeleteRequest, CipherBulkRestoreRequest, CipherCreateRequest, CipherPartialRequest
  • The full-decryption branch of decryptCiphersWithSdk

📸 Screenshots

N/A — no UI changes.

…ature flag

Cipher CRUD now always routes through the SDK. Drops the legacy API paths, the
ApiService endpoints and request models only they used.
@codecov

codecov Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.46%. Comparing base (07f8ba1) to head (3f7823e).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
libs/common/src/vault/services/cipher.service.ts 66.66% 4 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #23921      +/-   ##
==========================================
- Coverage   59.53%   59.46%   -0.07%     
==========================================
  Files        4709     4705       -4     
  Lines      149032   148850     -182     
  Branches    23743    23713      -30     
==========================================
- Hits        88729    88520     -209     
- Misses      54130    54150      +20     
- Partials     6173     6180       +7     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaasen-livefront jaasen-livefront added the t:tech-debt Change Type - Tech debt label Oct 16, 2026
@jaasen-livefront
jaasen-livefront marked this pull request as ready for review October 16, 2026 21:00
@jaasen-livefront
jaasen-livefront requested a review from a team as a code owner October 16, 2026 21:00
@github-actions

github-actions Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR removes the pm-27632-cipher-crud-operations-to-sdk flag. Cipher create, update, delete, soft-delete, restore, getAllDecrypted, and getAllFromApiForOrganization now always go through the SDK. It also deletes the legacy ApiService endpoints, the four unused request models, and the full-decryption branch of decryptCiphersWithSdk. A repo-wide search found no remaining references to any removed symbol, flag, or method. The org-vault decryption-failure behavior raised in the earlier review was resolved by the author as an intentional decision, so this review does not raise it again.

@jaasen-livefront
jaasen-livefront marked this pull request as draft October 16, 2026 21:06
@jaasen-livefront
jaasen-livefront removed the request for review from shane-melton October 16, 2026 21:06
@jaasen-livefront
jaasen-livefront marked this pull request as ready for review October 19, 2026 17:32
aaronjordan
aaronjordan previously approved these changes Oct 19, 2026
@jaasen-livefront

Copy link
Copy Markdown
Collaborator Author

@aaronjordan Had to fix a merge conflict if you wouldn't mind taking another look. Ty!

nikwithak
nikwithak previously approved these changes Oct 22, 2026

@nikwithak nikwithak left a comment

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.

✂️ ✂️

@jaasen-livefront

Copy link
Copy Markdown
Collaborator Author

@nikwithak Had to fix a failing test. Ready for another look when you have a chance!

@jaasen-livefront
jaasen-livefront merged commit f9e3fc5 into main Oct 22, 2026
158 of 160 checks passed
@jaasen-livefront
jaasen-livefront deleted the vault/pm-28195/remove-sdk-cipher-crud-flag branch October 22, 2026 22:43
@djsmith85 djsmith85 added browser Browser Extension and removed t:tech-debt Change Type - Tech debt labels Nov 18, 2026
@djsmith85 djsmith85 added desktop Desktop Application cli CLI Application web t:flagged-code-removal Change Type - Remove feature flagged code, GA and likely also removing the previous default flow. labels Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

browser Browser Extension cli CLI Application desktop Desktop Application t:flagged-code-removal Change Type - Remove feature flagged code, GA and likely also removing the previous default flow. web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants