Skip to content

Only read from the entropy-tss key-value store following a reboot #1429

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ameba23
Copy link
Collaborator

@ameba23 ameba23 commented May 9, 2025

This relates to, but does not completely fix #1427

In this PR, when reading a keyshare - we always read from the app state cache (memory). When modifying a keyshare, we write to both the cache and the key-value store (disk).

This will probably turn into quite a bit PR because i have made the kv store a private field on app state - to restrict where it is used. Probably this means the unsafe API needs changing to also read from cache rather than the KVDB.

@ameba23 ameba23 marked this pull request as draft May 9, 2025 09:32
@ameba23 ameba23 changed the title Only read from the entropy-tss key-value following a reboot Only read from the entropy-tss key-value store following a reboot May 9, 2025
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.

Reading keyshare from disk makes entropy-tss vulnerable to rollback attacks from host operator
1 participant