Skip to content

feat: make v2 opt-in on password change + plumb through changePassword - #9439

Open
pranavjain97 wants to merge 2 commits into
masterfrom
pranavjain/wcn-1814-followup-preserve-envelope-version
Open

feat: make v2 opt-in on password change + plumb through changePassword#9439
pranavjain97 wants to merge 2 commits into
masterfrom
pranavjain/wcn-1814-followup-preserve-envelope-version

Conversation

@pranavjain97

@pranavjain97 pranavjain97 commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Flip the default: updateSingleKeychainPassword / updatePassword now preserve the source envelope version (v1 stays v1, v2 stays v2). Callers opt in to the Argon2id upgrade with encryptionVersion: 2.
  • Plumb it through: BitGoAPI.changePassword accepts an optional encryptionVersion and forwards it to both v1- and v2-API keychains().updatePassword calls.

Why opt-in

Rolling out a v2 default before the Sept 15 breaking-change window closes could push integrations that only have v1 decrypt paths onto v2 blobs they can't read. Explicit opt-in lets each caller adopt on their own
timeline; the default can be flipped back to v2 after the window.

Impact

  • No behavior change for existing callers.
  • Opt-in path: bitgo.changePassword({ oldPassword, newPassword, encryptionVersion: 2 }).

@pranavjain97
pranavjain97 requested review from a team as code owners August 6, 2026 17:08
@linear-code

linear-code Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

WCN-1814

Flip updateSingleKeychainPassword/updatePassword to preserve each
keychain's existing envelope version by default (v1 stays v1, v2 stays
v2). Callers opt in to the Argon2id upgrade with encryptionVersion: 2
once they're ready.

Rolling out a v2 default before the Sept 15 breaking-change window
closes could push integrations that only have v1 decrypt paths onto v2
blobs they can't read. Explicit opt-in lets each caller adopt on their
own timeline; the default can be flipped back to v2 after the window.

TICKET: WCN-1814
Thread an optional encryptionVersion through changePassword to both
the v1 and v2 keychains().updatePassword calls, so callers can opt in
to the Argon2id upgrade without reaching into keychains() directly.

TICKET: WCN-1814
@pranavjain97
pranavjain97 force-pushed the pranavjain/wcn-1814-followup-preserve-envelope-version branch from 67d3bc9 to b3cef11 Compare August 6, 2026 17:11
@pranavjain97 pranavjain97 changed the title Pranavjain/wcn 1814 followup preserve envelope version feat: make v2 opt-in on password change + plumb through changePassword Aug 6, 2026
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.

4 participants