mirror of
https://github.com/project-zot/zot.git
synced 2024-12-23 22:27:35 -05:00
5a3fac40db
- using secrets manager for storing public keys and certificates
- adding a default truststore for notation verification and upload all certificates to this default truststore
- removig `truststoreName` query param from notation api for uploading certificates
(cherry picked from commit eafcc1a213
)
Signed-off-by: Andreea-Lupu <andreealupu1470@yahoo.com>
27 lines
662 B
Go
27 lines
662 B
Go
//go:build !imagetrust
|
|
// +build !imagetrust
|
|
|
|
package imagetrust
|
|
|
|
import (
|
|
"time"
|
|
|
|
godigest "github.com/opencontainers/go-digest"
|
|
)
|
|
|
|
func NewLocalImageTrustStore(dir string) (*imageTrustDisabled, error) {
|
|
return &imageTrustDisabled{}, nil
|
|
}
|
|
|
|
func NewAWSImageTrustStore(region, endpoint string) (*imageTrustDisabled, error) {
|
|
return &imageTrustDisabled{}, nil
|
|
}
|
|
|
|
type imageTrustDisabled struct{}
|
|
|
|
func (imgTrustStore *imageTrustDisabled) VerifySignature(
|
|
signatureType string, rawSignature []byte, sigKey string, manifestDigest godigest.Digest, manifestContent []byte,
|
|
repo string,
|
|
) (string, time.Time, bool, error) {
|
|
return "", time.Time{}, false, nil
|
|
}
|