47
submitted 1 day ago* (last edited 1 day ago) by dieTasse@feddit.org to c/linux@lemmy.ml

I have a hard time understanding the benefits of the keyring (e.g. GNOME keyring). I get the convenience parts - I don't have to enter password for something every time I want to use it (e.g. mounted encrypted drive) and I don't have to create a secret for some background stuff (applications keys). But the problem is, if I understand it correctly, that every application has the same access to my keyring, so, in theory, a malicious application can just read my Signal key and they can just read all my Signal messages right? Is there a point, then, in encrypting e.g. local database (like Signal) if the key to that database is readily available anyway? Any input is welcome. thanks!

you are viewing a single comment's thread
view the rest of the comments
[-] CallMeAl@piefed.zip 25 points 1 day ago

A keyring is better than a plain text file (apps can only access the keyring when its unlocked) but not as secure as password keeper like KeepassXC.

[-] dieTasse@feddit.org 9 points 1 day ago

Since in most cases the keyring is unlocked on login, this seems like a small hurdle to overcome, right? I am trying to figure out if there is something I fundamentally misunderstand about the keyring or if it's that trivial (and insecure).

[-] CallMeAl@piefed.zip 7 points 1 day ago

is something I fundamentally misunderstand about the keyring...

Keyrings like GNOME Keyring support setting it to auto-lock after a timeout. That would be the way to use it, IMO.

[-] dieTasse@feddit.org 7 points 1 day ago

I see, this would eliminate random apps from just grabbing the passwords anytime (though they can still poll if they are open). If I choose the auto-lock, I will have to enter password to the keyring often (depending on the time and how many apps need a password). Isn't then more convenient AND more secure to use a password manager anyway? Apps can't access my password from the password manager like they do from the keyring, so I could set longer auto-lock delay than the keyring and still be more secure and more convenient, right? Am I oversimplyfying too much? 😀

[-] CallMeAl@piefed.zip 5 points 1 day ago

There are many options to consider. You could use a very short timeout and optimize for low friction unlock, such as with a thumb reader.

My advice, if you have an app you want to use that requires the keyring then use the keyring with it. In general, I say use a password manager.

[-] dieTasse@feddit.org 4 points 1 day ago

The fact is, I am trying to determine what do I want to implement for my application. I am introducing database encryption and was thinking about doing what Signal is doing and not bothering the user and saving the key to the keyring, but now I am not sure if that is a good idea and maybe I will just ask user for a password...

[-] atzanteol@sh.itjust.works 6 points 1 day ago

KDE requires giving permissions to an app that wants to access kwallet also. I'm sure gnome does something similar.

[-] dieTasse@feddit.org 4 points 1 day ago* (last edited 1 day ago)

Giving permission from the user? That would be points for KDE actually. On GNOME I have never been asked, so I doubt it has it.

[-] atzanteol@sh.itjust.works 6 points 1 day ago

Yeah - I've been asked "application nextcloud wants to access wallet kdewallet" or something. I think it remembers the app for future requests though.

[-] Tetsuo@jlai.lu 5 points 1 day ago

I think you understand correctly.

Your setup seems quite insecure considering your keyring seems to be always open and that you use a password that is already used to login.

On the other hand a keyring can be unlocked only when used and could also have it's own dedicated password for it. Security is more a gradient than something binary.

Also if you store keys that are particularly sensitive in it they are as vulnerable as the container that stores them.

Not blaming you of anything of course, I think you are asking the right questions. 👍

[-] dieTasse@feddit.org 9 points 1 day ago

That is the default behavior though. On most mainstream distros at least. The password matches the one that you login with and the keyring is unlocked automatically. And I get it, if I was handling this manually, I may as well just use my password manager right? I was just hoping, that maybe the apps would see only their password. Maybe some dedicated keyring space per app, you know what I mean. I didn't expect there to be one giant pile of passwords for anybody to grab 😀

[-] Quibblekrust@thelemmy.club 4 points 1 day ago

Does KeepassXC work under Wayland yet without having to use the clipboard to paste passwords?

[-] dieTasse@feddit.org 1 points 14 hours ago

In some threads I read that you can use Keepass indeed and it can be set to give a password prompt when app asks for access to your secrets. Might be annoying but might also help prevent secrets theft when a prompt appears at a random moment.

[-] Azzu@leminal.space 1 points 17 hours ago* (last edited 17 hours ago)

It does. I've been using it as my secrettool for quite a while instead of kwallet in KDE kwin wayland.

this post was submitted on 13 Jun 2026
47 points (98.0% liked)

Linux

65744 readers
1019 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS