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

Invalid/non-linear STHs are ignored as long as they have a smaller tree size than current #65

Open
rolandshoemaker opened this issue Aug 29, 2018 · 2 comments

Comments

@rolandshoemaker
Copy link

This was introduced to allow us to keep operating when a log serves cached STHs that are smaller than the one we most recently saw (i.e. when they are serving stale STHs from M of N frontend nodes). This prevents us from catching a number of broken log cases.

Instead we should store a list of all STHs we've previously observed and verify the returned STHs against this list (using the existing storage layer to manage the list). This will allow us to spot bad STHs.

@cpu
Copy link
Contributor

cpu commented Aug 29, 2018

This prevents us from catching a number of broken log cases.

Can you expand on what cases we'd miss? I'm not clear what the bad STHs we'd spot are. A new previously unseen STH for a smaller treesize vs an existing STH for the smaller treesize that we've already seen?

@cpu
Copy link
Contributor

cpu commented Dec 18, 2018

@rolandshoemaker bump on ☝️ ? It would be helpful to have the broken log cases you think this would be helpful with made more explicit (can ct-test-srv as implemented in this repo simulate them for example?)

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