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: repetitive and incorrect log lines on witness verify #317

Merged
merged 1 commit into from
Aug 12, 2024

Conversation

ChaosInTheCRD
Copy link
Collaborator

@ChaosInTheCRD ChaosInTheCRD commented Aug 1, 2024

What this PR does / why we need it

This PR closes #316 where repeated verification lines existed that looked repeated. It also fixes log lines incorrectly reporting that certain attestations weren't seen. It does so by:

  • removing some unnecessary functionality that was duplicating the job of checking for the presence of certain attestations in the collection
  • not continuing through the verification flow if no collection was found from a search
  • preventing the memory source repeating the search process more than once. memory (attestation files) is a flat data structure so there is only a need to search once.

Which issue(s) this PR fixes (optional)

#316

Other Notes

This PR will be supplemented by a small PR (update: in-toto/witness#485) in https://github.com/in-toto/witness. While it is possible to test this without that branch, some of the reported log lines will still seem slightly misleading / confusing.

@jkjell jkjell merged commit 26ee2dc into in-toto:main Aug 12, 2024
12 checks passed
mikhailswift added a commit that referenced this pull request Aug 22, 2024
…317)"

This reverts commit 26ee2dc.

This commit breaks policy evaluations, causing good policies to fail.
mikhailswift added a commit that referenced this pull request Aug 22, 2024
…317)"

This reverts commit 26ee2dc.

This commit breaks policy evaluations, causing good policies to fail.

Signed-off-by: Mikhail Swift <[email protected]>
mikhailswift added a commit that referenced this pull request Aug 23, 2024
…317)"

This reverts commit 26ee2dc.

This commit breaks policy evaluations, causing good policies to fail.

Signed-off-by: Mikhail Swift <[email protected]>
mikhailswift added a commit that referenced this pull request Aug 23, 2024
…317)"

This reverts commit 26ee2dc.

This commit breaks policy evaluations, causing good policies to fail.

Signed-off-by: Mikhail Swift <[email protected]>
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

Successfully merging this pull request may close these issues.

Strange verification behavior
2 participants