-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
We're encountering an issue when starting rekor-monitor
against a fresh Rekor instance with an empty log.
Steps to Reproduce
- Start with a fresh Rekor server (empty log).
- Run the monitor:
./rekor_monitor --file=checkpoint_log.txt --once=false --url=https://<rekor-server-url>
# output:
error running consistency check: failed to verify previous checkpoint: failed to verify log consistency: consistency proofs can not be computed starting from an empty log
- Push a single item to the Rekor log.
- Re-run the monitor:
./rekor_monitor --file=checkpoint_log.txt --once=false --url=https://<rekor-server-url>
# output again:
error running consistency check: failed to verify previous checkpoint: failed to verify log consistency: consistency proofs can not be computed starting from an empty log
Expected Behavior
I am wondering if the expected behavior is as follows:
Once a single entry is present, rekor-monitor should recognize it as a valid checkpoint and produce output similar to:
Root hash consistency verified - Current Size: 1 Root Hash: 385adfc2cb022834e1b9208e4da6f3820715794edd74c19acb5f1c2518e0106a - Previous Size: 1 Root Hash: 385adfc2cb022834e1b9208e4da6f3820715794edd74c19acb5f1c2518e0106a
In this case, it appears the tool currently doesn't handle the transition from an empty log (size 0) to size 1 gracefully.
Version
latest
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working