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

Fix/stackerdb audit coinfabrik #5523

Merged
merged 13 commits into from
Dec 9, 2024
Merged

Conversation

jcnelson
Copy link
Member

@jcnelson jcnelson commented Dec 2, 2024

This implements all of Coinfabrik's StackerDB audit recommendations.

Nothing major was found. The only changes are:

  • Allow hint-replicas to be locally overridden, so a StackerDB smart contract can't force subscribed nodes to connect to non-replicas (such as hosts on a private network, or a DoS target)

  • Set private_neighbors to false by default (cc @CharlieC3 @deantchi @wileyj so you're aware of this config default)

  • Only count authenticated outbound StackerDB replicas when calculating the broadcast probability for a StackerDB inventory or chunk

cc @will-corcoran

@jcnelson jcnelson requested a review from a team as a code owner December 2, 2024 22:05
jferrant
jferrant previously approved these changes Dec 3, 2024
jbencin
jbencin previously approved these changes Dec 3, 2024
Copy link
Contributor

@jbencin jbencin left a comment

Choose a reason for hiding this comment

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

Left a couple style/simplification comments but I approve

@jcnelson jcnelson dismissed stale reviews from jbencin and jferrant via ff7d0b7 December 3, 2024 23:03
@jcnelson jcnelson requested review from jbencin and jferrant December 3, 2024 23:03
@jcnelson
Copy link
Member Author

jcnelson commented Dec 9, 2024

ping @obycode @jferrant

@jcnelson jcnelson added this pull request to the merge queue Dec 9, 2024
Merged via the queue into develop with commit 3b25d99 Dec 9, 2024
156 of 164 checks passed
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.

4 participants