Skip to content

Conversation

HuFlungDu
Copy link
Contributor

Invalidate GetNodeRightsCache entries when a user's permissions on a device or mesh.

This is a proposal for #7274.

In short, changing permissions can invalidate cache values, causing some users to not get permissions they should, or causing a user to continue having permissions for 10 seconds after they are removed from a device/mesh.

This version does not change the caching mechanism, instead in the case of a mesh change, it will dump the cache for all users. The alternative is to iterate over all cache entries, which seems like a bad idea. However, this will cause a bunch of cache misses every time a user has their permissions changed, which is not ideal either.

@si458
Copy link
Collaborator

si458 commented Sep 19, 2025

if you happy for me to merge this then plz change to ready :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants