summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-06-06Release version 0.4.0v0.4.0Lars Wirzenius3-20/+25
2021-06-06Merge branch 'release' into 'main'Lars Wirzenius7-118/+222
release 0.4.0 Closes #109 and #120 See merge request larswirzenius/obnam!152
2021-06-06Merge branch 'Minoru-kun/obnam-feature/add-init-to-tutorial' into releaseLars Wirzenius1-8/+19
2021-06-06docs: drop questions from tutorial.mdLars Wirzenius1-4/+2
I want the rest included in the release that's about to happen. If this was the wrong thing, we will fix it promptly. Sponsored-by: author
2021-06-06chore: tell git to ignore all HTML and PDFLars Wirzenius1-2/+2
Sponsored-by: author
2021-06-06docs: rename NEWS to NEWS.md so it gets published automaticallyLars Wirzenius1-0/+0
Sponsored-by: author
2021-06-06docs: update NEWS, Cargo.toml, debian/changelo for new releaseLars Wirzenius4-11/+104
Also, tweak titles in NEWS to be a little shorter. Sponsored-by: author
2021-06-05doc(tutorial.md): point to compiled Subplot fileAlexander Batischev1-3/+2
When the tutorial is deployed to doc.obnam.org, it's better for it to point at the HTML version of the Subplot file rather than the Markdown version which doesn't exist on doc.obnam.org.
2021-06-05doc(tutorial.md): describe `obnam init`Alexander Batischev1-5/+19
I did not describe `--insecure-passphrase` because it's probably meant for scripting, not interactive use. Fixes #120.
2021-06-05Merge branch 'fix' into 'main'Lars Wirzenius3-0/+12
more title fixes See merge request larswirzenius/obnam!150
2021-06-05fix: add title to code of conductLars Wirzenius1-0/+4
Sponsored-by: author
2021-06-05fix: add title to READMELars Wirzenius1-0/+4
Sponsored-by: author
2021-06-05fix: add title to RELEASE.mdLars Wirzenius1-0/+4
Sponsored-by: author
2021-06-05Merge branch 'fix' into 'main'Lars Wirzenius1-0/+4
fix: add a document title to DONE.md See merge request larswirzenius/obnam!149
2021-06-05fix: add a document title to DONE.mdLars Wirzenius1-0/+4
Sponsored-by: author
2021-06-05Merge branch 'tutorial' into 'main'Lars Wirzenius1-0/+4
docs: add a title for the tutorial See merge request larswirzenius/obnam!148
2021-06-05docs: add a title for the tutorialLars Wirzenius1-0/+4
This will let Subplot to format it, which means it should be automatically published on doc.obnam.org. Sponsored-by: author
2021-06-05Merge branch 'feature/119-no-panics-on-short-nonces' into 'main'Lars Wirzenius1-8/+27
Do not panic if chunk nonce is unexpectedly short Closes #119 See merge request larswirzenius/obnam!147
2021-06-04feat: do not panic if chunk nonce is unexpectedly shortAlexander Batischev1-8/+27
Fixes #119.
2021-06-04Merge branch 'aead' into 'main'Lars Wirzenius33-494/+902
add encryption of individual chunks Closes #110 See merge request larswirzenius/obnam!146
2021-06-04Merge branch 'feature/105-add-ci' into 'main'Lars Wirzenius1-0/+48
feat(ci): add GitLab CI config Closes #105 See merge request larswirzenius/obnam!143
2021-05-31test: update subplot to use new encryption stuffLars Wirzenius1-7/+22
2021-05-31feat: add subcommands for encrypting, decrypting individual chunksLars Wirzenius4-0/+87
2021-05-31refactor: only send/receive encrypted chunks with serverLars Wirzenius1-65/+65
Also, refactor the client code to split out the HTTP bits more clearly. The refactor should've been separately, but got entangled with other changes during frantic debugging.
2021-05-31feat: add chunk encryptionLars Wirzenius3-0/+205
2021-05-29feat! drop MAC passphrase, fix key derivationLars Wirzenius1-5/+10
Previously we were deriving a key that was of the wrong length for the aead crate. Now we make it the right length.
2021-05-29refactor: make metadata part of a chunkLars Wirzenius2-2/+21
This makes is harder to accidentally use the wrong metadata for a chunk.
2021-05-29refactor: only have client config without passwordsLars Wirzenius8-98/+63
This means the config is always the config, and not sometimes the config or the config and passwords. Also, there's no config option for encrypting, anymore. It will not be optional now.
2021-05-29refactor: count chunks via file system, not via chunk server APILars Wirzenius4-33/+16
2021-05-29update Cargo.toml, Cargo.lock with new dependenciesLars Wirzenius2-172/+279
These aren't used yet, but they soon will be.
2021-05-29refactor: make metadata be part of datachunkLars Wirzenius11-53/+62
This makes it harder to lose the metadata for a chunk, or to use unrelated metadata and chunk. Also, soon I will refactor things for encrypting chunks, which will need metadata embedded in the encrypted chunk. Sponsored-by: author
2021-05-29refactor: split bare chunk server client into its own structLars Wirzenius1-71/+84
This makes the code doing HTTP requests simpler for easier comprehension and debugging.
2021-05-29Merge branch 'check' into 'main'Lars Wirzenius1-1/+1
build: don't hid clippy warnings See merge request larswirzenius/obnam!145
2021-05-27build: don't hid clippy warningsLars Wirzenius1-1/+1
Previously we were hiding (with chronic) clippy output if it was successful. However, clippy exits with zero even if it writes warnings. Thus, chronic is the wrong solution. The output also contains progress reporting from cargo, which is unwanted, thus, this commit replaces chronic with the clippy -q option, to get rid of the progress reporting. Sponsored-by: author
2021-05-10Merge branch 'subplot' into 'main'Lars Wirzenius10-1331/+5
chore: use Subplot's built-in copies of its libraries See merge request larswirzenius/obnam!144
2021-05-10chore: use Subplot's built-in copies of its librariesLars Wirzenius10-1331/+5
Drop the copies in subplot/vendor. Subplot will now use its built-in copies by default.
2021-04-29Merge branch 'error-messages' into 'main'Lars Wirzenius9-97/+161
feat: improve error messages Closes #108 See merge request larswirzenius/obnam!140
2021-04-29feat: improve error messagesLars Wirzenius9-97/+161
All unclear error messages should now be clearer. For example, all the ones related to a file mention the file name and the attempted operation that failed.
2021-04-27feat(ci): add GitLab CI configAlexander Batischev1-0/+48
This runs all the things that ./check runs, except the Subplot's docgen: it failed to find some TeX fonts, and I gave up on it because docs don't make sense on CI anyway. Fixes #105.
2021-04-27Merge branch 'feature/28-vec-to-iter' into 'main'Lars Wirzenius5-34/+111
Return iterators instead of huge vectors Closes #28 See merge request larswirzenius/obnam!142
2021-04-26Port chunkids() to the iterator APIAlexander Batischev3-12/+24
2021-04-26Generalize the machinery to arbitrary result typesAlexander Batischev1-18/+55
2021-04-26Extend the iterator to users of LocalGeneration::files()Alexander Batischev4-7/+8
2021-04-26Use an iterator internally for LocalGenerationAlexander Batischev1-19/+32
This adds the machinery. We have to keep the compiled SQL query while the iterator is in use, so we wrap it in an `SqlResults` struct which the iterator borrows.
2021-04-26Expose fallibility of individual SQL resultsAlexander Batischev4-13/+27
`LocalGeneration::sql::files()` runs an SQL query, iterates over the results and collects the rows into a `Vec`. This can fail at any step: the query might fail to run, or one of the rows might fail to be fetched or processed. Right now, we lump all those failures into a `Result` that wraps the whole return value. This is only possible because we process each row before returning. Once `Vec` is replaced by an iterator, we won't have that luxury anymore, so we now wrap each individual element into its own `Result` (as well as wrapping the whole vector into a `Result` of its own).
2021-04-26Merge branch 'feature/mention-cachedir-threat' into 'main'Lars Wirzenius1-0/+18
Add CACHEDIR.TAG to the threat model See merge request larswirzenius/obnam!141
2021-04-25Merge branch 'tilde' into 'main'Lars Wirzenius4-8/+64
feat: expand tilde notation in configuration file Closes #102 See merge request larswirzenius/obnam!139
2021-04-25feat: expand tilde notation in configuration fileLars Wirzenius4-8/+64
Backup roots and log file can now say ~/foo/bar to refer to files relative to the user's home directory.
2021-04-25Add CACHEDIR.TAG to the threat modelAlexander Batischev1-0/+18
2021-04-25Merge branch 'feature/78-cachedir-tag' into 'main'Lars Wirzenius7-14/+164
feat: add support for CACHEDIR.TAG Closes #78 See merge request larswirzenius/obnam!138