Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc: impact of deleting path/to/repo/nonce #6188

Merged
merged 7 commits into from
Feb 5, 2022

Conversation

hexagonrecursion
Copy link
Contributor

Fixes: #5858

In addition to explaining the consequences of deleting path/to/repo/nonce I have added tests to make sure that what the docs say is actually true.

Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some first feedback, more later.

count this as big docs update, especially considering you also put work into writing code.

docs/faq.rst Outdated Show resolved Hide resolved
docs/faq.rst Outdated Show resolved Hide resolved
hexagonrecursion added a commit to hexagonrecursion/borg that referenced this pull request Jan 29, 2022
borgbackup#6188 (comment)
> Well, guess one could also use max(list of trusted nonce values).
>
> The real issue is if you have lost all or some of the trusted
> (client side) nonce values and you also have reason to not trust the
> server side nonce, because someone might attack you on the server.
@codecov-commenter
Copy link

codecov-commenter commented Jan 29, 2022

Codecov Report

Merging #6188 (f032e04) into master (1a6437d) will decrease coverage by 0.01%.
The diff coverage is n/a.

❗ Current head f032e04 differs from pull request most recent head 6bc1f48. Consider uploading reports for the commit 6bc1f48 to get more accurate results

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6188      +/-   ##
==========================================
- Coverage   83.23%   83.21%   -0.02%     
==========================================
  Files          38       38              
  Lines       10387    10387              
  Branches     2039     2039              
==========================================
- Hits         8646     8644       -2     
- Misses       1233     1234       +1     
- Partials      508      509       +1     
Impacted Files Coverage Δ
src/borg/archive.py 82.06% <0.00%> (-0.13%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a6437d...6bc1f48. Read the comment docs.

docs/faq.rst Outdated Show resolved Hide resolved
Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good docs and thanks for the new tests!

@hexagonrecursion
Copy link
Contributor Author

restarting CI. I hope it's green this time

Copy link
Member

@ThomasWaldmann ThomasWaldmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor suggestions to improve the docs part

other than that: LGTM!

docs/faq.rst Outdated Show resolved Hide resolved
docs/faq.rst Outdated Show resolved Hide resolved
docs/faq.rst Outdated Show resolved Hide resolved
@ThomasWaldmann
Copy link
Member

Hmm, could you do a git rebase -i master and collapse some of the fixup commits (also removes the merge)?

I am about to add documentation for this feature. Per the "If you liked
it, you should have put a CI test on it" rule I am adding tests to
detect if the feature regresses (causing a discrepancy between the docs
and the real behavior).
borgbackup#6188 (comment)
> Well, guess one could also use max(list of trusted nonce values).
>
> The real issue is if you have lost all or some of the trusted
> (client side) nonce values and you also have reason to not trust the
> server side nonce, because someone might attack you on the server.
> do we maybe also want to mention the specific path where the local
> nonce is kept?
@hexagonrecursion
Copy link
Contributor Author

Done

@ThomasWaldmann ThomasWaldmann merged commit 4fa9f1f into borgbackup:master Feb 5, 2022
@ThomasWaldmann
Copy link
Member

Thanks!

hexagonrecursion added a commit to hexagonrecursion/borg that referenced this pull request Feb 7, 2022
borgbackup#6188 (comment)
> Well, guess one could also use max(list of trusted nonce values).
>
> The real issue is if you have lost all or some of the trusted
> (client side) nonce values and you also have reason to not trust the
> server side nonce, because someone might attack you on the server.
@hexagonrecursion
Copy link
Contributor Author

Backport is merged. Please remove the backport/1.1-maint label

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.

Q: nonce file has been deleted by accident, are there any impacts ?
3 participants