Skip to content

Commit 7933156

Browse files
author
Patrick Zheng
authored
refactor!: remove blob sign/verify related contents (#1011)
Signed-off-by: Patrick Zheng <[email protected]>
1 parent 767d1e3 commit 7933156

File tree

16 files changed

+34
-545
lines changed

16 files changed

+34
-545
lines changed

cmd/notation/verify.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ func printMetadataIfPresent(outcome *notation.VerificationOutcome) {
229229
}
230230

231231
func getVerifier(ctx context.Context) (notation.Verifier, error) {
232-
policyDocument, err := trustpolicy.LoadOCIDocument()
232+
policyDocument, err := trustpolicy.LoadDocument()
233233
if err != nil {
234234
return nil, err
235235
}
@@ -249,7 +249,7 @@ func getVerifier(ctx context.Context) (notation.Verifier, error) {
249249
if err != nil {
250250
return nil, err
251251
}
252-
return verifier.NewVerifierWithOptions(policyDocument, nil, x509TrustStore, plugin.NewCLIManager(dir.PluginFS()), verifier.VerifierOptions{
252+
return verifier.NewWithOptions(policyDocument, x509TrustStore, plugin.NewCLIManager(dir.PluginFS()), verifier.VerifierOptions{
253253
RevocationCodeSigningValidator: revocationCodeSigningValidator,
254254
RevocationTimestampingValidator: revocationTimestampingValidator,
255255
})

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.22
44

55
require (
66
github.com/notaryproject/notation-core-go v1.1.0-rc.1
7-
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240814004621-3c5a659c1d1d
7+
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240816021328-a83c5be7eff0
88
github.com/notaryproject/tspclient-go v0.2.0
99
github.com/opencontainers/go-digest v1.0.0
1010
github.com/opencontainers/image-spec v1.1.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ github.com/jcmturner/rpc/v2 v2.0.3 h1:7FXXj8Ti1IaVFpSAziCZWNzbNuZmnvw/i6CqLNdWfZ
3737
github.com/jcmturner/rpc/v2 v2.0.3/go.mod h1:VUJYCIDm3PVOEHw8sgt091/20OJjskO/YJki3ELg/Hc=
3838
github.com/notaryproject/notation-core-go v1.1.0-rc.1 h1:6cxfVUuc4rTqYu0u7vOmgXfqw1zZabSLJNo8KvkDEzU=
3939
github.com/notaryproject/notation-core-go v1.1.0-rc.1/go.mod h1:j6NELapik2bE1DcrL5otTfXWuW5PR/JLLfREZ4ggmYY=
40-
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240814004621-3c5a659c1d1d h1:7/lNsNkauXRhFuQ7TXTBuJA9PjrLhVraaAHuoDisK5Q=
41-
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240814004621-3c5a659c1d1d/go.mod h1:YpPRyhvDtpYVYGtRJ1PGZJhigT3mnl9jwqYj7tTBYVM=
40+
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240816021328-a83c5be7eff0 h1:zUwB3YTk8wiayHsrmL4EfvUC2dcXG0Kn31n/4cND/YM=
41+
github.com/notaryproject/notation-go v1.2.0-beta.1.0.20240816021328-a83c5be7eff0/go.mod h1:YpPRyhvDtpYVYGtRJ1PGZJhigT3mnl9jwqYj7tTBYVM=
4242
github.com/notaryproject/notation-plugin-framework-go v1.0.0 h1:6Qzr7DGXoCgXEQN+1gTZWuJAZvxh3p8Lryjn5FaLzi4=
4343
github.com/notaryproject/notation-plugin-framework-go v1.0.0/go.mod h1:RqWSrTOtEASCrGOEffq0n8pSg2KOgKYiWqFWczRSics=
4444
github.com/notaryproject/tspclient-go v0.2.0 h1:g/KpQGmyk/h7j60irIRG1mfWnibNOzJ8WhLqAzuiQAQ=

0 commit comments

Comments
 (0)