-
Notifications
You must be signed in to change notification settings - Fork 11
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
New gnome keyring #73
base: main
Are you sure you want to change the base?
Commits on May 6, 2024
-
wip: secret-server backend implementation
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org> Co-Author: Bilal Elmoussaoui <belmouss@redhat.com>
Configuration menu - View commit details
-
Copy full SHA for 9a2a5bd - Browse repository at this point
Copy the full SHA 9a2a5bdView commit details -
Updated how Collection objectpath is generated. Introduced created: u64, parameter to supply the date, rather than create it inside new() Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 2e06e26 - Browse repository at this point
Copy the full SHA 2e06e26View commit details -
Add set_collections() setter and update create_collection()
Since Collection is not using and cannot be implemented (easily) Copy or Clone traits, the only way to clone a struct Collection is call Collection::new() passing getter values. Removed set_collections() setter. See: #73 (comment) Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 2b50ce9 - Browse repository at this point
Copy the full SHA 2b50ce9View commit details -
This introduces ServiceManager struct. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for ec9e3ca - Browse repository at this point
Copy the full SHA ec9e3caView commit details -
Update Secret Service read_alias(), set_alias() and collections()
These changes update Secret Service alias methods and collections property to be async and fix the following errors, "`await` is only allowed inside `async` functions and blocks", "cannot return value referencing temporary value" Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 865d833 - Browse repository at this point
Copy the full SHA 865d833View commit details -
Update Secret Session implementation
Session now implements Clone trait. Has manager field. client_public_key field now has an Arc Also, adds remove_session() for ServiceManager Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 193bf62 - Browse repository at this point
Copy the full SHA 193bf62View commit details -
Wraps
manager
field inside MutexSo, we can mutate manager.sessions via insert_session() and remove_session() Also, updates open_session() to insert the newly created session to manager.sessions Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 2f80f43 - Browse repository at this point
Copy the full SHA 2f80f43View commit details -
Removed RwLock wrapper from sessions Removed async from all the methods See: #73 (comment) Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 15d6518 - Browse repository at this point
Copy the full SHA 15d6518View commit details -
Updates open_session() to serve newly created Session
Adds sessions_counter field to Service Sets proper objectpath for a Session Updated Session::close to call ServiceManager::remove_session() Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for ac5a573 - Browse repository at this point
Copy the full SHA ac5a573View commit details -
Updates collection and session objectpath constants
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for b230430 - Browse repository at this point
Copy the full SHA b230430View commit details -
Adds proper key generation and exchange
This change adds proper key generation and exchange to open_session() service method and removes temporary key. Also updates Session::new() to return a Self instance rather than a tuple: (instance, key) Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 53f6e2a - Browse repository at this point
Copy the full SHA 53f6e2aView commit details -
Introduce server side Secret API
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 8d2fa43 - Browse repository at this point
Copy the full SHA 8d2fa43View commit details -
This change add parameters and content_type fields and their getters. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 80f6716 - Browse repository at this point
Copy the full SHA 80f6716View commit details -
Update org.freedesktop.Secret.Collection CreateItem
This change update CreateItem to encrypt the secret based on the AES key retrieved from session. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 546db12 - Browse repository at this point
Copy the full SHA 546db12View commit details -
Update org.freedesktop.Secret.Item GetSecret
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 0b37c65 - Browse repository at this point
Copy the full SHA 0b37c65View commit details -
Introduced Derive(Default) instead. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 4ff3472 - Browse repository at this point
Copy the full SHA 4ff3472View commit details -
Adds missing zbus macros to Item properties
Also, removes unused modified() from Collection. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for e25a9ca - Browse repository at this point
Copy the full SHA e25a9caView commit details -
Implements clone trait for Collection
Also updates CreateCollection service method and removes unused created() from Collection. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 8a5c135 - Browse repository at this point
Copy the full SHA 8a5c135View commit details -
Update GetSecret to handle invalid Session
Now GetSecret can properly handle an invalid Session, rather than crashing/panicking. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 43483cf - Browse repository at this point
Copy the full SHA 43483cfView commit details -
Adds service name and objectpath handling based on compilation type
Compilation types support: debug and release. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 660cb62 - Browse repository at this point
Copy the full SHA 660cb62View commit details -
Updates set_locked() to emit collection_changed service signal
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for e0e7773 - Browse repository at this point
Copy the full SHA e0e7773View commit details -
Updates Secret Session interface name
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 7b4b219 - Browse repository at this point
Copy the full SHA 7b4b219View commit details -
Set org.freedesktop.Secret.Item objectpath properly
This change properly sets the Item objectpath according to gnome-keyring. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 9d96228 - Browse repository at this point
Copy the full SHA 9d96228View commit details -
Remove alias from org.freedesktop.Secret.Collection objectpath
gnome-keyring uses the label to identify a Collection. Alias is set later. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for d320d3b - Browse repository at this point
Copy the full SHA d320d3bView commit details -
Adds --login option to pass the login keyring password to the daemon
oo7-daemon can now retrieve the login.keyring password from stdin. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for d97be22 - Browse repository at this point
Copy the full SHA d97be22View commit details -
This change fixes the login.keyring being missing from the `org.freedesktop.secrets` objects tree. Also, Implemented Clone trait for Service. Implemented Clone trait for Item. Updated Item::create_item. Fixed all the server side clippy warnings. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for b824434 - Browse repository at this point
Copy the full SHA b824434View commit details -
Fix
invalid value: character
error when creating Devel ObjectpathsSigned-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 9fb9f57 - Browse repository at this point
Copy the full SHA 9fb9f57View commit details -
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 6e630a2 - Browse repository at this point
Copy the full SHA 6e630a2View commit details -
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 8f5d1d5 - Browse repository at this point
Copy the full SHA 8f5d1d5View commit details -
Modify Service::new() to handle empty password
Login password can't be empty. So, included a `panic!` to handle it. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 9670b42 - Browse repository at this point
Copy the full SHA 9670b42View commit details
Commits on May 12, 2024
-
Need this change for the server side Prompt implementation. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for c10a629 - Browse repository at this point
Copy the full SHA c10a629View commit details
Commits on May 13, 2024
-
Needed for server side SecretExchange implementation. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 81ee71c - Browse repository at this point
Copy the full SHA 81ee71cView commit details -
Add SecretExchange implementation
SecretExchange allows exchange of secrets between two processes on the same system without exposing those secrets. See https://gnome.pages.gitlab.gnome.org/gcr/gcr-4/class.SecretExchange.html Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 52e1392 - Browse repository at this point
Copy the full SHA 52e1392View commit details -
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 8ebef89 - Browse repository at this point
Copy the full SHA 8ebef89View commit details
Commits on May 16, 2024
-
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for a16e39e - Browse repository at this point
Copy the full SHA a16e39eView commit details
Commits on May 17, 2024
-
Add SecretExchange payload parsing
As in the GCRSecretExchange implementation, now the payload: `exchange` is a String. Introduced encode/decode operations to parse a HashMap into a String or the other way. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for eb1e0f8 - Browse repository at this point
Copy the full SHA eb1e0f8View commit details
Commits on Jun 1, 2024
-
Integrate legacy keyring migration support
This change replaces call to `Keyring::load()` with `Keyring::open()` Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 8036ba0 - Browse repository at this point
Copy the full SHA 8036ba0View commit details
Commits on Jun 3, 2024
-
Add gcr Prompter interface implementation
This change adds org.gnome.keyring.Prompter interface implementations. Missing PrompterCallback::prompt_ready() implementation and test: test_prompt() need to update. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 22e1f86 - Browse repository at this point
Copy the full SHA 22e1f86View commit details -
Add Secret.Service.Prompt interface implementation
TODO: Complete prompt() method implementation. Complete completed() signal implementation. Code cleanup. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 4530a0b - Browse repository at this point
Copy the full SHA 4530a0bView commit details -
Updates prompt needed service methods
This change updates Service:CreateCollection, Service:Unlock, Service:Lock and Item:Delete. Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for fc9bc20 - Browse repository at this point
Copy the full SHA fc9bc20View commit details
Commits on Jun 4, 2024
-
Fix
Signature mismatch: got 's', expected 'ms'
errorSigned-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for 18fdc52 - Browse repository at this point
Copy the full SHA 18fdc52View commit details
Commits on Jun 5, 2024
-
Add prompter callback counter to ServiceManager
Signed-off-by: Dhanuka Warusadura <dhanuka@gnome.org>
Configuration menu - View commit details
-
Copy full SHA for bd24c11 - Browse repository at this point
Copy the full SHA bd24c11View commit details