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

Auto Repair the local TUF repo #717

Merged
merged 1 commit into from
Feb 26, 2021

Conversation

directionless
Copy link
Contributor

@directionless directionless commented Feb 25, 2021

We've seen the local TUF repo get corrupt. This adds some simple local repairs when that happens.

I've seen the TUF repo get corrupt. The cases I've seen are benign, and I believe due to some error handling in the updater. I think it's reasonable to detect and repair these. First, we're replacing the bad local copy with an expected good one from the compiled assets. Second, what else do we expect to happen?

Testing this on my machine, it does recover from these states.

We've seen the local TUF repo get corrupt. This adds some simple local repairs when that happens.

I've seen the TUF repo get corrupt. The cases I've seen are benign, and I believe due to some error handling in the [updater](https://github.com/kolide/updater). I think it's reasonable to detect and repair these. First, we're replacing the bad local copy with an expected good one from the compiled assets. Second, what else do we expect to happen?
Copy link
Contributor

@blaedj blaedj left a comment

Choose a reason for hiding this comment

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

It took a bit to grok the existing code, but I think I got it. lgtm

@directionless directionless merged commit ee3a437 into kolide:master Feb 26, 2021
@directionless directionless deleted the seph/repair-tuf branch February 26, 2021 19:27
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.

None yet

2 participants