-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow using recent opencontainers/go-digest #2406
Allow using recent opencontainers/go-digest #2406
Conversation
cae3943
to
5501f1b
Compare
pkg/blobinfocache/sqlite/sqlite.go
Outdated
@@ -229,7 +229,7 @@ func ensureDBHasCurrentSchema(db *sql.DB) error { | |||
// * This schema uses the text representation of digests. | |||
// | |||
// We use the fairly wasteful text with hexadecimal digits because digest.Digest does not define a binary representation; | |||
// and the way digest.Digest.Hex() is deprecated in favor of digest.Digest.Encoded(), and the way digest.Algorithm | |||
// and the way digest.Digest.Encoded() is deprecated in favor of digest.Digest.Encoded(), and the way digest.Algorithm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems incorrect
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch, thanks!
5501f1b
to
3690153
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Miloslav Trmač <[email protected]>
Should not change behavior. Signed-off-by: Miloslav Trmač <[email protected]>
3690153
to
b71a3e3
Compare
We would like to update opencontainers/go-digest to include opencontainers/go-digest#101 , if it is accepted, to further protect against things like CVE-2024-3727 .
The upstream branch has deprecated the
Hex
method, so migrate away. Also ensure we can work with the proposed digest validation.