Giter Club home page Giter Club logo

Comments (7)

gperciva avatar gperciva commented on July 22, 2024

Answer from Colin:

It's not possible right now. The issue here is that there is a key used to determine how data is split into chunks, so even if nothing is being encrypted and uploaded, getting an accurate value will depend on having generated keys.

At some point, running that command should result in tarsnap printing a warning (e.g., "No keys loaded - using fake keys for tarsnap dry run") and generating temporary keys. To be specific, this should happen if tarsnap is being run in mode -c, the --dry-run option is specified, and no --keyfile option has been specified. (If a keyfile was provided but it doesn't have the right keys, we want to die loudly, because that's almost certainly PEBKAC.)

from tarsnap.

gperciva avatar gperciva commented on July 22, 2024

Also, why does --dry-run require an archive name? It isn't taken into account (it doesn't check with the server so it won't warn if an archive of the same name already exists).

from tarsnap.

cperciva avatar cperciva commented on July 22, 2024

Ooh, junior hacker task here! A much easier one than generating fake keys.

The reason --dry-run needs an archive name is that the archive name gets stored in the archive metadata, which is then encrypted and signed and dry-run stored (aka not stored but it gets added to the statistics).

Solution: If the user specifies --dry-run and does not specify -f, set a fake archive name -- I'd go with something like "(dry-run)" just in case it gets exposed anywhere visible (I don't think it does right now, but it's best to have an obviously fake name in case it gets exposed at some point in the future).

from tarsnap.

gperciva avatar gperciva commented on July 22, 2024

Umm. This is a much more "junior" task than you anticipated. :P

I'll just let 3e6431b speak for itself. (in case there's any doubt, expand the comment above the change)

from tarsnap.

cperciva avatar cperciva commented on July 22, 2024

Uhh... yeah, I guess I tried to do this years ago and didn't test whether the change I was making actually fixed it... it's even mentioned in the 1.0.27 release notes. sigh

from tarsnap.

gperciva avatar gperciva commented on July 22, 2024

This is now included in PR #12. Turns out I misunderstood how keygen was happening, so all that refactoring of keygen.c and keyregen.c was irrrelevant to this. (I'll still finish it up and send it in, though)

from tarsnap.

gperciva avatar gperciva commented on July 22, 2024

PR #12 fixed this; will be included in tarsnap 1.0.36.

from tarsnap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.