Skip to content
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

Salted Namefilters #14

Open
matheus23 opened this issue Jul 15, 2022 · 2 comments
Open

Salted Namefilters #14

matheus23 opened this issue Jul 15, 2022 · 2 comments

Comments

@matheus23
Copy link
Member

Today you can binary-and a subset or all namefilters in the private filesystem without access to read keys. This can reveal some information.

We should instead just add a public salt to namefilters and use that salt when hashing for its indices. This makes it very unlikely that the binary and of two namefilters has meaningful information, since most likely their salts are different & that completely scrambles them.

We also use namefilters as a consistent naming scheme - sort of like a pointer machine. So we need to make sure that we keep having consistent namefilters for newer revisions. We can't re-use the same salt for all versions, but we can derive some uniformly random salt from the internal ratchet.

@expede
Copy link
Member

expede commented Jul 16, 2022

Also credit where due: thanks to @Stebalien for the suggestion 🎉

@matheus23
Copy link
Member Author

Oh yeah right! Totally! I meant to add that and just forgot. Thanks Steb :)

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

No branches or pull requests

2 participants