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

portal: Add rekeying support for oo7::portal::Keyring #77

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

warusadura
Copy link
Collaborator

@warusadura warusadura commented Mar 24, 2024

This change adds change_secret() to oo7::portal::Keyring API.
change_secret() change/update the secret associated with a keyring.
Note: we need this change for the sever side implementation.

Fixes: #47

@warusadura warusadura force-pushed the rekeying-support branch 2 times, most recently from 8e667bd to 34a5448 Compare March 26, 2024 12:48
client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/key.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
@warusadura warusadura marked this pull request as ready for review March 31, 2024 15:48
@warusadura warusadura marked this pull request as draft April 15, 2024 09:14
@warusadura warusadura marked this pull request as ready for review April 15, 2024 09:16
@warusadura warusadura marked this pull request as draft April 15, 2024 10:48
@haecker-felix
Copy link
Contributor

Since this also changes the derive_key() function, a note that it is currently blocking despite being async (which was fine in 0.2). Might be related to 86c2a8f.

client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
warusadura added a commit that referenced this pull request Apr 27, 2024
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates the `Keyring.modified_time` in `change_secret()`

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
client/src/portal/api/mod.rs Outdated Show resolved Hide resolved
client/src/portal/mod.rs Outdated Show resolved Hide resolved
This change adds `change_secret()` to `oo7::portal::Keyring` API.
`change_secret()` change/update the secret associated with a keyring.
Note: we need this change for the sever side implementation.

Fixes: #47

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
This change re-adds the removed `unblock` and `spawn_blocking` parts from
86c2a8f

Fixes: #80

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
warusadura added a commit that referenced this pull request Apr 29, 2024
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates/resets the remaining Keyring content.
`modified_time` field is not update here.

Cleaned up a few whitespaces.

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
warusadura added a commit that referenced this pull request Apr 29, 2024
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates/resets the remaining Keyring content.
`modified_time` field is not update here.

Cleaned up a few whitespaces.

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates/resets the remaining Keyring content.
`modified_time` field is not update here.

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Also added a comment to indicate setting the new key

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Copy link
Owner

@bilelmoussaoui bilelmoussaoui left a comment

Choose a reason for hiding this comment

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

Looks good to me, but would appreciate a review / an ack from @ueno

Copy link
Collaborator

@ueno ueno left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for all the work here!

@bilelmoussaoui bilelmoussaoui merged commit 4f1f5bc into main Apr 30, 2024
5 checks passed
bilelmoussaoui pushed a commit that referenced this pull request Apr 30, 2024
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates/resets the remaining Keyring content.
`modified_time` field is not update here.

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
@bilelmoussaoui bilelmoussaoui deleted the rekeying-support branch April 30, 2024 07:25
bilelmoussaoui pushed a commit that referenced this pull request May 3, 2024
Although it is not necessary to update the `salt` value before a
password/secret change through `oo7::portal::Keyring.change_secret()`.
It would be a good practice to do so.

Also, updates/resets the remaining Keyring content.
`modified_time` field is not update here.

See: #77 (comment)

Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rekeying support for oo7::portal::Keyring
5 participants