From 784a2351f2b03aad0c145db967316f776f987a48 Mon Sep 17 00:00:00 2001 From: Nghia Tran Date: Thu, 23 Jan 2025 16:46:25 -0800 Subject: [PATCH] Revert "Disallow `/` in key names" (#1493) This reverts commit 8f52674badbb93625e09bca17d4922e5308c707d. Signed-off-by: Nghia Tran --- pkg/apk/apk/index.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/apk/apk/index.go b/pkg/apk/apk/index.go index e16a1dcf..505dddd1 100644 --- a/pkg/apk/apk/index.go +++ b/pkg/apk/apk/index.go @@ -343,12 +343,6 @@ func parseRepositoryIndex(ctx context.Context, u string, keys map[string][]byte, if len(keys) == 0 { return nil, fmt.Errorf("no keys provided to verify signature") } - // check that they key name aren't paths or URLs - for keyName := range keys { - if strings.Contains(keyName, "/") { - return nil, fmt.Errorf("invalid keyname %q", keyName) - } - } buf := bytes.NewReader(b) gzipReader, err := gzip.NewReader(buf) if err != nil {