-
Notifications
You must be signed in to change notification settings - Fork 164
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
ensure fallback logic executes if attestation key is empty when fetching attestation #878
Conversation
Signed-off-by: Bob Callaway <bcallaway@google.com>
Codecov Report
@@ Coverage Diff @@
## main #878 +/- ##
==========================================
- Coverage 46.33% 46.29% -0.04%
==========================================
Files 60 60
Lines 5137 5137
==========================================
- Hits 2380 2378 -2
Misses 2484 2484
- Partials 273 275 +2
Continue to review full report at Codecov.
|
Signed-off-by: Bob Callaway <bcallaway@google.com>
I think you'll have to push to the main repo instead of a fork, and then only run this test after PR merges for auth to work correctly. |
Signed-off-by: Bob Callaway <bcallaway@google.com>
nope, i mistyped the reference to the correct container; the creds fix was a red-herring and i just removed it. |
Signed-off-by: Bob Callaway <bcallaway@google.com>
Signed-off-by: Bob Callaway <bcallaway@google.com>
this needs #869 to merge first but otherwise this should be ready for review |
Currently only two Rekor pluggable types support the storage of attestations (intoto, cose); the previous code to fetch attestations was type-agnostic, but due to the fix sigstore#878 the server was doing unnecessary lookups for all types, regardless of whether they store attestation content or not. This makes the attestation storage an explict interface, which we can test casting for and avoid a roundtrip to the storage layer for types that don't support storing attestations. Signed-off-by: Bob Callaway <bcallaway@google.com>
Currently only two Rekor pluggable types support the storage of attestations (intoto, cose); the previous code to fetch attestations was type-agnostic, but due to the fix #878 the server was doing unnecessary lookups for all types, regardless of whether they store attestation content or not. This makes the attestation storage an explict interface, which we can test casting for and avoid a roundtrip to the storage layer for types that don't support storing attestations. Signed-off-by: Bob Callaway <bcallaway@google.com>
Fixes: #872
Signed-off-by: Bob Callaway bcallaway@google.com