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

update: Package verification refactoring #186

Merged
merged 51 commits into from
Nov 15, 2022
Merged
Show file tree
Hide file tree
Changes from 44 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
6c1b2c2
draft
Two-Hearts Oct 28, 2022
e94dcdf
Merge branch 'notaryproject:main' into refactor
Two-Hearts Oct 31, 2022
71b8105
Merge branch 'notaryproject:main' into refactor
Two-Hearts Nov 2, 2022
720b9c2
refactoring: registry
Two-Hearts Nov 2, 2022
3ce7198
Merge branch 'notaryproject:main' into refactor
Two-Hearts Nov 4, 2022
236f1e8
refactoring
Two-Hearts Nov 4, 2022
4875fc9
Merge branch 'refactor' of https://github.com/patrickzheng200/notatio…
Two-Hearts Nov 4, 2022
9bdab66
Merge branch 'notaryproject:main' into refactor
Two-Hearts Nov 4, 2022
04adac0
Merge branch 'notaryproject:main' into refactor
Two-Hearts Nov 4, 2022
69aa5ef
refactoring verification
Two-Hearts Nov 6, 2022
915f07f
resolve conflicts
Two-Hearts Nov 6, 2022
ae8b7de
verification refactoring
Two-Hearts Nov 7, 2022
f1ce66e
verification refactoring
Two-Hearts Nov 7, 2022
9c89eee
update
Two-Hearts Nov 7, 2022
e72ae16
update
Two-Hearts Nov 7, 2022
566948e
update
Two-Hearts Nov 7, 2022
184c51f
update
Two-Hearts Nov 8, 2022
13e6a95
update
Two-Hearts Nov 8, 2022
ab38c9c
updated dir
Two-Hearts Nov 8, 2022
5d0e2a7
refactored verifier
Two-Hearts Nov 8, 2022
049dc56
updated per code review
Two-Hearts Nov 8, 2022
8606855
updated oras version
Two-Hearts Nov 8, 2022
21b349d
update
Two-Hearts Nov 9, 2022
9f74dd9
update
Two-Hearts Nov 9, 2022
fceee0b
resolved conflicts
Two-Hearts Nov 9, 2022
ac70fcb
updates
Two-Hearts Nov 9, 2022
355bfb2
update
Two-Hearts Nov 9, 2022
354c32c
update
Two-Hearts Nov 9, 2022
d772dae
update
Two-Hearts Nov 9, 2022
1ce0608
update
Two-Hearts Nov 9, 2022
6c9132b
update
Two-Hearts Nov 9, 2022
2adcaa1
update
Two-Hearts Nov 9, 2022
f473ea2
update
Two-Hearts Nov 9, 2022
7558439
update
Two-Hearts Nov 10, 2022
fb838b7
resolve conflicts
Two-Hearts Nov 10, 2022
e05931d
update
Two-Hearts Nov 10, 2022
6641b81
update
Two-Hearts Nov 10, 2022
ed439f2
updated per code review
Two-Hearts Nov 10, 2022
ea1fa1b
update
Two-Hearts Nov 10, 2022
44f4541
update
Two-Hearts Nov 10, 2022
791afa9
address code review
Two-Hearts Nov 10, 2022
3d592f8
resolved conflicts
Two-Hearts Nov 11, 2022
8eb0145
update
Two-Hearts Nov 11, 2022
34597ba
updated per code review
Two-Hearts Nov 11, 2022
675d05d
updated per code review
Two-Hearts Nov 12, 2022
86cb8ec
added doc for packages
Two-Hearts Nov 12, 2022
6618671
only saving signatures verified successfully into verificationOutcomes
Two-Hearts Nov 12, 2022
9e33578
resolved conflicts
Two-Hearts Nov 14, 2022
6a879fb
updated per code review
Two-Hearts Nov 14, 2022
72962ae
update
Two-Hearts Nov 14, 2022
024c85c
updated per code review
Two-Hearts Nov 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ require (
github.com/notaryproject/notation-core-go v0.2.0-beta.1
github.com/opencontainers/go-digest v1.0.0
github.com/opencontainers/image-spec v1.1.0-rc2
github.com/oras-project/artifacts-spec v1.0.0-rc.2
github.com/veraison/go-cose v1.0.0-rc.1.0.20220824135457-9d2fab636b83
oras.land/oras-go/v2 v2.0.0-rc.4
)
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
github.com/opencontainers/image-spec v1.1.0-rc2 h1:2zx/Stx4Wc5pIPDvIxHXvXtQFW/7XWJGmnM7r3wg034=
github.com/opencontainers/image-spec v1.1.0-rc2/go.mod h1:3OVijpioIKYWTqjiG0zfF6wvoJ4fAXGbjdZuI2NgsRQ=
github.com/oras-project/artifacts-spec v1.0.0-rc.2 h1:9SMCNSxkJEHqWGDiMCuy6TXHgvjgwXGdXZZGXLKQvVE=
github.com/oras-project/artifacts-spec v1.0.0-rc.2/go.mod h1:Xch2aLzSwtkhbFFN6LUzTfLtukYvMMdXJ4oZ8O7BOdc=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand Down
10 changes: 10 additions & 0 deletions internal/envelope/envelope.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package envelope

import (
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
)

// Payload describes the content that gets signed.
type Payload struct {
TargetArtifact ocispec.Descriptor `json:"targetArtifact"`
}
134 changes: 0 additions & 134 deletions internal/mock_origin/mocks.go

This file was deleted.

12 changes: 0 additions & 12 deletions internal/mock_origin/testdata/ca_expired_sig_env.json

This file was deleted.

12 changes: 0 additions & 12 deletions internal/mock_origin/testdata/ca_invalid_sig_env.json

This file was deleted.

12 changes: 0 additions & 12 deletions internal/mock_origin/testdata/ca_plugin_sig_env.json

This file was deleted.

Loading