Skip to content

Persist invalid SSZ objects only if enabled - #3797

Merged
wemeetagain merged 2 commits into
unstablefrom
dapplion/persist-ssz-if-enabled
May 27, 2022
Merged

Persist invalid SSZ objects only if enabled#3797
wemeetagain merged 2 commits into
unstablefrom
dapplion/persist-ssz-if-enabled

Conversation

@dapplion

@dapplion dapplion commented Feb 27, 2022

Copy link
Copy Markdown
Contributor

Motivation

Currently the the beacon node persists to disk invalid SSZ objects. This functionality is absolutely critical to debug consensus bugs and issues with gossip validation. However, this feature should not be enabled by default in production servers. Only us or debuggers should use this feature.

Description

  • Persist invalid SSZ objects only if enabled
  • Modularize a bit more to abstract naming and logging

Closes #4069
part of #4002

@dapplion
dapplion marked this pull request as draft February 27, 2022 04:08
@dapplion dapplion added prio-high Resolve issues as soon as possible. scope-security Issues that fix security issues: DOS, key leak, CVEs. labels May 26, 2022
@dapplion

Copy link
Copy Markdown
Contributor Author

Note: without this PR, the persist invalid SSZ objects is a DOS vector as it will fill the disk with junk until running out of space

@dapplion
dapplion changed the base branch from master to unstable May 27, 2022 04:35
@dapplion
dapplion dismissed a stale review May 27, 2022 04:35

The base branch was changed.

@twoeths
twoeths force-pushed the dapplion/persist-ssz-if-enabled branch from 66473e2 to a607841 Compare May 27, 2022 04:52
@twoeths
twoeths marked this pull request as ready for review May 27, 2022 06:39
@twoeths
twoeths requested a review from a team as a code owner May 27, 2022 06:39
@wemeetagain
wemeetagain merged commit dfa7b98 into unstable May 27, 2022
@wemeetagain
wemeetagain deleted the dapplion/persist-ssz-if-enabled branch May 27, 2022 14:26
@wemeetagain
wemeetagain restored the dapplion/persist-ssz-if-enabled branch May 27, 2022 14:36
@dapplion
dapplion deleted the dapplion/persist-ssz-if-enabled branch May 28, 2022 07:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

prio-high Resolve issues as soon as possible. scope-security Issues that fix security issues: DOS, key leak, CVEs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop using file system sync api

4 participants