Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Conversation

@ayoy
Copy link
Contributor

@ayoy ayoy commented Aug 28, 2023

Task/Issue URL: https://app.asana.com/0/1199230911884351/1205352938100234/f

Description:
Credentials deduplication code looks for an existing credentials entity in the Secure Vault,
then returns it to Sync code where its title is updated, and then the credentials entity is passed
back to Secure Vault to be stored. The storing function expects unencrypted password
(such as when passed from the UI) and does encryption before storing.

The issue here was that we were passing an already encrypted password (just retrieved
from Secure Vault) in which case the encryption function failed to encrypt the value, returning nil.

This patch fixes the problem on the Sync Data Provider end (to feed an unencrypted password
to Secure Vault for saving) and also adds an assertion failure to AutofillSecureVault when an encrypted
password is passed to encryptPassword method.

Steps to test this PR:
Refer to macOS PR testing steps. You can replace one of the macOS devices with iOS and install the version from before Credentials Sync.


Internal references:

Software Engineering Expectations
Technical Design Template

@ayoy ayoy force-pushed the dominik/credentials-deduplication-fix branch from cd749a0 to b8a244d Compare August 28, 2023 11:58
@ayoy ayoy merged commit 283daf9 into develop Aug 28, 2023
@ayoy ayoy deleted the dominik/credentials-deduplication-fix branch August 28, 2023 13:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants