Skip to content

Update sdk-internal to 0.2.0-main.1182 - #24245

Merged
quexten merged 7 commits into
mainfrom
sdlc/sdk-update
Nov 3, 2026
Merged

quexten merged 7 commits into
mainfrom
sdlc/sdk-update

Conversation

@bw-ghapp

@bw-ghapp bw-ghapp Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🤖 Automated SDK Update

This PR updates the SDK packages to version 0.2.0-main.1182.

Changes

  • @bitwarden/sdk-internal: 0.2.0-main.1175 → 0.2.0-main.1182
  • @bitwarden/commercial-sdk-internal: 0.2.0-main.1175 → 0.2.0-main.1182

What's Changed in SDK

Raw changelog
- [PM-40815] feat: Support AES-256-CBC-HMAC wrapping keys in SymmetricKeyEnvelope (#1616)
- ci: Reuse the workspace build for the pwsh integration tests (#1690)
- ci: Cache workspace build output in Rust tests (#1683)
- ci: Build less for native tests on Windows and macOS (#1691)
- [PM-45259] Adds a per-cipher HTTP authentication setting to logins (#1675)
- [PM-43033] feat: Map auto-confirm policy violation errors on invite link accept (#1688)
- [PM-45939] Include http_authentication_enabled in legacy cipher data (#1696)

Links

@bw-ghapp bw-ghapp Bot added automated pr PR created by workflow or other automation t:deps Change Type - Dependencies labels Oct 29, 2026
@claude

claude Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @bw-ghapp[bot]'s task in 11m 21s —— View job


SDK bump evaluated

@bitwarden/sdk-internal and @bitwarden/commercial-sdk-internal: 0.2.0-main.1175 → 0.2.0-main.1182 (both pins match).
sdk-internal range: 47f3a7f7..c1c9b9a5 — 7 commits.

Published surface diff (identical for OSS and commercial): 0 removed, 2 added, 1 mutated.

Compile-time breaks

None found. The type check passed — the pre-bump baseline npm run test:types ran against the new packages and exited 0 with no error TS across all projects and 4805 tsc-strict files, and the verifying run after the fix below also passed (exit 0).

Neither surface change can break a call site:

  • Login.httpAuthenticationEnabled / LoginView.httpAuthenticationEnabled are optional (?: boolean), so no construction site breaks; git grep finds no clients reference to either.
  • AcceptInviteLinkError.variant only widened its string union, and its one consumer switches with a default: arm.

Call sites the baseline does not cover were checked too: no file under apps/**, apps/**/*.spec.ts, bitwarden_license/**, or any jest.mock("@bitwarden/sdk-internal") factory references the three changed members, and nothing in range touches the PasswordManagerClient constructor that libs/common/spec/jest-sdk-client-factory.ts mirrors.

Runtime considerations

1. Unhandled auto-confirm error variants — found and fixed.
AcceptInviteLinkError.variant gained AutoConfirmPolicyViolationOtherOrg and AutoConfirmPolicyViolationTargetOrg (bitwarden/sdk-internal#1688, 404d3d4f), mapped from server codes auto_confirm_policy_violation_other_org / _target_org. In classifyOpenOrgInviteAcceptError (libs/common/src/auth/organization-invite/services/implementations/default-organization-invite.service.ts:291) both fell through to default: → { kind: "unexpected" }, so a user blocked by an Automatic User Confirmation policy would have seen a generic error — even though the client already has auto-confirm-policy-violation-{target,other}-org kinds with localized copy, produced today by the legacy-message path at :432 and :442. Added the two case arms mirroring the adjacent SingleOrganizationPolicy / MemberOfAnotherOrganization pair, corrected the now-false "the SDK has no variant for them" doc comment, and extended the it.each variant table in the spec. No new result kinds, UI branches, or i18n keys were needed.

2. httpAuthenticationEnabled is not carried by the clients' SDK mappers — reported, not fixed.
bitwarden/sdk-internal#1675 and #1696 add the per-cipher HTTP authentication setting to LoginView (blob) and Login (legacy, stored unencrypted like autofillOnPageLoad). LoginView.toSdkLoginView/fromSdkLoginView (libs/common/src/vault/models/view/login.view.ts:116,140) and the Login equivalents omit it, so a cipher round-tripping TS → SDK → TS drops the value. No live impact today: nothing in clients sets it, and per #1696 CipherLoginModel has no property yet, so the value does not reach the server either. Wiring it through is feature work already tracked — libs/vault/src/cipher-form/components/additional-options/additional-options-section.component.ts:124 carries an explicit TODO(PM-45263) to patch the value once the cipher stores it, and the control is still gated behind the EnableBasicAuthResponse flag plus the httpAuthenticationCipherControls dev flag. Out of scope for a version bump; flagging it so PM-45263 picks up the mapper side.

Everything else in range — confirmed safe

  • f2f05345 PM-40815 AES-256-CBC-HMAC wrapping keys in SymmetricKeyEnvelope (#1616) — internal to bitwarden-crypto; emits no TS surface change and SymmetricKeyEnvelope has no clients call site.
  • 71794918 (#1690), 89119cd8 (#1683), d7ab9964 (#1691) — CI-only build/caching changes, no crate code.
  • bae4427e (#1675) and c1c9b9a5 (#1696) — beyond the optional field noted above, the remaining hunks are Rust-side blob/legacy plumbing, tests and docs with no binding impact. Blob compatibility is preserved by #[serde(default)], so existing blobs need no migration, and no enum wire value was renumbered anywhere in range.

Commit

6a4e638c — "Map new auto-confirm AcceptInviteLinkError variants", on sdlc/sdk-update. package.json untouched.

Verification, all four run in order: npm run lint:fix (0 errors; 368 pre-existing unrelated warnings), npx prettier --write (both files unchanged), npm run test:types (exit 0), npm test -- libs/common/src/auth/organization-invite --maxWorkers=2 (4 suites, 183 tests, 0 failures).

One thing for a reviewer to weigh, deliberately not changed here: the default: arm means the next SDK variant will silently degrade to unexpected the same way. Making that switch exhaustive over the SDK union would catch it at compile time, but that reshapes the error-classification contract and belongs with the AC team owning PM-43102, not with a version bump.
· branch sdlc/sdk-update

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.63%. Comparing base (5a68808) to head (f1eb2e9).
⚠️ Report is 5 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24245      +/-   ##
==========================================
+ Coverage   61.61%   61.63%   +0.01%     
==========================================
  Files        4892     4893       +1     
  Lines      157691   157887     +196     
  Branches    25265    25299      +34     
==========================================
+ Hits        97169    97320     +151     
- Misses      53831    53853      +22     
- Partials     6691     6714      +23     

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

@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from fc91183 to 0b9641b Compare October 29, 2026 08:27
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1176 Update sdk-internal to 0.2.0-main.1177 Oct 29, 2026
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1177 Update sdk-internal to 0.2.0-main.1178 Oct 29, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch 2 times, most recently from 0d5299b to ccb590a Compare October 29, 2026 13:18
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1178 Update sdk-internal to 0.2.0-main.1179 Oct 29, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from ccb590a to b966ab8 Compare October 29, 2026 14:39
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1179 Update sdk-internal to 0.2.0-main.1180 Oct 29, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from b966ab8 to eb2518a Compare October 29, 2026 19:07
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1180 Update sdk-internal to 0.2.0-main.1181 Oct 29, 2026
@bw-ghapp
bw-ghapp Bot requested a review from a team as a code owner October 29, 2026 19:24
@bw-ghapp
bw-ghapp Bot requested a review from ike-kottlowski October 29, 2026 19:24
@bw-ghapp bw-ghapp Bot changed the title Update sdk-internal to 0.2.0-main.1181 Update sdk-internal to 0.2.0-main.1182 Oct 29, 2026
@bw-ghapp
bw-ghapp Bot force-pushed the sdlc/sdk-update branch from 8d6a1d2 to 5d7ab3c Compare October 29, 2026 21:19
sdk-internal 404d3d4 (bitwarden/sdk-internal#1688) added the
AutoConfirmPolicyViolationTargetOrg and AutoConfirmPolicyViolationOtherOrg
variants to AcceptInviteLinkError. Without case arms they fell through to
`default:` and surfaced as a generic `unexpected` error, even though both
result kinds and their localized messages already exist and are produced
today by the legacy API-message path.
ike-kottlowski
ike-kottlowski previously approved these changes Oct 29, 2026
@ike-kottlowski
ike-kottlowski self-requested a review October 29, 2026 22:27
@quexten
quexten enabled auto-merge (squash) November 3, 2026 13:48
@quexten

quexten commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Auto-merge is on so should be done after the tests run.

@quexten
quexten merged commit 45d4500 into main Nov 3, 2026
270 of 276 checks passed
@quexten
quexten deleted the sdlc/sdk-update branch November 3, 2026 14:06
@djsmith85 djsmith85 added browser Browser Extension desktop Desktop Application cli CLI Application web labels Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automated pr PR created by workflow or other automation browser Browser Extension cli CLI Application desktop Desktop Application t:deps Change Type - Dependencies web

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants