Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare a test to check that existing user with RSA public keys are given a new EC public key after upgrade of data safe installation #251

Open
francis-pouatcha opened this issue Dec 12, 2023 · 3 comments
Assignees

Comments

@francis-pouatcha
Copy link
Member

francis-pouatcha commented Dec 12, 2023

We want to:

  1. run an older version of datasafe that uses RSA to write to inbox inbox,
  2. run a new version that has ECDH as default, but can read data written to inbox using RSA.
@francis-pouatcha francis-pouatcha moved this from Todo to Ready for Dev in os-competence-center-board Jun 25, 2024
@Awambeng Awambeng moved this from Ready for Dev to In Progress in os-competence-center-board Jul 2, 2024
@Awambeng Awambeng moved this from In Progress to Ready for Dev in os-competence-center-board Jul 2, 2024
@max402 max402 self-assigned this Jul 15, 2024
@max402 max402 moved this from Ready for Dev to In Progress in os-competence-center-board Jul 15, 2024
@max402 max402 moved this from In Progress to Ready for Dev in os-competence-center-board Jul 22, 2024
@max402 max402 moved this from Ready for Dev to In Progress in os-competence-center-board Jul 29, 2024
@Motouom Motouom self-assigned this Oct 1, 2024
@Motouom
Copy link
Collaborator

Motouom commented Oct 4, 2024

Hello @max402, Please i wish to have more info and enlightenment on this ticket

@max402
Copy link
Collaborator

max402 commented Oct 8, 2024

In order to check if migrated data is available we have to first implement a data migration tool.
The tool should be able to:

  • genarate EC keypair and add it to keystore for each user;
  • convert data (decrypt with RSA private key, encrypt with EC public key);
  • delete old RSA encrypted data, delete RSA keypair from keystore.

@max402
Copy link
Collaborator

max402 commented Oct 22, 2024

I would write tests for following scenarios:
1.

  • user1 sends to inbox of user2 a file.
  • user 2 has EC public key in public profile.
  • user2 can read their Inbox
  • user1 sends to inbox of user2 a file. User2 public profile has RSA keypair
  • user2 logins, EC keypair created, public profile key replaced to EC.
  • user1 sends another file. The file encrypted using EC public key.
  • user2 can read both files form inbox.

@francis-pouatcha francis-pouatcha changed the title Prepare the test concept to check that migrated data are still accessible. Prepare a test to check that existing user with RSA public keys are given a new EC public key after upgrade of data safe installation Oct 24, 2024
@Motouom Motouom assigned francis-pouatcha and unassigned Motouom Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

No branches or pull requests

3 participants