Skip to content

*: prohibit TZ hashing#3905

Draft
carpawell wants to merge 9 commits intomasterfrom
rm/tz-hash
Draft

*: prohibit TZ hashing#3905
carpawell wants to merge 9 commits intomasterfrom
rm/tz-hash

Conversation

@carpawell
Copy link
Copy Markdown
Member

Closes #3847.

checksum.SHA256,
checksum.TillichZemor:
case checksum.TillichZemor:
return errors.New("object has Tillich-Zémor checksum")
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@roman-khimov, i want it to be this way, but i am not sure: we had this, and this was solved, and i really think that not all of our internals were ever ready for TZ hashing in the payload_checksum field but on the other hand, i am not sure, prohibiting it like this (even replication) is a good idea

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be OK, at least objects with non-SHA256 hashes are invalid as per API even not considering TZ removal.

@carpawell carpawell added the blocked Can't be done because of something label Mar 25, 2026
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
The still can be read if needed as a callback for unknown fields. Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This brings TZ hashing deprecated and unsupported.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Refs #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Closes #3847.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
@carpawell
Copy link
Copy Markdown
Member Author

carpawell commented Mar 27, 2026

There are many-many tests that use objecttest.Object() that sets homomorphic hash. We either need to unset it manually (and tests start to look strange IMO + the diff starts to look not as it was expected to be) or change it in SDK like nspcc-dev/neofs-sdk-go@2179ca1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blocked Can't be done because of something

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop TZ hash support

2 participants