Skip to content

Verify consistency of server data #47

@juagargi

Description

@juagargi

While downloading the data from the CT log servers works, no actual verification is performed using their Signed Tree Heads (STHs).
Modify the downloader/updater so:

  • The inserted and committed data in the DB is verified with the STH of the server at its current size (after all batches are downloaded).
  • Investigate if the RFC mandates servers to implement obtaining the correct STH for intermediate sizes.
  • If the answer above is yes, do the following:
    • Each batch is consistent-proven (one request to server per batch) with the previous one.
    • The last batch brings the state to the current size of the server, at which point it can be queried for its STH. Verify the new STH with the new contents.
  • If the answer is no, solve the issue either with transactions or local intermediate STH computations (without server collaboration).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions