update dependencies for CVE fix x/net

This commit is contained in:
Harshavardhana
2025-03-12 22:29:51 -07:00
parent cccb37a5ac
commit 5e2eb372bf
15 changed files with 949 additions and 550 deletions

View File

@@ -23,7 +23,7 @@ import (
"sync"
"github.com/minio/minio-go/v7"
"github.com/minio/minio-go/v7/pkg/s3utils"
"github.com/minio/minio-go/v7/pkg/tags"
"github.com/minio/minio/internal/crypto"
"github.com/minio/minio/internal/hash"
xhttp "github.com/minio/minio/internal/http"
@@ -81,7 +81,14 @@ func fanOutPutObject(ctx context.Context, bucket string, objectAPI ObjectLayer,
for k, v := range req.UserMetadata {
userDefined[k] = v
}
userDefined[xhttp.AmzObjectTagging] = s3utils.TagEncode(req.UserTags)
tgs, err := tags.NewTags(req.UserTags, true)
if err != nil {
errs[idx] = err
return
}
userDefined[xhttp.AmzObjectTagging] = tgs.String()
if opts.Kind != nil {
encrd, objectEncryptionKey, err := newEncryptReader(ctx, hr, opts.Kind, opts.KeyID, opts.Key, bucket, req.Key, userDefined, opts.KmsCtx)