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

secure/trusted replication #1

Open
mchangrh opened this issue Oct 21, 2021 · 0 comments
Open

secure/trusted replication #1

mchangrh opened this issue Oct 21, 2021 · 0 comments

Comments

@mchangrh
Copy link
Owner

maybe for the future, but in order to have secure replication, there must be some sort of central trust database or some way to validate the files. This can be done with hashes such as xxh3 which runs at RAM or L3 cache speeds

This isn't that difficult to integrate but requires validation of the hash itself, either by downloading them from the main server over rsync or https. While the risk of bad data is possible, it's less likely once a list of trusted individuals/ mirrors is established

a hypothetical would go like this:

server

  • generates new dumps
  • xxh3 is generated along with dump
  • push is sent over webhook with xxh3 hash
  • xxh3hash file generated in dump

mirror

  • receive xxh3hash by webhook or rsync
  • download new files
  • verify against hashes from main server
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

No branches or pull requests

1 participant