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

Verify node_id in client auth #3308

Merged
merged 332 commits into from
May 6, 2024
Merged

Verify node_id in client auth #3308

merged 332 commits into from
May 6, 2024

Conversation

danielnugraha
Copy link
Contributor

Issue

Description

There is no verification of the assigned node_id for a particular public_key, and assigned node_id can't be reused after a client dies.

Related issues/PRs

Proposal

Explanation

  1. Add verification of node_id in messages sent.
  2. Allow restart from clients and assign previous node_id.
  3. Add tests to ensure the behaviour stated above.

Checklist

  • Implement proposed change
  • Write tests
  • Update documentation
  • Update the changelog entry below
  • Make CI checks pass
  • Ping maintainers on Slack (channel #contributions)

Changelog entry

Any other comments?

Copy link
Member

@danieljanes danieljanes left a comment

Choose a reason for hiding this comment

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

We need additional tests in state_test to cover all additional scenarios

@danielnugraha
Copy link
Contributor Author

We need additional tests in state_test to cover all additional scenarios

Added.


# Handle RPC here instead of passing to default method_handler
if node_id is not None:
# State has lock already this execution is serialized
Copy link
Member

Choose a reason for hiding this comment

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

This comment isn't true any more

@danieljanes danieljanes enabled auto-merge (squash) May 6, 2024 08:41
@danieljanes danieljanes merged commit fab2a52 into main May 6, 2024
28 checks passed
@danieljanes danieljanes deleted the add-verify-nodeid branch May 6, 2024 08:43
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.

2 participants