Skip to content

[_]: refactor/remove salt from mail address keys#32

Merged
jzunigax2 merged 2 commits into
masterfrom
refactor/remove-salt-references-from-stored-keys
Apr 30, 2026
Merged

[_]: refactor/remove salt from mail address keys#32
jzunigax2 merged 2 commits into
masterfrom
refactor/remove-salt-references-from-stored-keys

Conversation

@jzunigax2
Copy link
Copy Markdown
Contributor

@jzunigax2 jzunigax2 commented Apr 29, 2026

After this change in internxt-crypto internxt/crypto#56 keys are no longer derived from a user's password so salt was dropped as well.

  • Removed the 'salt' property from MailAddressKeys model, related DTOs, and service interfaces.
  • Updated migration to drop the 'salt' column from the mail_address_keys table.
  • Adjusted unit tests and fixtures to reflect the removal of the 'salt' attribute.

@jzunigax2 jzunigax2 requested review from apsantiso and xabg2 April 29, 2026 17:40
@jzunigax2 jzunigax2 self-assigned this Apr 29, 2026
Base automatically changed from feat/get-encryption-keys to master April 30, 2026 12:48
…pdates

- Added getAddressKeys method to AccountService for retrieving encryption keys associated with a user's email address.
- Introduced MailNotSetupException to handle cases where the mail account is not set up.
- Updated UserController to include a new endpoint for fetching mail account keys.
- Created GetMailAccountKeysDto for validating input on the new endpoint.
- Enhanced unit tests for AccountService and UserController to cover new functionality and exception handling.
- Removed the 'salt' property from MailAddressKeys model, related DTOs, and service interfaces.
- Updated migration to drop the 'salt' column from the mail_address_keys table.
- Adjusted unit tests and fixtures to reflect the removal of the 'salt' attribute.
@jzunigax2 jzunigax2 force-pushed the refactor/remove-salt-references-from-stored-keys branch from e067970 to 5abae85 Compare April 30, 2026 12:57
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@jzunigax2 jzunigax2 merged commit f80ccc3 into master Apr 30, 2026
4 of 5 checks passed
@jzunigax2 jzunigax2 deleted the refactor/remove-salt-references-from-stored-keys branch April 30, 2026 12:58
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.

3 participants