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

fix: do not persist local log state if log is empty #1290

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

bobcallaway
Copy link
Member

Since consistency of a log can only be proven for non-zero sizes, we should not persist the root hash for an empty log in a local state file.

Fixes: #1234

Signed-off-by: Bob Callaway bcallaway@google.com

…rom 0 size

Signed-off-by: Bob Callaway <bcallaway@google.com>
@bobcallaway bobcallaway merged commit 343edbb into sigstore:main Jan 19, 2023
@github-actions github-actions bot added this to the v1.1.0 milestone Jan 19, 2023
bobcallaway added a commit to bobcallaway/rekor that referenced this pull request Jan 31, 2023
…rom 0 size (sigstore#1290)

Signed-off-by: Bob Callaway <bcallaway@google.com>

Signed-off-by: Bob Callaway <bcallaway@google.com>
(cherry picked from commit 343edbb)
bobcallaway added a commit that referenced this pull request Jan 31, 2023
…rom 0 size (#1290) (#1319)

Signed-off-by: Bob Callaway <bcallaway@google.com>

Signed-off-by: Bob Callaway <bcallaway@google.com>
(cherry picked from commit 343edbb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rekor-cli loginfo returns firstSize error
4 participants