cac6b25f19
An OCI image's identifier (or ID) is a SHA-256 hash [1] whose length is
64 hexadecimal digits. The ID can be abbreviated to a smaller number of
digits but the minimum is 6. The regular expression being used to parse
the image ID wasn't checking the number of digits, and would even accept
an empty string as a valid ID, which was clearly wrong.
The format of a image reference is defined in:
https://github.com/moby/moby/blob/master/image/spec/v1.1.md
https://github.com/distribution/distribution/blob/main/reference/reference.go
https://github.com/distribution/distribution/blob/main/reference/regexp.go
Fallout from
|
||
---|---|---|
.. | ||
bats-assert@d750c5a1b4 | ||
bats-support@24a72e1434 | ||
helpers.bash |