Skip to content

Checksums to Verify Up- and Download #2542

Closed

Description

@dragotin

Some storage backends support hash sums of files. These could be used to ensure the files integrity when up- or downloaded between sync client and server. This adds another level of security.

The basic idea is to add a hashsum as HTTP header to GET or PUT and compare on the other communication side. If the numbers do not match, the transmission has to be an error.

@moscicki has drafted a specification: https://github.com/cernbox/smashbox/blob/master/protocol/checksum.md as discussed on a meeting with @DeepDiver1975 and @dragotin.

Tracked in core repo owncloud/core#12417

Activity

  1. guruz commented on Feb 3, 2015

    @guruz
    Contributor

    Another issue where this might help: owncloud/core#13044

  2. guruz commented on Mar 26, 2015

    @guruz
    Contributor

    Related #3018

  3. dragotin commented on Mar 26, 2015

    @dragotin
    ContributorAuthor
  4. nekoal commented on Mar 28, 2015

    @nekoal

    What about perfomance? Checksum calculation need very long time for large files. I tried earlier with using crc32 function in zlib.dll 1.2.3 for my project. Walking directory tree time became 3-4 times longer when checksum enabled for all files include files with size larger than 1 MiB. And I expect md5 hash need more time than crc32. For simple integrity check may be using more fast function as adler32 enough.

  5. moscicki commented on Mar 30, 2015

    @moscicki
    Contributor

    @nekoal: let's see in practice what is the impact. For now I'd say that the choice is yours: screw performance or screw file contents ;-)

  6. guruz commented on Aug 5, 2015

    @guruz
    Contributor

    Shall we have this for 2.1 ?
    Something to discuss on the contributor meetup..

    CC @MTRichards

  7. moscicki commented on Aug 5, 2015

    @moscicki
    Contributor

    @guruz: I assume this functionality is available (but must be explicitly activated in the configuration/branding) in all releases starting with 1.8.0, correct?

  8. guruz commented on Aug 5, 2015

    @guruz
    Contributor

    @moscicki If things didn't change yes. I just wanted to emphasize that i think the non-CernCloud should have this.. :)
    Are you coming to the contributor summit?

  9. moscicki commented on Aug 5, 2015

    @moscicki
    Contributor

    Cool. Yes!

  10. MTRichards commented on Aug 5, 2015

    @MTRichards

    @guruz Ok, to discuss. In general, I like.

    However, I think we should take a look at real tested performance impact...and then depending on those results, make a more informed decision.

  11. dragotin commented on Dec 7, 2015

    @dragotin
    ContributorAuthor

    This is outdated, client version 2.1.0 and later have checksums. See #3735

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions