Skip to content

[PB-6699] Remove old key fields from UserSettings - #2033

Open
TamaraFinogina wants to merge 18 commits into
masterfrom
remove_old_key_fields
Open

[PB-6699] Remove old key fields from UserSettings#2033
TamaraFinogina wants to merge 18 commits into
masterfrom
remove_old_key_fields

Conversation

@TamaraFinogina

@TamaraFinogina TamaraFinogina commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Description

This PR reduces the amount of data in UserSettings by removing old fields (privateKey, publicKey, and revocationKey outside of the keys structure). Will help once we start encrypting UserSettings.

P.S. Most changes are from deleted tests that were for testing that the old key structure works (without the keys field but with privateKey, publicKey, and revocationKey outside of the keys structure)

Related Issues

PB-6505

Related Pull Requests

Checklist

  • Changes have been tested locally.
  • Unit tests have been written or updated as necessary.
  • The code adheres to the repository's coding standards.
  • Relevant documentation has been added or updated.
  • No new warnings or errors have been introduced.
  • SonarCloud issues have been reviewed and addressed.
  • QA Passed

Testing Process

Check that login, signup, key backup and password change are working.

Additional Notes

We switched to keys in UserSettings over a year ago. There should be no users with an ongoing session without a Kyber key or keys field.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 9, 2026

Copy link
Copy Markdown

Deploying drive-web with  Cloudflare Pages  Cloudflare Pages

Latest commit: 19da5a6
Status: ✅  Deploy successful!
Preview URL: https://561f5310.drive-web.pages.dev
Branch Preview URL: https://remove-old-key-fields.drive-web.pages.dev

View logs

@TamaraFinogina
TamaraFinogina marked this pull request as ready for review July 28, 2026 16:28
@TamaraFinogina
TamaraFinogina requested review from a team, CandelR and larryrider as code owners July 28, 2026 16:28
larryrider
larryrider previously approved these changes Jul 29, 2026
larryrider
larryrider previously approved these changes Jul 29, 2026
Comment thread src/app/share/services/share.service.ts Outdated
@TamaraFinogina
TamaraFinogina requested a review from sg-gs July 29, 2026 16:16
Comment thread src/views/Signup/hooks/useSignup.ts Outdated
return {
xUser: {
...user,
bucket: '',

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why is this empty here?

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.

Because the endpoint is not returning any value for the bucket field, and the UserSettings type needs it. Before, it was masked due to a type cast to UserSettings, but TODO is still present:

// TODO: need to update user type of register to include bucket field

@sg-gs

sg-gs commented Jul 30, 2026

Copy link
Copy Markdown
Member

Nice cleanup here @TamaraFinogina

@TamaraFinogina
TamaraFinogina requested a review from sg-gs July 30, 2026 17:11
sg-gs
sg-gs previously approved these changes Jul 31, 2026
@TamaraFinogina TamaraFinogina changed the title [PB-6505] Remove old key fields from UserSettings [PB-6699] Remove old key fields from UserSettings Jul 31, 2026
@sonarqubecloud

Copy link
Copy Markdown

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