image/docker
Miloslav Trmač 04deef6fe6 Call .Validate() before digest.Hex() / digest.Encoded()
... to prevent panics if the value does not contain a :, or other unexpected
values (e.g. a path traversal).

Don't bother on paths where we computed the digest ourselves, or it is already trusted
for other reasons.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2024-05-09 15:59:32 +02:00
..
archive Fix various unused parameters 2023-02-14 19:46:41 +01:00
daemon Call WithAPIVersionNegotiation to enable version negoatiation 2024-01-24 09:41:51 +00:00
fixtures/registries.d Don't call net/url.URL.Parse when we mean net/url.Parse 2022-10-26 16:03:03 +02:00
internal/tarfile Call .Validate() before digest.Hex() / digest.Encoded() 2024-05-09 15:59:32 +02:00
policyconfiguration Update a comment 2023-07-19 20:25:45 +02:00
reference Don't assume that &pkg/regexp.Regexp implements any methods 2023-06-27 18:56:06 +02:00
tarfile Add a transportName parameter to docker/internal/tarfile.NewSource 2022-07-05 17:02:23 +02:00
body_reader.go Simplify bodyReader.errorIfNotReconnecting 2023-02-14 19:40:38 +01:00
body_reader_test.go Add unit tests for the retry heuristics 2023-02-13 22:24:04 +01:00
cache.go Update to major version v5 2019-10-25 22:27:45 +02:00
distribution_error.go Use "maps" and "slices" from the standard library 2024-04-22 20:24:31 +02:00
distribution_error_test.go Use bytes.NewReader instead of bytes.NewBufferString 2023-04-17 23:57:42 +02:00
docker_client.go Use the new built-in min operator 2024-04-22 20:24:17 +02:00
docker_client_test.go Exit early if we don't get a HTTP response at all 2024-04-05 18:50:28 +02:00
docker_image.go Add support for pushing image with unknown digest 2023-12-05 10:48:40 -05:00
docker_image_dest.go Call .Validate() before digest.Hex() / digest.Encoded() 2024-05-09 15:59:32 +02:00
docker_image_dest_test.go Close http.Response.Body 2023-02-06 21:15:45 +01:00
docker_image_src.go Call .Validate() before digest.Hex() / digest.Encoded() 2024-05-09 15:59:32 +02:00
docker_image_src_test.go Consistently close ImageSource objects 2023-06-29 20:31:51 +02:00
docker_transport.go Use strings.CutPrefix and strings.CutSuffix 2024-03-09 22:37:40 +01:00
docker_transport_test.go Use strings.CutPrefix and strings.CutSuffix 2024-03-09 22:37:40 +01:00
errors.go Quote the response body in an error message 2023-11-14 00:05:53 +01:00
errors_test.go Quote the response body in an error message 2023-11-14 00:05:53 +01:00
paths_common.go Config files should live in /usr/local on FreeBSD 2022-05-10 10:45:49 +01:00
paths_freebsd.go Config files should live in /usr/local on FreeBSD 2022-05-10 10:45:49 +01:00
registries_d.go Call .Validate() before digest.Hex() / digest.Encoded() 2024-05-09 15:59:32 +02:00
registries_d_test.go Call .Validate() before digest.Hex() / digest.Encoded() 2024-05-09 15:59:32 +02:00
wwwauthenticate.go Use short-form assignments in various places 2023-02-06 21:23:14 +01:00
wwwauthenticate_test.go Fix Bearer authentication 2016-07-29 17:19:39 +02:00