Skip to content

repository: add write-only permissions mode, fixes #1165#8844

Merged
ThomasWaldmann merged 1 commit intoborgbackup:masterfrom
ThomasWaldmann:write-only
May 18, 2025
Merged

repository: add write-only permissions mode, fixes #1165#8844
ThomasWaldmann merged 1 commit intoborgbackup:masterfrom
ThomasWaldmann:write-only

Conversation

@ThomasWaldmann
Copy link
Member

@ThomasWaldmann ThomasWaldmann commented May 17, 2025

Also: moved name length check to Archive.init, so it doesn't read all other archives main metadata when creating a new archive.

In write-only mode, the files cache can't be built from the repo from the latest archive of same series, we are not allowed to read that!

fixes #1165

fixes #4071

Also: moved name length check to Archive.__init__, so it doesn't
read all other archives main metadata when creating a new archive.

In write-only mode, the files cache can't be built from the repo
from the latest archive of same series, we are not allowed to read that!
@codecov
Copy link

codecov bot commented May 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.43%. Comparing base (ecdf399) to head (44edf6b).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #8844   +/-   ##
=======================================
  Coverage   82.43%   82.43%           
=======================================
  Files          74       74           
  Lines       13273    13280    +7     
  Branches     1961     1963    +2     
=======================================
+ Hits        10942    10948    +6     
+ Misses       1675     1674    -1     
- Partials      656      658    +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ThomasWaldmann ThomasWaldmann merged commit 7afb649 into borgbackup:master May 18, 2025
15 checks passed
@ThomasWaldmann ThomasWaldmann deleted the write-only branch May 18, 2025 05:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write-only mode (do not read anything from the remote) Ability to have true write-only repos

1 participant