mirror of
https://github.com/containers/skopeo.git
synced 2025-07-12 05:58:34 +00:00
Merge pull request #1772 from containers/dependabot/go_modules/github.com/containers/ocicrypt-1.1.6
Bump github.com/containers/ocicrypt from 1.1.5 to 1.1.6
This commit is contained in:
commit
2133fa36da
2
go.mod
2
go.mod
@ -5,7 +5,7 @@ go 1.17
|
|||||||
require (
|
require (
|
||||||
github.com/containers/common v0.50.1
|
github.com/containers/common v0.50.1
|
||||||
github.com/containers/image/v5 v5.23.0
|
github.com/containers/image/v5 v5.23.0
|
||||||
github.com/containers/ocicrypt v1.1.5
|
github.com/containers/ocicrypt v1.1.6
|
||||||
github.com/containers/storage v1.43.0
|
github.com/containers/storage v1.43.0
|
||||||
github.com/opencontainers/go-digest v1.0.0
|
github.com/opencontainers/go-digest v1.0.0
|
||||||
github.com/opencontainers/image-spec v1.1.0-rc2
|
github.com/opencontainers/image-spec v1.1.0-rc2
|
||||||
|
3
go.sum
3
go.sum
@ -395,8 +395,9 @@ github.com/containers/ocicrypt v1.1.0/go.mod h1:b8AOe0YR67uU8OqfVNcznfFpAzu3rdgU
|
|||||||
github.com/containers/ocicrypt v1.1.1/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY=
|
github.com/containers/ocicrypt v1.1.1/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY=
|
||||||
github.com/containers/ocicrypt v1.1.2/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY=
|
github.com/containers/ocicrypt v1.1.2/go.mod h1:Dm55fwWm1YZAjYRaJ94z2mfZikIyIN4B0oB3dj3jFxY=
|
||||||
github.com/containers/ocicrypt v1.1.3/go.mod h1:xpdkbVAuaH3WzbEabUd5yDsl9SwJA5pABH85425Es2g=
|
github.com/containers/ocicrypt v1.1.3/go.mod h1:xpdkbVAuaH3WzbEabUd5yDsl9SwJA5pABH85425Es2g=
|
||||||
github.com/containers/ocicrypt v1.1.5 h1:UO+gBnBXvMvC7HTXLh0bPgLslfW8HlY+oxYcoSHBcZQ=
|
|
||||||
github.com/containers/ocicrypt v1.1.5/go.mod h1:WgjxPWdTJMqYMjf3M6cuIFFA1/MpyyhIM99YInA+Rvc=
|
github.com/containers/ocicrypt v1.1.5/go.mod h1:WgjxPWdTJMqYMjf3M6cuIFFA1/MpyyhIM99YInA+Rvc=
|
||||||
|
github.com/containers/ocicrypt v1.1.6 h1:uoG52u2e91RE4UqmBICZY8dNshgfvkdl3BW6jnxiFaI=
|
||||||
|
github.com/containers/ocicrypt v1.1.6/go.mod h1:WgjxPWdTJMqYMjf3M6cuIFFA1/MpyyhIM99YInA+Rvc=
|
||||||
github.com/containers/storage v1.43.0 h1:P+zulGXA3mqe2GnYmZU0xu87Wy1M0PVHM2ucrgmvTdU=
|
github.com/containers/storage v1.43.0 h1:P+zulGXA3mqe2GnYmZU0xu87Wy1M0PVHM2ucrgmvTdU=
|
||||||
github.com/containers/storage v1.43.0/go.mod h1:uZ147thiIFGdVTjMmIw19knttQnUCl3y9zjreHrg11s=
|
github.com/containers/storage v1.43.0/go.mod h1:uZ147thiIFGdVTjMmIw19knttQnUCl3y9zjreHrg11s=
|
||||||
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
|
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
|
||||||
|
8
vendor/github.com/containers/ocicrypt/encryption.go
generated
vendored
8
vendor/github.com/containers/ocicrypt/encryption.go
generated
vendored
@ -33,9 +33,9 @@ import (
|
|||||||
"github.com/containers/ocicrypt/keywrap/pkcs11"
|
"github.com/containers/ocicrypt/keywrap/pkcs11"
|
||||||
"github.com/containers/ocicrypt/keywrap/pkcs7"
|
"github.com/containers/ocicrypt/keywrap/pkcs7"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
log "github.com/sirupsen/logrus"
|
|
||||||
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
ocispec "github.com/opencontainers/image-spec/specs-go/v1"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EncryptLayerFinalizer is a finalizer run to return the annotations to set for
|
// EncryptLayerFinalizer is a finalizer run to return the annotations to set for
|
||||||
@ -143,6 +143,9 @@ func EncryptLayer(ec *config.EncryptConfig, encOrPlainLayerReader io.Reader, des
|
|||||||
|
|
||||||
newAnnotations := make(map[string]string)
|
newAnnotations := make(map[string]string)
|
||||||
keysWrapped := false
|
keysWrapped := false
|
||||||
|
if len(keyWrapperAnnotations) == 0 {
|
||||||
|
return nil, errors.New("missing Annotations needed for decryption")
|
||||||
|
}
|
||||||
for annotationsID, scheme := range keyWrapperAnnotations {
|
for annotationsID, scheme := range keyWrapperAnnotations {
|
||||||
b64Annotations := desc.Annotations[annotationsID]
|
b64Annotations := desc.Annotations[annotationsID]
|
||||||
keywrapper := GetKeyWrapper(scheme)
|
keywrapper := GetKeyWrapper(scheme)
|
||||||
@ -211,6 +214,9 @@ func DecryptLayer(dc *config.DecryptConfig, encLayerReader io.Reader, desc ocisp
|
|||||||
func decryptLayerKeyOptsData(dc *config.DecryptConfig, desc ocispec.Descriptor) ([]byte, error) {
|
func decryptLayerKeyOptsData(dc *config.DecryptConfig, desc ocispec.Descriptor) ([]byte, error) {
|
||||||
privKeyGiven := false
|
privKeyGiven := false
|
||||||
errs := ""
|
errs := ""
|
||||||
|
if len(keyWrapperAnnotations) == 0 {
|
||||||
|
return nil, errors.New("missing Annotations needed for decryption")
|
||||||
|
}
|
||||||
for annotationsID, scheme := range keyWrapperAnnotations {
|
for annotationsID, scheme := range keyWrapperAnnotations {
|
||||||
b64Annotation := desc.Annotations[annotationsID]
|
b64Annotation := desc.Annotations[annotationsID]
|
||||||
if b64Annotation != "" {
|
if b64Annotation != "" {
|
||||||
|
8
vendor/github.com/containers/ocicrypt/spec/spec.go
generated
vendored
8
vendor/github.com/containers/ocicrypt/spec/spec.go
generated
vendored
@ -3,10 +3,14 @@ package spec
|
|||||||
const (
|
const (
|
||||||
// MediaTypeLayerEnc is MIME type used for encrypted layers.
|
// MediaTypeLayerEnc is MIME type used for encrypted layers.
|
||||||
MediaTypeLayerEnc = "application/vnd.oci.image.layer.v1.tar+encrypted"
|
MediaTypeLayerEnc = "application/vnd.oci.image.layer.v1.tar+encrypted"
|
||||||
// MediaTypeLayerGzipEnc is MIME type used for encrypted compressed layers.
|
// MediaTypeLayerGzipEnc is MIME type used for encrypted gzip-compressed layers.
|
||||||
MediaTypeLayerGzipEnc = "application/vnd.oci.image.layer.v1.tar+gzip+encrypted"
|
MediaTypeLayerGzipEnc = "application/vnd.oci.image.layer.v1.tar+gzip+encrypted"
|
||||||
|
// MediaTypeLayerZstdEnc is MIME type used for encrypted zstd-compressed layers.
|
||||||
|
MediaTypeLayerZstdEnc = "application/vnd.oci.image.layer.v1.tar+zstd+encrypted"
|
||||||
// MediaTypeLayerNonDistributableEnc is MIME type used for non distributable encrypted layers.
|
// MediaTypeLayerNonDistributableEnc is MIME type used for non distributable encrypted layers.
|
||||||
MediaTypeLayerNonDistributableEnc = "application/vnd.oci.image.layer.nondistributable.v1.tar+encrypted"
|
MediaTypeLayerNonDistributableEnc = "application/vnd.oci.image.layer.nondistributable.v1.tar+encrypted"
|
||||||
// MediaTypeLayerGzipEnc is MIME type used for non distributable encrypted compressed layers.
|
// MediaTypeLayerGzipEnc is MIME type used for non distributable encrypted gzip-compressed layers.
|
||||||
MediaTypeLayerNonDistributableGzipEnc = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip+encrypted"
|
MediaTypeLayerNonDistributableGzipEnc = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip+encrypted"
|
||||||
|
// MediaTypeLayerZstdEnc is MIME type used for non distributable encrypted zstd-compressed layers.
|
||||||
|
MediaTypeLayerNonDistributableZsdtEnc = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd+encrypted"
|
||||||
)
|
)
|
||||||
|
2
vendor/github.com/containers/ocicrypt/utils/ioutils.go
generated
vendored
2
vendor/github.com/containers/ocicrypt/utils/ioutils.go
generated
vendored
@ -18,9 +18,9 @@ package utils
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"github.com/pkg/errors"
|
||||||
"io"
|
"io"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"github.com/pkg/errors"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// FillBuffer fills the given buffer with as many bytes from the reader as possible. It returns
|
// FillBuffer fills the given buffer with as many bytes from the reader as possible. It returns
|
||||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -118,7 +118,7 @@ github.com/containers/image/v5/version
|
|||||||
# github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a
|
# github.com/containers/libtrust v0.0.0-20200511145503-9c3a6c22cd9a
|
||||||
## explicit
|
## explicit
|
||||||
github.com/containers/libtrust
|
github.com/containers/libtrust
|
||||||
# github.com/containers/ocicrypt v1.1.5
|
# github.com/containers/ocicrypt v1.1.6
|
||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/containers/ocicrypt
|
github.com/containers/ocicrypt
|
||||||
github.com/containers/ocicrypt/blockcipher
|
github.com/containers/ocicrypt/blockcipher
|
||||||
|
Loading…
Reference in New Issue
Block a user