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

Pass sidechain magic in requests #186

Merged

Conversation

cthulhu-rider
Copy link
Contributor

@cthulhu-rider cthulhu-rider added the enhancement Improving existing functionality label Jan 10, 2022
@cthulhu-rider cthulhu-rider added this to the v2.12.0 milestone Jan 10, 2022
@cthulhu-rider cthulhu-rider self-assigned this Jan 10, 2022
Leonard Lyubich added 2 commits January 10, 2022 16:04
To prevent theoretical cross-network replay attack, we need to have
network magic in NeoFS requests.

Add `magic_number` numeric field to `session.RequestMetaHeader`
message.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
After the recent update of NeoFS V2 protocol all requests must carry
correct network magic.

Add `WRONG_MAGIC_NUMBER` code to `CommonFail` section.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
@cthulhu-rider cthulhu-rider force-pushed the feature/82-request-magic branch from 2376cc1 to f940131 Compare January 10, 2022 13:06
Copy link

@realloc realloc left a comment

Choose a reason for hiding this comment

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

🪄 LGTM

@cthulhu-rider cthulhu-rider merged commit d9d71cc into nspcc-dev:master Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sidechain Magic number should be used in NeoFS requests
2 participants