mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
go.mod: update dependencies
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
parent
c62dae06c9
commit
4e20ab8a5d
5 changed files with 442 additions and 226 deletions
150
go.mod
150
go.mod
|
@ -3,7 +3,7 @@ module zotregistry.io/zot
|
||||||
go 1.17
|
go 1.17
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.17.1
|
github.com/99designs/gqlgen v0.17.2
|
||||||
github.com/Masterminds/semver v1.5.0
|
github.com/Masterminds/semver v1.5.0
|
||||||
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
|
github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751
|
||||||
github.com/apex/log v1.9.0
|
github.com/apex/log v1.9.0
|
||||||
|
@ -13,14 +13,14 @@ require (
|
||||||
github.com/briandowns/spinner v1.18.1
|
github.com/briandowns/spinner v1.18.1
|
||||||
github.com/chartmuseum/auth v0.5.0
|
github.com/chartmuseum/auth v0.5.0
|
||||||
github.com/containerd/containerd v1.5.10 // indirect
|
github.com/containerd/containerd v1.5.10 // indirect
|
||||||
github.com/containers/common v0.47.4
|
github.com/containers/common v0.47.5
|
||||||
github.com/containers/image/v5 v5.19.1
|
github.com/containers/image/v5 v5.19.1
|
||||||
github.com/didip/tollbooth/v6 v6.1.2
|
github.com/didip/tollbooth/v6 v6.1.2
|
||||||
github.com/docker/distribution v2.8.0+incompatible
|
github.com/docker/distribution v2.8.1+incompatible
|
||||||
github.com/dustin/go-humanize v1.0.0
|
github.com/dustin/go-humanize v1.0.0
|
||||||
github.com/fsnotify/fsnotify v1.5.1
|
github.com/fsnotify/fsnotify v1.5.1
|
||||||
github.com/getlantern/deepcopy v0.0.0-20160317154340-7f45deb8130a
|
github.com/getlantern/deepcopy v0.0.0-20160317154340-7f45deb8130a
|
||||||
github.com/go-ldap/ldap/v3 v3.4.2
|
github.com/go-ldap/ldap/v3 v3.4.3
|
||||||
github.com/gofrs/uuid v4.2.0+incompatible
|
github.com/gofrs/uuid v4.2.0+incompatible
|
||||||
github.com/google/go-containerregistry v0.8.1-0.20220209165246-a44adc326839
|
github.com/google/go-containerregistry v0.8.1-0.20220209165246-a44adc326839
|
||||||
github.com/google/uuid v1.3.0
|
github.com/google/uuid v1.3.0
|
||||||
|
@ -42,33 +42,38 @@ require (
|
||||||
github.com/prometheus/client_golang v1.12.1
|
github.com/prometheus/client_golang v1.12.1
|
||||||
github.com/prometheus/client_model v0.2.0
|
github.com/prometheus/client_model v0.2.0
|
||||||
github.com/rs/zerolog v1.26.1
|
github.com/rs/zerolog v1.26.1
|
||||||
github.com/sigstore/cosign v1.6.0
|
github.com/sigstore/cosign v1.7.2
|
||||||
github.com/smartystreets/goconvey v1.7.2
|
github.com/smartystreets/goconvey v1.7.2
|
||||||
github.com/spf13/cobra v1.3.0
|
github.com/spf13/cobra v1.4.0
|
||||||
github.com/spf13/viper v1.10.1
|
github.com/spf13/viper v1.11.0
|
||||||
github.com/stretchr/testify v1.7.0
|
github.com/stretchr/testify v1.7.1
|
||||||
github.com/swaggo/http-swagger v1.2.5
|
github.com/swaggo/http-swagger v1.2.5
|
||||||
github.com/swaggo/swag v1.8.0
|
github.com/swaggo/swag v1.8.1
|
||||||
github.com/urfave/cli/v2 v2.3.0
|
github.com/urfave/cli/v2 v2.4.0
|
||||||
github.com/vektah/gqlparser/v2 v2.4.1
|
github.com/vektah/gqlparser/v2 v2.4.1
|
||||||
go.etcd.io/bbolt v1.3.6
|
go.etcd.io/bbolt v1.3.6
|
||||||
golang.org/x/crypto v0.0.0-20220214200702-86341886e292
|
golang.org/x/crypto v0.0.0-20220411220226-7b82a4e95df4
|
||||||
gopkg.in/resty.v1 v1.12.0
|
gopkg.in/resty.v1 v1.12.0
|
||||||
gopkg.in/yaml.v2 v2.4.0
|
gopkg.in/yaml.v2 v2.4.0
|
||||||
)
|
)
|
||||||
|
|
||||||
|
require (
|
||||||
|
github.com/open-policy-agent/opa v0.37.0 // indirect
|
||||||
|
github.com/opencontainers/distribution-spec v1.0.1
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
bitbucket.org/creachadair/shell v0.0.6 // indirect
|
bitbucket.org/creachadair/shell v0.0.6 // indirect
|
||||||
cloud.google.com/go v0.100.2 // indirect
|
cloud.google.com/go v0.100.2 // indirect
|
||||||
cloud.google.com/go/compute v1.3.0 // indirect
|
cloud.google.com/go/compute v1.5.0 // indirect
|
||||||
cloud.google.com/go/iam v0.1.1 // indirect
|
cloud.google.com/go/iam v0.3.0 // indirect
|
||||||
cloud.google.com/go/kms v1.3.0 // indirect
|
cloud.google.com/go/kms v1.4.0 // indirect
|
||||||
cloud.google.com/go/storage v1.21.0 // indirect
|
cloud.google.com/go/storage v1.22.0 // indirect
|
||||||
cuelang.org/go v0.4.2 // indirect
|
cuelang.org/go v0.4.2 // indirect
|
||||||
github.com/AdaLogics/go-fuzz-headers v0.0.0-20211102141018-f7be0cbad29c // indirect
|
github.com/AdaLogics/go-fuzz-headers v0.0.0-20211102141018-f7be0cbad29c // indirect
|
||||||
github.com/Azure/azure-sdk-for-go v61.5.0+incompatible // indirect
|
github.com/Azure/azure-sdk-for-go v63.0.0+incompatible // indirect
|
||||||
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
|
github.com/Azure/go-autorest v14.2.0+incompatible // indirect
|
||||||
github.com/Azure/go-autorest/autorest v0.11.24 // indirect
|
github.com/Azure/go-autorest/autorest v0.11.25 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
|
github.com/Azure/go-autorest/autorest/adal v0.9.18 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 // indirect
|
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11 // indirect
|
||||||
github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 // indirect
|
github.com/Azure/go-autorest/autorest/azure/cli v0.4.5 // indirect
|
||||||
|
@ -77,7 +82,7 @@ require (
|
||||||
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
|
github.com/Azure/go-autorest/autorest/validation v0.3.1 // indirect
|
||||||
github.com/Azure/go-autorest/logger v0.2.1 // indirect
|
github.com/Azure/go-autorest/logger v0.2.1 // indirect
|
||||||
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
|
github.com/Azure/go-autorest/tracing v0.6.0 // indirect
|
||||||
github.com/Azure/go-ntlmssp v0.0.0-20200615164410-66371956d46c // indirect
|
github.com/Azure/go-ntlmssp v0.0.0-20211209120228-48547f28849e // indirect
|
||||||
github.com/BurntSushi/toml v1.0.0 // indirect
|
github.com/BurntSushi/toml v1.0.0 // indirect
|
||||||
github.com/GoogleCloudPlatform/docker-credential-gcr v1.5.0 // indirect
|
github.com/GoogleCloudPlatform/docker-credential-gcr v1.5.0 // indirect
|
||||||
github.com/KyleBanks/depth v1.2.1 // indirect
|
github.com/KyleBanks/depth v1.2.1 // indirect
|
||||||
|
@ -109,21 +114,21 @@ require (
|
||||||
github.com/armon/go-metrics v0.3.10 // indirect
|
github.com/armon/go-metrics v0.3.10 // indirect
|
||||||
github.com/armon/go-radix v1.0.0 // indirect
|
github.com/armon/go-radix v1.0.0 // indirect
|
||||||
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
|
github.com/asaskevich/govalidator v0.0.0-20210307081110-f21760c49a8d // indirect
|
||||||
github.com/aws/aws-sdk-go v1.43.0 // indirect
|
github.com/aws/aws-sdk-go v1.43.30 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2 v1.13.0 // indirect
|
github.com/aws/aws-sdk-go-v2 v1.14.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/config v1.13.1 // indirect
|
github.com/aws/aws-sdk-go-v2/config v1.14.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/credentials v1.8.0 // indirect
|
github.com/aws/aws-sdk-go-v2/credentials v1.9.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.10.0 // indirect
|
github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.11.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.4 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.5 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.2.0 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.3.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.5 // indirect
|
github.com/aws/aws-sdk-go-v2/internal/ini v1.3.6 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/ecr v1.14.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/ecr v1.15.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.11.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/ecrpublic v1.12.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.7.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.8.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sso v1.9.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sso v1.10.0 // indirect
|
||||||
github.com/aws/aws-sdk-go-v2/service/sts v1.14.0 // indirect
|
github.com/aws/aws-sdk-go-v2/service/sts v1.15.0 // indirect
|
||||||
github.com/aws/smithy-go v1.10.0 // indirect
|
github.com/aws/smithy-go v1.11.0 // indirect
|
||||||
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20220216180153-3d7835abdf40 // indirect
|
github.com/awslabs/amazon-ecr-credential-helper/ecr-login v0.0.0-20220228164355-396b2034c795 // indirect
|
||||||
github.com/benbjohnson/clock v1.1.0 // indirect
|
github.com/benbjohnson/clock v1.1.0 // indirect
|
||||||
github.com/beorn7/perks v1.0.1 // indirect
|
github.com/beorn7/perks v1.0.1 // indirect
|
||||||
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
|
github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect
|
||||||
|
@ -171,7 +176,7 @@ require (
|
||||||
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
|
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
|
||||||
github.com/fullstorydev/grpcurl v1.8.2 // indirect
|
github.com/fullstorydev/grpcurl v1.8.2 // indirect
|
||||||
github.com/ghodss/yaml v1.0.0 // indirect
|
github.com/ghodss/yaml v1.0.0 // indirect
|
||||||
github.com/go-asn1-ber/asn1-ber v1.5.1 // indirect
|
github.com/go-asn1-ber/asn1-ber v1.5.4 // indirect
|
||||||
github.com/go-chi/chi v4.1.2+incompatible // indirect
|
github.com/go-chi/chi v4.1.2+incompatible // indirect
|
||||||
github.com/go-git/gcfg v1.5.0 // indirect
|
github.com/go-git/gcfg v1.5.0 // indirect
|
||||||
github.com/go-git/go-billy/v5 v5.3.1 // indirect
|
github.com/go-git/go-billy/v5 v5.3.1 // indirect
|
||||||
|
@ -182,7 +187,7 @@ require (
|
||||||
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
github.com/go-openapi/jsonpointer v0.19.5 // indirect
|
||||||
github.com/go-openapi/jsonreference v0.19.6 // indirect
|
github.com/go-openapi/jsonreference v0.19.6 // indirect
|
||||||
github.com/go-openapi/loads v0.21.1 // indirect
|
github.com/go-openapi/loads v0.21.1 // indirect
|
||||||
github.com/go-openapi/runtime v0.23.1 // indirect
|
github.com/go-openapi/runtime v0.23.3 // indirect
|
||||||
github.com/go-openapi/spec v0.20.4 // indirect
|
github.com/go-openapi/spec v0.20.4 // indirect
|
||||||
github.com/go-openapi/strfmt v0.21.2 // indirect
|
github.com/go-openapi/strfmt v0.21.2 // indirect
|
||||||
github.com/go-openapi/swag v0.21.1 // indirect
|
github.com/go-openapi/swag v0.21.1 // indirect
|
||||||
|
@ -192,13 +197,13 @@ require (
|
||||||
github.com/go-playground/locales v0.14.0 // indirect
|
github.com/go-playground/locales v0.14.0 // indirect
|
||||||
github.com/go-playground/universal-translator v0.18.0 // indirect
|
github.com/go-playground/universal-translator v0.18.0 // indirect
|
||||||
github.com/go-playground/validator/v10 v10.10.0 // indirect
|
github.com/go-playground/validator/v10 v10.10.0 // indirect
|
||||||
github.com/go-redis/redis/v8 v8.11.3 // indirect
|
github.com/go-redis/redis/v8 v8.11.4 // indirect
|
||||||
github.com/go-restruct/restruct v0.0.0-20191227155143-5734170a48a1 // indirect
|
github.com/go-restruct/restruct v0.0.0-20191227155143-5734170a48a1 // indirect
|
||||||
github.com/go-stack/stack v1.8.1 // indirect
|
github.com/go-stack/stack v1.8.1 // indirect
|
||||||
github.com/gobwas/glob v0.2.3 // indirect
|
github.com/gobwas/glob v0.2.3 // indirect
|
||||||
github.com/gogo/protobuf v1.3.2 // indirect
|
github.com/gogo/protobuf v1.3.2 // indirect
|
||||||
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
|
||||||
github.com/golang-jwt/jwt/v4 v4.2.0 // indirect
|
github.com/golang-jwt/jwt/v4 v4.3.0 // indirect
|
||||||
github.com/golang/glog v1.0.0 // indirect
|
github.com/golang/glog v1.0.0 // indirect
|
||||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||||
github.com/golang/mock v1.6.0 // indirect
|
github.com/golang/mock v1.6.0 // indirect
|
||||||
|
@ -213,8 +218,9 @@ require (
|
||||||
github.com/google/gofuzz v1.2.0 // indirect
|
github.com/google/gofuzz v1.2.0 // indirect
|
||||||
github.com/google/trillian v1.4.0 // indirect
|
github.com/google/trillian v1.4.0 // indirect
|
||||||
github.com/google/wire v0.5.0 // indirect
|
github.com/google/wire v0.5.0 // indirect
|
||||||
github.com/googleapis/gax-go/v2 v2.1.1 // indirect
|
github.com/googleapis/gax-go/v2 v2.3.0 // indirect
|
||||||
github.com/googleapis/gnostic v0.5.5 // indirect
|
github.com/googleapis/gnostic v0.5.5 // indirect
|
||||||
|
github.com/googleapis/go-type-adapters v1.0.0 // indirect
|
||||||
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
|
github.com/gopherjs/gopherjs v0.0.0-20181017120253-0766667cb4d1 // indirect
|
||||||
github.com/gorilla/websocket v1.4.2 // indirect
|
github.com/gorilla/websocket v1.4.2 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0 // indirect
|
||||||
|
@ -223,7 +229,7 @@ require (
|
||||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
|
||||||
github.com/hashicorp/go-getter v1.5.2 // indirect
|
github.com/hashicorp/go-getter v1.5.2 // indirect
|
||||||
github.com/hashicorp/go-hclog v1.1.0 // indirect
|
github.com/hashicorp/go-hclog v1.2.0 // indirect
|
||||||
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
|
||||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||||
github.com/hashicorp/go-plugin v1.4.3 // indirect
|
github.com/hashicorp/go-plugin v1.4.3 // indirect
|
||||||
|
@ -231,15 +237,15 @@ require (
|
||||||
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
|
github.com/hashicorp/go-rootcerts v1.0.2 // indirect
|
||||||
github.com/hashicorp/go-safetemp v1.0.0 // indirect
|
github.com/hashicorp/go-safetemp v1.0.0 // indirect
|
||||||
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
|
github.com/hashicorp/go-secure-stdlib/mlock v0.1.2 // indirect
|
||||||
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.2 // indirect
|
github.com/hashicorp/go-secure-stdlib/parseutil v0.1.3 // indirect
|
||||||
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
|
github.com/hashicorp/go-secure-stdlib/strutil v0.1.2 // indirect
|
||||||
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
|
github.com/hashicorp/go-sockaddr v1.0.2 // indirect
|
||||||
github.com/hashicorp/go-uuid v1.0.2 // indirect
|
github.com/hashicorp/go-uuid v1.0.3 // indirect
|
||||||
github.com/hashicorp/go-version v1.4.0 // indirect
|
github.com/hashicorp/go-version v1.4.0 // indirect
|
||||||
github.com/hashicorp/golang-lru v0.5.4 // indirect
|
github.com/hashicorp/golang-lru v0.5.4 // indirect
|
||||||
github.com/hashicorp/hcl v1.0.0 // indirect
|
github.com/hashicorp/hcl v1.0.0 // indirect
|
||||||
github.com/hashicorp/hcl/v2 v2.10.1 // indirect
|
github.com/hashicorp/hcl/v2 v2.10.1 // indirect
|
||||||
github.com/hashicorp/vault/api v1.3.1 // indirect
|
github.com/hashicorp/vault/api v1.5.0 // indirect
|
||||||
github.com/hashicorp/vault/sdk v0.4.1 // indirect
|
github.com/hashicorp/vault/sdk v0.4.1 // indirect
|
||||||
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
|
github.com/hashicorp/yamux v0.0.0-20211028200310-0bc27b27de87 // indirect
|
||||||
github.com/huandu/xstrings v1.3.2 // indirect
|
github.com/huandu/xstrings v1.3.2 // indirect
|
||||||
|
@ -263,7 +269,8 @@ require (
|
||||||
github.com/knqyf263/go-rpmdb v0.0.0-20210911072402-73bd0ce46c49 // indirect
|
github.com/knqyf263/go-rpmdb v0.0.0-20210911072402-73bd0ce46c49 // indirect
|
||||||
github.com/knqyf263/nested v0.0.1 // indirect
|
github.com/knqyf263/nested v0.0.1 // indirect
|
||||||
github.com/leodido/go-urn v1.2.1 // indirect
|
github.com/leodido/go-urn v1.2.1 // indirect
|
||||||
github.com/magiconair/properties v1.8.5 // indirect
|
github.com/letsencrypt/boulder v0.0.0-20220331220046-b23ab962616e // indirect
|
||||||
|
github.com/magiconair/properties v1.8.6 // indirect
|
||||||
github.com/mailru/easyjson v0.7.7 // indirect
|
github.com/mailru/easyjson v0.7.7 // indirect
|
||||||
github.com/masahiro331/go-mvn-version v0.0.0-20210429150710-d3157d602a08 // indirect
|
github.com/masahiro331/go-mvn-version v0.0.0-20210429150710-d3157d602a08 // indirect
|
||||||
github.com/mattn/go-colorable v0.1.12 // indirect
|
github.com/mattn/go-colorable v0.1.12 // indirect
|
||||||
|
@ -285,13 +292,12 @@ require (
|
||||||
github.com/nmcclain/asn1-ber v0.0.0-20170104154839-2661553a0484 // indirect
|
github.com/nmcclain/asn1-ber v0.0.0-20170104154839-2661553a0484 // indirect
|
||||||
github.com/oklog/run v1.1.0 // indirect
|
github.com/oklog/run v1.1.0 // indirect
|
||||||
github.com/oklog/ulid v1.3.1 // indirect
|
github.com/oklog/ulid v1.3.1 // indirect
|
||||||
github.com/open-policy-agent/opa v0.37.0 // indirect
|
|
||||||
github.com/opencontainers/distribution-spec v1.0.1
|
|
||||||
github.com/opencontainers/runc v1.1.0 // indirect
|
github.com/opencontainers/runc v1.1.0 // indirect
|
||||||
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 // indirect
|
github.com/opencontainers/runtime-spec v1.0.3-0.20210326190908-1c3f411f0417 // indirect
|
||||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||||
github.com/owenrumney/squealer v0.2.28 // indirect
|
github.com/owenrumney/squealer v0.2.28 // indirect
|
||||||
github.com/pelletier/go-toml v1.9.4 // indirect
|
github.com/pelletier/go-toml v1.9.4 // indirect
|
||||||
|
github.com/pelletier/go-toml/v2 v2.0.0-beta.8 // indirect
|
||||||
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
|
github.com/pierrec/lz4 v2.6.1+incompatible // indirect
|
||||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||||
github.com/prometheus/common v0.32.1 // indirect
|
github.com/prometheus/common v0.32.1 // indirect
|
||||||
|
@ -310,16 +316,16 @@ require (
|
||||||
github.com/shibumi/go-pathspec v1.3.0 // indirect
|
github.com/shibumi/go-pathspec v1.3.0 // indirect
|
||||||
github.com/sigstore/fulcio v0.1.2-0.20220114150912-86a2036f9bc7 // indirect
|
github.com/sigstore/fulcio v0.1.2-0.20220114150912-86a2036f9bc7 // indirect
|
||||||
github.com/sigstore/rekor v0.4.1-0.20220114213500-23f583409af3 // indirect
|
github.com/sigstore/rekor v0.4.1-0.20220114213500-23f583409af3 // indirect
|
||||||
github.com/sigstore/sigstore v1.1.1-0.20220217212907-e48ca03a5ba7 // indirect
|
github.com/sigstore/sigstore v1.2.1-0.20220401110139-0e610e39782f // indirect
|
||||||
github.com/sirupsen/logrus v1.8.1 // indirect
|
github.com/sirupsen/logrus v1.8.1 // indirect
|
||||||
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
github.com/skratchdot/open-golang v0.0.0-20200116055534-eef842397966 // indirect
|
||||||
github.com/smartystreets/assertions v1.2.0 // indirect
|
github.com/smartystreets/assertions v1.2.0 // indirect
|
||||||
github.com/soheilhy/cmux v0.1.5 // indirect
|
github.com/soheilhy/cmux v0.1.5 // indirect
|
||||||
github.com/spf13/afero v1.8.0 // indirect
|
github.com/spf13/afero v1.8.2 // indirect
|
||||||
github.com/spf13/cast v1.4.1 // indirect
|
github.com/spf13/cast v1.4.1 // indirect
|
||||||
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
github.com/spf13/jwalterweatherman v1.1.0 // indirect
|
||||||
github.com/spf13/pflag v1.0.5 // indirect
|
github.com/spf13/pflag v1.0.5 // indirect
|
||||||
github.com/spiffe/go-spiffe/v2 v2.0.0-beta.12 // indirect
|
github.com/spiffe/go-spiffe/v2 v2.0.0 // indirect
|
||||||
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
|
github.com/stefanberger/go-pkcs11uri v0.0.0-20201008174630-78d3cae3a980 // indirect
|
||||||
github.com/stretchr/objx v0.3.0 // indirect
|
github.com/stretchr/objx v0.3.0 // indirect
|
||||||
github.com/subosito/gotenv v1.2.0 // indirect
|
github.com/subosito/gotenv v1.2.0 // indirect
|
||||||
|
@ -329,6 +335,7 @@ require (
|
||||||
github.com/tent/canonical-json-go v0.0.0-20130607151641-96e4ba3a7613 // indirect
|
github.com/tent/canonical-json-go v0.0.0-20130607151641-96e4ba3a7613 // indirect
|
||||||
github.com/thales-e-security/pool v0.0.2 // indirect
|
github.com/thales-e-security/pool v0.0.2 // indirect
|
||||||
github.com/theupdateframework/go-tuf v0.0.0-20220211205608-f0c3294f63b9 // indirect
|
github.com/theupdateframework/go-tuf v0.0.0-20220211205608-f0c3294f63b9 // indirect
|
||||||
|
github.com/titanous/rocacheck v0.0.0-20171023193734-afe73141d399 // indirect
|
||||||
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
|
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802 // indirect
|
||||||
github.com/tmccombs/hcl2json v0.3.1 // indirect
|
github.com/tmccombs/hcl2json v0.3.1 // indirect
|
||||||
github.com/twitchtv/twirp v8.1.0+incompatible // indirect
|
github.com/twitchtv/twirp v8.1.0+incompatible // indirect
|
||||||
|
@ -337,7 +344,7 @@ require (
|
||||||
github.com/vbatts/go-mtree v0.5.0 // indirect
|
github.com/vbatts/go-mtree v0.5.0 // indirect
|
||||||
github.com/vbatts/tar-split v0.11.2 // indirect
|
github.com/vbatts/tar-split v0.11.2 // indirect
|
||||||
github.com/vbauerster/mpb/v7 v7.1.5 // indirect
|
github.com/vbauerster/mpb/v7 v7.1.5 // indirect
|
||||||
github.com/xanzy/go-gitlab v0.56.0 // indirect
|
github.com/xanzy/go-gitlab v0.62.0 // indirect
|
||||||
github.com/xanzy/ssh-agent v0.3.0 // indirect
|
github.com/xanzy/ssh-agent v0.3.0 // indirect
|
||||||
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
|
||||||
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
|
||||||
|
@ -346,9 +353,9 @@ require (
|
||||||
github.com/zclconf/go-cty v1.9.1 // indirect
|
github.com/zclconf/go-cty v1.9.1 // indirect
|
||||||
github.com/zclconf/go-cty-yaml v1.0.2 // indirect
|
github.com/zclconf/go-cty-yaml v1.0.2 // indirect
|
||||||
github.com/zeebo/errs v1.2.2 // indirect
|
github.com/zeebo/errs v1.2.2 // indirect
|
||||||
go.etcd.io/etcd/api/v3 v3.5.1 // indirect
|
go.etcd.io/etcd/api/v3 v3.5.2 // indirect
|
||||||
go.etcd.io/etcd/client/pkg/v3 v3.5.1 // indirect
|
go.etcd.io/etcd/client/pkg/v3 v3.5.2 // indirect
|
||||||
go.etcd.io/etcd/client/v2 v2.305.1 // indirect
|
go.etcd.io/etcd/client/v2 v2.305.2 // indirect
|
||||||
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
|
go.etcd.io/etcd/client/v3 v3.5.0 // indirect
|
||||||
go.etcd.io/etcd/etcdctl/v3 v3.5.0 // indirect
|
go.etcd.io/etcd/etcdctl/v3 v3.5.0 // indirect
|
||||||
go.etcd.io/etcd/etcdutl/v3 v3.5.0 // indirect
|
go.etcd.io/etcd/etcdutl/v3 v3.5.0 // indirect
|
||||||
|
@ -373,37 +380,38 @@ require (
|
||||||
go.uber.org/atomic v1.9.0 // indirect
|
go.uber.org/atomic v1.9.0 // indirect
|
||||||
go.uber.org/multierr v1.7.0 // indirect
|
go.uber.org/multierr v1.7.0 // indirect
|
||||||
go.uber.org/zap v1.21.0 // indirect
|
go.uber.org/zap v1.21.0 // indirect
|
||||||
golang.org/x/mod v0.5.1 // indirect
|
golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3 // indirect
|
||||||
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect
|
golang.org/x/net v0.0.0-20220412020605-290c469a71a5 // indirect
|
||||||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect
|
golang.org/x/oauth2 v0.0.0-20220411215720-9780585627b5 // indirect
|
||||||
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
|
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
|
||||||
golang.org/x/sys v0.0.0-20220209214540-3681064d5158 // indirect
|
golang.org/x/sys v0.0.0-20220412211240-33da011f77ad // indirect
|
||||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
|
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
|
||||||
golang.org/x/text v0.3.7 // indirect
|
golang.org/x/text v0.3.7 // indirect
|
||||||
golang.org/x/time v0.0.0-20211116232009-f0f3c7e86c11 // indirect
|
golang.org/x/time v0.0.0-20220224211638-0e9765cccd65 // indirect
|
||||||
golang.org/x/tools v0.1.9 // indirect
|
golang.org/x/tools v0.1.10 // indirect
|
||||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
|
golang.org/x/xerrors v0.0.0-20220411194840-2f41105eb62f // indirect
|
||||||
google.golang.org/api v0.70.0 // indirect
|
google.golang.org/api v0.74.0 // indirect
|
||||||
google.golang.org/appengine v1.6.7 // indirect
|
google.golang.org/appengine v1.6.7 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20220218161850-94dd64e39d7c // indirect
|
google.golang.org/genproto v0.0.0-20220407144326-9054f6ed7bac // indirect
|
||||||
google.golang.org/grpc v1.44.0 // indirect
|
google.golang.org/grpc v1.45.0 // indirect
|
||||||
google.golang.org/protobuf v1.27.1 // indirect
|
google.golang.org/protobuf v1.28.0 // indirect
|
||||||
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
|
gopkg.in/cheggaaa/pb.v1 v1.0.28 // indirect
|
||||||
gopkg.in/inf.v0 v0.9.1 // indirect
|
gopkg.in/inf.v0 v0.9.1 // indirect
|
||||||
gopkg.in/ini.v1 v1.66.2 // indirect
|
gopkg.in/ini.v1 v1.66.4 // indirect
|
||||||
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
|
gopkg.in/natefinch/lumberjack.v2 v2.0.0 // indirect
|
||||||
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
gopkg.in/square/go-jose.v2 v2.6.0 // indirect
|
||||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||||
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
|
||||||
k8s.io/api v0.23.3 // indirect
|
gotest.tools/v3 v3.1.0 // indirect
|
||||||
k8s.io/apimachinery v0.23.3 // indirect
|
k8s.io/api v0.23.5 // indirect
|
||||||
k8s.io/client-go v0.23.3 // indirect
|
k8s.io/apimachinery v0.23.5 // indirect
|
||||||
k8s.io/klog/v2 v2.40.1 // indirect
|
k8s.io/client-go v0.23.5 // indirect
|
||||||
|
k8s.io/klog/v2 v2.60.1-0.20220317184644-43cc75f9ae89 // indirect
|
||||||
k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf // indirect
|
k8s.io/kube-openapi v0.0.0-20220124234850-424119656bbf // indirect
|
||||||
k8s.io/utils v0.0.0-20220127004650-9b3446523e65 // indirect
|
k8s.io/utils v0.0.0-20220210201930-3a6ce19ff2f9 // indirect
|
||||||
knative.dev/pkg v0.0.0-20220202132633-df430fa0dd96 // indirect
|
knative.dev/pkg v0.0.0-20220325200448-1f7514acd0c2 // indirect
|
||||||
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
|
sigs.k8s.io/json v0.0.0-20211208200746-9f7c6b3444d2 // indirect
|
||||||
sigs.k8s.io/release-utils v0.4.1-0.20220207182343-6dadf2228617 // indirect
|
sigs.k8s.io/release-utils v0.6.0 // indirect
|
||||||
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
|
sigs.k8s.io/structured-merge-diff/v4 v4.2.1 // indirect
|
||||||
sigs.k8s.io/yaml v1.3.0 // indirect
|
sigs.k8s.io/yaml v1.3.0 // indirect
|
||||||
)
|
)
|
||||||
|
|
|
@ -3113,7 +3113,7 @@ func TestImageSignatures(t *testing.T) {
|
||||||
options.RegistryOptions{AllowInsecure: true},
|
options.RegistryOptions{AllowInsecure: true},
|
||||||
map[string]interface{}{"tag": "1.0"},
|
map[string]interface{}{"tag": "1.0"},
|
||||||
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
|
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
|
||||||
"", true, "", "", "", false, false, "")
|
"", "", true, "", "", "", false, false, "")
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
|
|
||||||
// verify the image
|
// verify the image
|
||||||
|
|
|
@ -11,7 +11,7 @@ import (
|
||||||
notreg "github.com/notaryproject/notation/pkg/registry"
|
notreg "github.com/notaryproject/notation/pkg/registry"
|
||||||
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
artifactspec "github.com/oras-project/artifacts-spec/specs-go/v1"
|
artifactspec "github.com/oras-project/artifacts-spec/specs-go/v1"
|
||||||
"github.com/sigstore/cosign/pkg/cosign"
|
"github.com/sigstore/cosign/pkg/oci/remote"
|
||||||
"gopkg.in/resty.v1"
|
"gopkg.in/resty.v1"
|
||||||
zerr "zotregistry.io/zot/errors"
|
zerr "zotregistry.io/zot/errors"
|
||||||
"zotregistry.io/zot/pkg/api/constants"
|
"zotregistry.io/zot/pkg/api/constants"
|
||||||
|
@ -339,7 +339,7 @@ func canSkipCosignSignature(repo, tag, digest string, cosignManifest *ispec.Mani
|
||||||
// sync feature will try to pull cosign signature because for sync cosign signature is just an image
|
// sync feature will try to pull cosign signature because for sync cosign signature is just an image
|
||||||
// this function will check if tag is a cosign tag.
|
// this function will check if tag is a cosign tag.
|
||||||
func isCosignTag(tag string) bool {
|
func isCosignTag(tag string) bool {
|
||||||
if strings.HasPrefix(tag, "sha256-") && strings.HasSuffix(tag, cosign.SignatureTagSuffix) {
|
if strings.HasPrefix(tag, "sha256-") && strings.HasSuffix(tag, remote.SignatureTagSuffix) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ func isCosignTag(tag string) bool {
|
||||||
|
|
||||||
func getCosignTagFromImageDigest(digest string) string {
|
func getCosignTagFromImageDigest(digest string) string {
|
||||||
if !isCosignTag(digest) {
|
if !isCosignTag(digest) {
|
||||||
return strings.Replace(digest, ":", "-", 1) + cosign.SignatureTagSuffix
|
return strings.Replace(digest, ":", "-", 1) + "." + remote.SignatureTagSuffix
|
||||||
}
|
}
|
||||||
|
|
||||||
return digest
|
return digest
|
||||||
|
|
|
@ -32,7 +32,7 @@ import (
|
||||||
"github.com/sigstore/cosign/cmd/cosign/cli/options"
|
"github.com/sigstore/cosign/cmd/cosign/cli/options"
|
||||||
"github.com/sigstore/cosign/cmd/cosign/cli/sign"
|
"github.com/sigstore/cosign/cmd/cosign/cli/sign"
|
||||||
"github.com/sigstore/cosign/cmd/cosign/cli/verify"
|
"github.com/sigstore/cosign/cmd/cosign/cli/verify"
|
||||||
"github.com/sigstore/cosign/pkg/cosign"
|
"github.com/sigstore/cosign/pkg/oci/remote"
|
||||||
. "github.com/smartystreets/goconvey/convey"
|
. "github.com/smartystreets/goconvey/convey"
|
||||||
"gopkg.in/resty.v1"
|
"gopkg.in/resty.v1"
|
||||||
"zotregistry.io/zot/pkg/api"
|
"zotregistry.io/zot/pkg/api"
|
||||||
|
@ -2166,7 +2166,8 @@ func TestPeriodicallySignaturesErr(t *testing.T) {
|
||||||
|
|
||||||
Convey("Trigger error on cosign signature", func() {
|
Convey("Trigger error on cosign signature", func() {
|
||||||
// trigger permission error on cosign signature on upstream
|
// trigger permission error on cosign signature on upstream
|
||||||
cosignTag := string(imageManifestDigest.Algorithm()) + "-" + imageManifestDigest.Hex() + cosign.SignatureTagSuffix
|
cosignTag := string(imageManifestDigest.Algorithm()) + "-" + imageManifestDigest.Hex() +
|
||||||
|
"." + remote.SignatureTagSuffix
|
||||||
|
|
||||||
getCosignManifestURL := srcBaseURL + path.Join("/v2", repoName, "manifests", cosignTag)
|
getCosignManifestURL := srcBaseURL + path.Join("/v2", repoName, "manifests", cosignTag)
|
||||||
mResp, err := resty.R().Get(getCosignManifestURL)
|
mResp, err := resty.R().Get(getCosignManifestURL)
|
||||||
|
@ -3488,7 +3489,7 @@ func TestSyncSignaturesDiff(t *testing.T) {
|
||||||
defer func() { _ = os.Chdir(cwd) }()
|
defer func() { _ = os.Chdir(cwd) }()
|
||||||
tdir, err := ioutil.TempDir("", "sigs")
|
tdir, err := ioutil.TempDir("", "sigs")
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
defer os.RemoveAll(tdir)
|
|
||||||
_ = os.Chdir(tdir)
|
_ = os.Chdir(tdir)
|
||||||
generateKeyPairs(tdir)
|
generateKeyPairs(tdir)
|
||||||
|
|
||||||
|
@ -3577,7 +3578,13 @@ func TestSyncSignaturesDiff(t *testing.T) {
|
||||||
err = vrfy.Exec(context.TODO(), []string{fmt.Sprintf("localhost:%s/%s:%s", destPort, repoName, "1.0")})
|
err = vrfy.Exec(context.TODO(), []string{fmt.Sprintf("localhost:%s/%s:%s", destPort, repoName, "1.0")})
|
||||||
So(err, ShouldBeNil)
|
So(err, ShouldBeNil)
|
||||||
|
|
||||||
// now add signatures to upstream and let sync detect that upstream signatures changed and pull them
|
// now add new signatures to upstream and let sync detect that upstream signatures changed and pull them
|
||||||
|
So(os.RemoveAll(tdir), ShouldBeNil)
|
||||||
|
tdir, err = ioutil.TempDir("", "sigs")
|
||||||
|
So(err, ShouldBeNil)
|
||||||
|
defer os.RemoveAll(tdir)
|
||||||
|
_ = os.Chdir(tdir)
|
||||||
|
generateKeyPairs(tdir)
|
||||||
So(func() { signImage(tdir, srcPort, repoName, digest) }, ShouldNotPanic)
|
So(func() { signImage(tdir, srcPort, repoName, digest) }, ShouldNotPanic)
|
||||||
|
|
||||||
// wait for signatures
|
// wait for signatures
|
||||||
|
@ -3789,7 +3796,7 @@ func signImage(tdir, port, repoName string, digest godigest.Digest) {
|
||||||
options.RegistryOptions{AllowInsecure: true},
|
options.RegistryOptions{AllowInsecure: true},
|
||||||
map[string]interface{}{"tag": "1.0"},
|
map[string]interface{}{"tag": "1.0"},
|
||||||
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
|
[]string{fmt.Sprintf("localhost:%s/%s@%s", port, repoName, digest.String())},
|
||||||
"", true, "", "", "", false, false, "")
|
"", "", true, "", "", "", false, false, "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue