Commit Graph

762 Commits

Author SHA1 Message Date
Dhanuka Warusadura
28a29bc2a5 Merge branch 'wip/ci_print_errorlogs' into 'master'
CI: Print error logs on test failure

See merge request GNOME/libsecret!125
2023-09-18 12:17:07 +00:00
Milan Crha
64cf3ff4b3 CI: Print error logs on test failure
It'll help to check what precisely failed with the test, instead of
getting only passed/failed states.
2023-09-18 12:14:45 +00:00
Niels De Graef
97d5c139ee Merge branch '62-flatpak-libsecret-fails-to-read-credentials-saved-by-other-process' into 'master'
Resolve "Flatpak: libsecret fails to read credentials saved by other process"

Closes #62

See merge request GNOME/libsecret!99
2023-09-18 11:42:54 +00:00
Milan Crha
1f44c81ca4 secret-file-collection: Check for file changes and reload when needed
When some other process changes the underlying file, the collection
should reload its in-memory content, to reflect the changes.

Closes https://gitlab.gnome.org/GNOME/libsecret/-/issues/62
2023-09-18 13:25:38 +02:00
Efstathios Iosifidis
ae7c52bd9c Update Greek translation 2023-09-08 23:21:55 +00:00
Amn Alam
8bbdfa3644 Update Punjabi translation 2023-08-31 02:04:46 +00:00
Dhanuka Warusadura
1374b09e61 Merge branch 'fix_depricated' into 'master'
TPM2: fix `g_memdup` deprecated warning

See merge request GNOME/libsecret!121
2023-08-24 13:31:15 +00:00
Dhanuka Warusadura
bf0ddf7ff3 TPM2: fix g_memdup deprecated warning 2023-08-24 13:31:15 +00:00
Anders Jonsson
2f00bf3a3f Update Swedish translation 2023-08-17 12:05:59 +00:00
Niels De Graef
6678c87fed Release 0.21.0 2023-08-10 14:05:27 +02:00
Sabri Ünal
28b379e39f Update Turkish translation 2023-08-08 10:47:08 +00:00
Niels De Graef
1b6ac89c0a README: replace ninja with meson commands
Meson provides wrappers for the ninja build commands, so let's make use
of those.
2023-07-09 20:23:02 +02:00
Niels De Graef
da60df0e77 Merge branch 'unlock-before-attrs-pull' into 'master'
Unlock the keyring before getting secret attributes

See merge request GNOME/libsecret!105
2023-05-24 07:05:50 +00:00
panoplie
7387774263 sync-search: unlock keyring before getting secret attributes
In gnome-keyring, the secret items attributes are not visible until the keyring
is unlocked. But in libsecret, the synchronous secret search function unlocks
the keyring after and not before the attributes dbus pull.

So when the keyring is locked and you run secret_service_search_sync(), you get
hashed or empty attributes because the keyring was locked at the time these
attributes were pulled. If you run this function when the keyring is already
unlocked, there is no problem.

This commit moves the unlock routine before the attributes pull to make the
synchronous search function working correctly when the keyring is locked
initially.

Issues #6 gnome-shell#4780
2023-05-24 07:04:14 +00:00
panoplie
31ea8cb41d Rename secret_search_unlock_load_or_complete()
This function does not unlock the keyring anymore so we remove the "unlock"
term from its name.
2023-05-24 07:04:14 +00:00
panoplie
701a312eb7 async-search: unlock keyring before getting secret attributes
In gnome-keyring, the secret items attributes are not visible until the keyring
is unlocked. But in libsecret, the asynchronous secret search function unlocks
the keyring after and not before the attributes dbus pull.

So when the keyring is locked and you run secret_service_search(), you get
hashed or empty attributes because the keyring was locked at the time these
attributes were pulled. If you run this function when the keyring is already
unlocked, there is no problem.

This commit moves the unlock routine before the attributes pull to make the
asynchronous search function working correctly when the keyring is locked
initially.

The secret_search_unlock_load_or_complete function should be renamed to
secret_service_load_or_complete. To keep this commit readable, it is done in
the next commit.

Issues #6 gnome-shell#4780
2023-05-24 07:04:14 +00:00
Niels De Graef
e3ac5f762b Merge branch 'mcatanzaro/cancellable-regression' into 'master'
file-backend: avoid critical when cancellable is unset

See merge request GNOME/libsecret!120
2023-05-16 21:12:42 +00:00
Michael Catanzaro
25e1e11c81 file-backend: avoid critical when cancellable is unset
In 0e205fce5f I improperly assumed that
the cancellable would always be valid. Avoid criticals when it is NULL.
2023-05-16 08:14:39 -05:00
Dhanuka Warusadura
b814e464f6 Merge branch 'issue#87' into 'master'
doap: remove stefw as a maintainer

See merge request GNOME/libsecret!119
2023-04-28 09:42:10 +00:00
Dhanuka Warusadura
676ef41db5 doap: remove stefw as a maintainer
With the approval of Daiki Ueno and Niels De Graef.
2023-04-28 15:02:59 +05:30
Dhanuka Warusadura
e5ec8c4e24 Merge branch 'mcatanzaro/cancellable-deadlock' into 'master'
file-backend: avoid deadlock when portal op is canceled

Closes #86

See merge request GNOME/libsecret!118
2023-04-27 15:44:24 +00:00
Michael Catanzaro
0e205fce5f file-backend: avoid deadlock when portal op is canceled
Calling g_cancellable_disconnect() inside a cancelled handler is a
guaranteed deadlock. Cancellables should only be canceled once, so we
don't need to worry about a second cancellation occurring. I think it's
sufficent to disconnect when the InitClosure is freed.

Fixes #86
2023-04-27 09:20:48 -05:00
Niels De Graef
ecb788d44e Merge branch 'master' into 'master'
Fix example in usage docs

See merge request GNOME/libsecret!117
2023-02-04 09:08:41 +00:00
Jonathan Wakely
abad8802ae Fix example in usage docs 2023-02-03 15:59:53 +00:00
Niels De Graef
5934c30491 Merge branch 'nielsdg/no-more-g-slice' into 'master'
Stop using GSlice

See merge request GNOME/libsecret!116
2023-01-16 18:21:47 +00:00
Niels De Graef
0f04e5d371 Stop using GSlice
GLib is discussing deprecating/removing it upstream [1] since it has
only limited uses. Next to that, it seems to bork stack traces here when
using ASAN (for which you also have to specify `G_SLICE=always-malloc`
and some other envvars too).

In other words, let's just get rid of using `GSlice` and call the
allocation APIs directly.

[1]: https://gitlab.gnome.org/GNOME/glib/-/issues/1079
2023-01-16 19:17:59 +01:00
Niels De Graef
33a4de59a2 Merge branch 'nielsdg/extract-get-secret-file-func' into 'master'
file-backend: Extract functions from the initializer code

See merge request GNOME/libsecret!107
2023-01-15 10:16:50 +00:00
Niels De Graef
7d7c1b3430 file-backend: Extract TPM code into separate function
That way, we have a function we can also call in case we want to provide
a synchronous constructor.

This also fixes some cases where the `EggTpm2Context` was not properly
cleaned up in case of some error paths.
2023-01-15 10:12:59 +00:00
Niels De Graef
7b461f5514 file-backend: Extract function to return GFile
A small cleanup
2023-01-15 10:12:59 +00:00
Niels De Graef
179dc316c1 Merge branch 'nielsdg/use-docker-images-for-ci' into 'master'
ci: Use prebuilt Docker images

See merge request GNOME/libsecret!114
2023-01-15 10:12:41 +00:00
Niels De Graef
6053c523cb ci: Disable introspection when using asan
The job times out when trying to generate the typelib, which seems to be
a known issue, so let's just skip it as we're not testing that anyway.
2023-01-15 00:11:19 +01:00
Niels De Graef
0ef4776a78 ci: Use prebuilt Docker images
Don't waste precious CI time reinstalling/upgrading packages.

Most of the scripts here were taken from GLib's CI scripts, but adjusted
to deal with dependencies that might change between branches rather than
different distros.
2023-01-14 23:52:30 +01:00
Olga Smirnova
2be6ecaf1d Add Interlingue translation 2022-12-12 01:32:01 +00:00
Dhanuka Warusadura
f590dc2b17 Add secret_password_search_finish to vapi metadata
See merge request GNOME/libsecret!112
2022-11-22 15:35:39 +00:00
Jens Georg
5183076772 Fix finish function for searchv 2022-11-22 00:03:53 +01:00
Dhanuka Warusadura
5cabbdd237 Merge branch 'nielsdg/fix-search-for-dbus-path-finish-leak' into 'master'
secret-paths: Fix a little memory leak

See merge request GNOME/libsecret!109
2022-10-25 05:58:04 +00:00
Niels De Graef
b9e6394aff secret-paths: Fix a little memory leak 2022-10-25 05:56:56 +00:00
Dhanuka Warusadura
c2921d0030 Merge branch 'ci' into 'master'
ci: A walkaround fix to solve the fedora:asan timeout error

See merge request GNOME/libsecret!111
2022-10-24 14:21:33 +00:00
Dhanuka Warusadura
b2fbbfcfef ci: A walkaround fix to solve the fedora:asan timeout error
These changes temporarily fix the fedora:asan timeout error caused
by meson. With allow_failure keyword in place the pipeline will
complete even there is a timeout error in fedora:asan
2022-10-22 16:42:52 +05:30
Julian Schmidhuber
921f5f0d2e Fix nullable in secret_collection_for_alias_* 2022-09-19 16:14:47 +02:00
Pawan Chitrakar
bdd5b29356 Update Nepali translation 2022-09-19 05:26:24 +00:00
Sabri Ünal
b6957ce906 Update Turkish translation 2022-09-18 07:57:42 +00:00
Zurab Kargareteli
0d6fa649dd Add Georgian translation 2022-06-25 07:16:22 +00:00
Niels De Graef
e1e5343033 ci: Use the proper Meson b_sanitize option
No idea how `meson -Dsanitize` ever would've worked
2022-05-27 11:28:08 +02:00
Daiki Ueno
efef633efe Merge branch 'wip/dueno/gtask-dup-error' into 'master'
Properly chain-up GTasks around GDBusProxy::init_async

Closes #75

See merge request GNOME/libsecret!106
2022-05-09 14:35:52 +00:00
Daiki Ueno
d768ce4efe Properly chain-up GTasks around GDBusProxy::init_async
Our GAsyncInitable implementations in SecretService, SecretCollection,
and SecretItem internally wrap GDBusProxy::init_async and perform
additional error processing. To chain up we used to pass around a
single GTask, which caused an issue in the (additional) error path:
GDBusProxy::init_async may have already called
g_task_return_boolean(task, TRUE) and in that case GLib produces the
following warning:

  g_task_return_error: assertion '!task->ever_returned' failed

This fixes the issue by creating a temporary GTask around
GDBusProxy::init_async call.

Signed-off-by: Daiki Ueno <dueno@src.gnome.org>
2022-05-09 16:27:44 +02:00
Alexander Shopov
ef2fc44363 Update Bulgarian translation 2022-03-21 13:03:56 +00:00
Daiki Ueno
d64530ac70 Release 0.20.5 2022-02-21 07:20:13 +01:00
Niels De Graef
e984e7bb67 Merge branch 'doc-fixes' into 'master'
Improvements to documentation and annotations

See merge request GNOME/libsecret!103
2022-02-12 10:52:27 +00:00
Maximiliano Sandoval R
b4b701cc8f
docs: Fix source link
Needs a trailing backslash to work.
2022-02-07 13:02:11 +01:00