Bug 465949 - Create and remove empty mountpoint folders inside ~/Vault/* on demand to avoid leaking the names of vaults
Summary: Create and remove empty mountpoint folders inside ~/Vault/* on demand to avoi...
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Vaults widget (other bugs)
Version First Reported In: 6.0.0
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Ivan Čukić
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-17 16:49 UTC by Odin Vex
Modified: 2025-06-06 03:48 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Odin Vex 2023-02-17 16:49:33 UTC
SUMMARY

1. I'd like to see Plasma Vault automatically create or remove the mounting folders inside ~/Vault/* when opening or closing a vault. This is mostly to 'clean up the residue' of history.
2. I'd like to see Plasma Search and Baloo prevent any evidence of history for any vault in particular, if possible.
Comment 1 tagwerk19 2024-12-18 17:12:34 UTC
(In reply to Odin Vex from comment #0)
> 2. I'd like to see Plasma Search and Baloo prevent any evidence of history
> for any vault in particular, if possible.
Do you have a test case where Baloo indexes a vault? It looks to me that it tries to avoid it....
Comment 2 Odin Vex 2024-12-18 17:15:18 UTC
I don't know as whether Baloo is specific to blame but I've found entries in the Plasma menu search history relating to files inside Vaults. It's been quite a while since I saw that. I've disabled history altogether as well as in numerous editors and such so I don't have a test case I can provide.
Comment 3 tagwerk19 2024-12-18 21:34:58 UTC
(In reply to Odin Vex from comment #2)
> ... but I've found entries in the Plasma menu search history relating to files inside Vaults ...

This is a bit outside my area of knowledge - but there are also "Recent files" listed, not just search results. If you've opened something inside a vault, it might be worth checking whether this appears as a "Recent file"

For the Baloo exclusions, it seems that when a vault is opened, it appears (at least under System-Settings > File Search) as an excluded folder and is therefore seemingly not indexed. When you lock the vault again, that exclusion disappears.

As an aside - do *not* manually index any files in a vault, a "balooctl index secretfile.txt" will index the file despite the exclusion.

If you follow the defaults and create your various vaults under the "Vault" subfolder, you can add a manual exclusion for $HOME/Vault and Baloo will ignore anything under it. It won't add and remove exclusions.

As I said, outside my area of knowledge so I'll defer to anyone who really knows what should happen. YMMV...
Comment 4 Odin Vex 2024-12-18 23:14:01 UTC
> This is a bit outside my area of knowledge - but there are also "Recent
> files" listed, not just search results. If you've opened something inside a
> vault, it might be worth checking whether this appears as a "Recent file"

I don't index them but I've seen them before. It's just been too long for me to remember when and where.

> As an aside - do *not* manually index any files in a vault, a "balooctl
> index secretfile.txt" will index the file despite the exclusion.

I've never had Baloo index anything, I usually hate Baloo (sorry to whoever developed it but I find it useless).

> If you follow the defaults and create your various vaults under the "Vault"
> subfolder, you can add a manual exclusion for $HOME/Vault and Baloo will
> ignore anything under it. It won't add and remove exclusions.

I enabled Baloo and did just that to make sure. Kate still shows entries and I'd like for any software that implements a "Recent" list to use KDE (or is that not an XDG thing (yet?)?).

> As I said, outside my area of knowledge so I'll defer to anyone who really
> knows what should happen. YMMV...

Understood, and thanks for the suggestions.
Comment 5 tagwerk19 2024-12-19 07:47:47 UTC
You can disable the "Recent Files" results in "System Settings > Plasma Search". Scroll down for a checkbox...

It might be worth trying
Comment 6 Odin Vex 2024-12-19 16:17:05 UTC
(In reply to tagwerk19 from comment #5)
> You can disable the "Recent Files" results in "System Settings > Plasma
> Search". Scroll down for a checkbox...
> 
> It might be worth trying

I disabled all Recent Files-related stuff and Baloo long ago. I found I hated Baloo, the search in Dolphin is entirely worthless at literally searching the filesystem and it's just better to grep.
Comment 7 Nate Graham 2025-05-07 19:20:41 UTC
The issue with Vault files being indexed and available when the Vault is closed is already tracked with Bug 390830; let's make this about the request to automatically create and delete the mountpoints. In the future, please only request one thing in each Bugzilla ticket.

I do wonder though... what's the threat model this protects against? If you want to avoid people knowing the names of your vaults, then you can just restrict access to your home folder, right? And if it's about protecting that information while you're logged in and someone is snooping over your shoulder, couldn't they see the names as well when you click on the widget which displays the Vault names?

Can you clarify what the benefit of this request would be?
Comment 8 Odin Vex 2025-05-07 19:40:56 UTC
(In reply to Nate Graham from comment #7)
> The issue with Vault files being indexed and available when the Vault is
> closed is already tracked with Bug 390830; let's make this about the request
> to automatically create and delete the mountpoints. In the future, please
> only request one thing in each Bugzilla ticket.

I was only requesting one thing in this ticket, the bit about indexed files was just a side-comment.

> I do wonder though... what's the threat model this protects against?

Revelation of contents, destruction of plausible deniability, the usual "models". This isn't just a home-folder restrictions issue and I'm not talking about shoulder-spies.

> Can you clarify what the benefit of this request would be?

Forget it. The more bugs I see the less I want to report them given things are either ignored or never fixed as "not a bug", the worst.
Comment 9 Nate Graham 2025-05-07 20:17:36 UTC
The request isn't insane; I'd just like to know what use case you have in mind so I can see if there might be a different way to satisfy it.

Basically, what's the case where an attacker has access to the contents of your home directory without any vaults mounted, but doesn't also have access to the names via the widget? An evil maid attack where you've failed to use full disk encryption or home directory encryption, or where you've been forced to reveal your FDE password but want to conceal the existence of Vaults from an adversary who isn't aware of the feature?
Comment 10 Bug Janitor Service 2025-05-22 03:47:20 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2025-06-06 03:48:16 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.