Skip to content

Commit

Permalink
Revert "Disallow / in key names" (#1493)
Browse files Browse the repository at this point in the history
This reverts commit 8f52674.

Signed-off-by: Nghia Tran <[email protected]>
  • Loading branch information
tcnghia authored Jan 24, 2025
1 parent 8f52674 commit 784a235
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/apk/apk/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 784a235

Please sign in to comment.