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

Handle Rekor sharding #57

Open
haydentherapper opened this issue Sep 22, 2022 · 2 comments
Open

Handle Rekor sharding #57

haydentherapper opened this issue Sep 22, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@haydentherapper
Copy link
Contributor

haydentherapper commented Sep 22, 2022

/api/v1/log/proof defaults to using the current shard when requesting consistency proofs. This will be an issue once we shard Rekor in production. As the shard changes, the consistency proof can't be calculated, because the tree size will change back down to 1 for the new shard, while the monitor will think the tree has more elements.

We should either:

  • Create one monitor per shard
  • Make the monitor handle multiple shards. Shard discovery would be needed, and new shards can be found with the /log API.
@haydentherapper
Copy link
Contributor Author

Beginning work on this to get the monitor working again.

@haydentherapper
Copy link
Contributor Author

This came up again after yesterday's sharding. Had to delete the artifact for the last successful consistency proof to make it pick up the new log.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant