Skip to content

Commit 27184de

Browse files
Merge pull request #334 from shiftstack/synk
CARRY: add comment to .snyk about Glance
2 parents 32565df + 2f8b614 commit 27184de

File tree

2 files changed

+18
-6
lines changed
  • hack/tools/vendor/sigs.k8s.io/cluster-api-provider-openstack

2 files changed

+18
-6
lines changed

.snyk

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ exclude:
88
- "hack/**"
99
- "test/**"
1010
- "**/*_test.go"
11-
# Here we skip warnings about the fact md5 and sha1 is being used to check images checksums.
12-
# Ignoring these errors doesn't seem to work with the "ignore:" interface so let's just skip
13-
# this file for now.
11+
# TODO: use the `ignore:` interface to be more specific on what issues we want to ignore but it doesn't seem to work.
12+
#
13+
# This file handle Glance image upload in CAPO.
14+
# This code intentionally supports insecure hash algorithms, because for public images the consumer can't, in practise,
15+
# influence the hash algorithm presented. If the only published hash is MD5 it's more secure to check it than not
16+
# check it, so we support MD5.
17+
# Incidentally, Glance only directly supports SHA512. This is wildly impractical as almost nobody publishes this:
18+
# SHA256 is most common in practise. Also Glance publishes a hash of something that isn't guaranteed to be what it downloaded.
19+
# Also there's no way to determine via the API if it's going to do this. Glance hash verification is unusable.
1420
- 'internal/controllers/image/upload_helpers.go'

hack/tools/vendor/sigs.k8s.io/cluster-api-provider-openstack/.snyk

Lines changed: 9 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)