Mrityunjay Raj
39de0a8957
repoobj: remove xxh64 checksums from blob header, refs #8572
...
SHA-256-named pack files make per-blob xxh64 verification redundant.
AEAD decryption already catches corruption on the client side.
Header shrinks from 24 to 8 bytes per object.
2026-05-30 16:53:37 +05:30
TW
c613d800cf
Merge pull request #9675 from mr-raj12/legacy-upgrade-phase7
...
testsuite: add UpgraderFrom12To20 unit tests, refs #9556
2026-05-30 12:45:20 +02:00
Mrityunjay Raj
b7c841701a
testsuite: merge redundant hlid tests, fix ObfuscateSize comment, refs #9556
2026-05-30 14:08:45 +05:30
Mrityunjay Raj
ed185de618
testsuite: add UpgraderFrom12To20 unit tests, refs #9556
2026-05-30 01:31:36 +05:30
TW
f0d324e319
Merge pull request #9669 from mr-raj12/docs/internals-pack-files
...
docs: add pack file format design and internals documentation, refs #8572
2026-05-29 15:52:15 +02:00
Mrityunjay Raj
4d19b91a6b
docs: rename BORGOBJ->BORG_OBJ, introduce OBJ_MAGIC constant, refs #8572
...
Use BORG_OBJ (8 bytes) as the blob magic and refer to it as OBJ_MAGIC
throughout so the literal and its length appear in one place. Update
the inline blob diagram to the pipe-separated notation Thomas suggested.
2026-05-29 16:40:27 +05:30
TW
47966351bc
Merge pull request #9673 from ThomasWaldmann/remove-put2
...
Remove put2 / repository v2
2026-05-28 23:58:13 +02:00
Mrityunjay Raj
91003d0ca5
docs: address round-2 review on pack file internals, refs #8572
...
Rename PackIndex->ChunkIndex, fix pack path to use pack_id, drop
levels_config detail, fix "keyed MAC"->"ID hash" in Pack ID section,
document chunk_id duplication across unencrypted header and encrypted_meta.
2026-05-29 03:22:37 +05:30
Thomas Waldmann
828e72be72
rename v1_or_v2 to v1_legacy
...
The v2 repo format was only used by early borg2 alphas/betas,
before borgstore was introduced.
For borg transfer, we only need to support reading v1 repos
of borg 1.x.
2026-05-28 22:30:01 +02:00
Thomas Waldmann
e46a06add8
legacyrepository: remove PUT2 support
...
PUT2 was only used by early borg2 alphas/betas,
before borgstore was introduced.
borg 1.x only uses PUT.
2026-05-28 21:25:40 +02:00
Mrityunjay Raj
6bba477ae2
docs: revise pack file internals based on PR #9669 review, refs #8572
...
remove forward-looking N>1 references, hardcoded offsets, and stale "currently";
use borgstore vocabulary, medium-sized index files, and simplified recovery prose
2026-05-29 00:45:12 +05:30
TW
33afaa1f3c
Merge pull request #9672 from ThomasWaldmann/less-xxh64
...
Use less xxh64, add SHA256FileHashingWrapper
2026-05-28 20:37:48 +02:00
Thomas Waldmann
caf4d25d2d
cache: use sha256 instead of xxh64 in index names
2026-05-28 19:30:05 +02:00
Thomas Waldmann
a01907f79e
storelocking: use sha256 for lock, not xxh64
2026-05-28 19:17:15 +02:00
Thomas Waldmann
11ab8fdcde
list: remove xxh64 hash support
2026-05-28 19:17:14 +02:00
Thomas Waldmann
273bf84b7b
comments: talk less about xxh64
2026-05-28 19:17:12 +02:00
Thomas Waldmann
9e408a9b3a
benchmark: remove xxh64 and crc32 benchmarking
...
Likely we will use them less or not at all in future.
2026-05-28 19:17:11 +02:00
Thomas Waldmann
53b48f0940
FileHashingWrapper: support and use sha256
...
Cryptographically strong and often hw accelerated nowadays.
Also support by borgstore hash method.
2026-05-28 19:17:09 +02:00
TW
9389d98c6d
Merge pull request #9671 from ThomasWaldmann/move-secman-master
...
move SecurityManager code from borg.cache to borg.security
2026-05-28 15:35:49 +02:00
Thomas Waldmann
b45f233490
move SecurityManager code from borg.cache to borg.security
2026-05-28 14:20:28 +02:00
TW
1a359eacb5
Merge pull request #9670 from ThomasWaldmann/borgstore05
...
adapt for and require borgstore 0.5.x
2026-05-28 13:32:49 +02:00
Thomas Waldmann
9581aeb15d
adapt for and require borgstore 0.5.x
2026-05-28 12:35:58 +02:00
Mrityunjay Raj
5d6cafe4b8
docs: add pack file format design and internals documentation, refs #8572
2026-05-27 13:26:18 +05:30
TW
f348fe981f
Merge pull request #9668 from mr-raj12/legacy-pbkdf2-into-mixin
...
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
legacy: move pbkdf2 static method from FlexiKey to Pbkdf2FileMixin
2026-05-26 14:25:16 +02:00
Mrityunjay Raj
d4f25ac266
legacy: move pbkdf2 static method from FlexiKey to Pbkdf2FileMixin, refs #9556
2026-05-26 16:52:50 +05:30
TW
a461d72525
Merge pull request #9664 from mr-raj12/legacy-phase6-crypto
...
legacy: move hardlink helpers, NSIndex1, AES, and PBKDF2 key file methods to borg.legacy, refs #9556
2026-05-26 11:52:54 +02:00
TW
da9a549643
Merge pull request #9667 from ThomasWaldmann/pr-9666-fix
...
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
fixup for pr #9666 : better variable name
2026-05-25 02:30:55 +02:00
Thomas Waldmann
40572ffbf8
fixup for pr #9666 : better variable name
2026-05-25 00:58:16 +02:00
TW
dd0713e013
Merge pull request #9666 from Flachz/fix-xattrs-xdg-backup-exclude
...
fix: xattr xdg backup exclusion should be on 'false'
2026-05-25 00:51:30 +02:00
Flachz
e19232b306
fix: xattr xdg backup exclusion should be on 'false'
2026-05-24 22:11:41 +02:00
TW
832bb44693
Merge pull request #9665 from mr-raj12/benchmark-drop-kdf-section
...
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
benchmark cpu: drop KDF section
2026-05-24 08:01:53 +02:00
Mrityunjay Raj
fea52efd44
benchmark cpu: remove KDF assertions from tests
...
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-24 10:07:34 +05:30
Mrityunjay Raj
fe5e012481
benchmark cpu: drop KDF section, kdfs are intentionally slow and not worth benchmarking
2026-05-24 09:34:02 +05:30
Mrityunjay Raj
228ac45482
legacy: inline num_cipher_blocks in legacy/crypto/low_level, refs #9556
2026-05-23 20:10:06 +05:30
Mrityunjay Raj
b4821255f4
legacy: move pbkdf2 key file encryption to borg.legacy.crypto.key, refs #9556
2026-05-23 13:58:02 +05:30
Mrityunjay Raj
f58732290a
legacy: move AES to borg.legacy.crypto.low_level, refs #9556
2026-05-23 13:57:53 +05:30
Mrityunjay Raj
fb6192bf86
legacy: move NSIndex1 to borg.legacy.hashindex, refs #9556
2026-05-23 13:27:51 +05:30
Mrityunjay Raj
180130ba4e
legacy: move borg1 hardlink helpers to borg.legacy.helpers, refs #9556
2026-05-23 13:27:35 +05:30
TW
985d6f0ab0
Merge pull request #9655 from mr-raj12/legacy-upgrade-phase5
...
Lint / lint (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / security (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
CI / asan_ubsan (push) Has been cancelled
CI / native_tests (push) Has been cancelled
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Has been cancelled
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Has been cancelled
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Has been cancelled
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Has been cancelled
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Has been cancelled
CI / windows_tests (push) Has been cancelled
legacy: move upgrade.py into borg.legacy, refs #9556
2026-05-22 16:21:12 +02:00
TW
614baf5308
Merge pull request #9648 from mr-raj12/testsuite-legacy-archives
...
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.8) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run
testsuite: add Archives and LegacyArchives unit tests, refs #9556
2026-05-22 14:12:45 +02:00
Mrityunjay Raj
b0f3096989
legacy: move UpgraderFrom12To20 to borg.legacy, refs #9556
2026-05-22 17:37:12 +05:30
TW
0178431fc3
Merge pull request #9662 from ThomasWaldmann/remove-repo-compress
...
repo-compress: remove this command for now
2026-05-22 13:44:52 +02:00
Mrityunjay Raj
6cb6ac43b5
testsuite: rename _item to _iteminfo, _make to _archives, _info to _archiveinfo for clarity, refs #9556
2026-05-22 16:52:39 +05:30
Thomas Waldmann
6cfb90dae9
repo-compress: remove this command for now
...
for packs, this needs to get implemented differently to perform well.
processing needs to be pack-after-pack and the index needs to be
updated correctly and carefully, e.g. considering interruptions
of repo-compress.
2026-05-22 13:00:13 +02:00
TW
37a4f10755
Merge pull request #9661 from borgbackup/ai-findings-autofix/src-borg-testsuite-helpers-yes_no_test.py
...
improve yes tests
2026-05-22 12:40:58 +02:00
TW
45eeb1ba3a
Merge pull request #9660 from borgbackup/ai-findings-autofix/src-borg-version.py
...
improve versioning code
2026-05-22 12:40:36 +02:00
TW
1dd5840225
Merge pull request #9635 from borgbackup/finding-autofix-03f334da
...
Fix for Missing call to superclass `__init__` during object initialization
2026-05-22 12:36:10 +02:00
TW
a9bf624338
Apply suggested fix to src/borg/testsuite/helpers/yes_no_test.py from Copilot Autofix
...
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-22 11:56:24 +02:00
TW
147b7ef348
Apply suggested fix to src/borg/version.py from Copilot Autofix
...
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2026-05-22 11:52:59 +02:00
TW
9d6a64ec32
Fix for Missing call to superclass __init__ during object initialization
...
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
2026-05-22 11:45:32 +02:00