Skip to content

feat(graphql & repodb): add info about signature validity#1344

Merged
rchincha merged 1 commit into
project-zot:mainfrom
Andreea-Lupu:signatures_validity
May 24, 2023
Merged

feat(graphql & repodb): add info about signature validity#1344
rchincha merged 1 commit into
project-zot:mainfrom
Andreea-Lupu:signatures_validity

Conversation

@Andreea-Lupu

Copy link
Copy Markdown
Contributor

What type of PR is this?

Which issue does this PR fix:

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Comment thread pkg/meta/repodb/signatures/cosign.go Fixed
Comment thread pkg/meta/repodb/signatures/cosign.go Fixed

@andaaron andaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the behavior in case we run zot with dynamodb configuration? What would the SignatureSummary contain?

Comment thread pkg/extensions/search/convert/repodb.go Outdated
Comment thread pkg/meta/update.go
Comment thread pkg/meta/repodb/dynamodb-wrapper/dynamo_wrapper.go Outdated
Comment thread pkg/meta/repodb/repodb.go Outdated
Comment thread pkg/meta/repodb/repodbfactory/repodb_factory.go Outdated
@Andreea-Lupu
Andreea-Lupu force-pushed the signatures_validity branch 4 times, most recently from 8dd7b4c to 08cb7cc Compare April 12, 2023 17:09
@codecov

codecov Bot commented Apr 13, 2023

Copy link
Copy Markdown

Codecov Report

Merging #1344 (615977a) into main (6e6ffe8) will increase coverage by 0.10%.
The diff coverage is 96.65%.

@@            Coverage Diff             @@
##             main    #1344      +/-   ##
==========================================
+ Coverage   90.82%   90.93%   +0.10%     
==========================================
  Files          99      102       +3     
  Lines       22177    22604     +427     
==========================================
+ Hits        20143    20554     +411     
- Misses       1519     1528       +9     
- Partials      515      522       +7     
Impacted Files Coverage Δ
pkg/meta/signatures/cosign.go 85.24% <85.24%> (ø)
pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go 89.66% <96.51%> (+0.36%) ⬆️
pkg/meta/signatures/notation.go 97.08% <97.08%> (ø)
pkg/extensions/search/convert/repodb.go 97.77% <100.00%> (+0.15%) ⬆️
pkg/extensions/sync/signatures.go 86.86% <100.00%> (ø)
pkg/meta/repodb/dynamodb-wrapper/dynamo_wrapper.go 93.51% <100.00%> (+0.03%) ⬆️
pkg/meta/repodb/repodbfactory/repodb_factory.go 91.83% <100.00%> (+0.34%) ⬆️
pkg/meta/repodb/storage_parsing.go 100.00% <100.00%> (ø)
pkg/meta/signatures/signatures.go 100.00% <100.00%> (ø)
pkg/meta/update.go 100.00% <100.00%> (+0.95%) ⬆️

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

andaaron
andaaron previously approved these changes Apr 19, 2023

@andaaron andaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andaaron andaaron left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should wait on this PR until after notation switches to image manifests?

Comment thread pkg/meta/update_test.go Outdated
Comment thread pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go Outdated
@Andreea-Lupu
Andreea-Lupu force-pushed the signatures_validity branch 7 times, most recently from f31e03b to a1387a4 Compare May 19, 2023 09:56
Comment thread pkg/extensions/search/convert/repodb.go Outdated
Comment thread pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go
Comment thread pkg/meta/repodb/storage_parsing.go Outdated
Comment thread pkg/meta/signatures/cosign.go Outdated
Comment thread pkg/meta/signatures/notation.go Outdated
Comment thread pkg/meta/signatures/signatures.go Outdated
@Andreea-Lupu
Andreea-Lupu force-pushed the signatures_validity branch 2 times, most recently from b17b2b9 to d25f159 Compare May 19, 2023 17:32
Comment thread errors/errors.go Outdated
@Andreea-Lupu
Andreea-Lupu force-pushed the signatures_validity branch 2 times, most recently from d7b410f to 752c671 Compare May 23, 2023 08:30
Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
@Andreea-Lupu
Andreea-Lupu force-pushed the signatures_validity branch from 752c671 to 615977a Compare May 23, 2023 20:31
@andaaron andaaron linked an issue May 24, 2023 that may be closed by this pull request

@rchincha rchincha left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

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.

Store cosign signature information in RepoDB

4 participants