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

chore: remove ip address scope when checking if an ip address is whitelisted #1116

Merged
merged 3 commits into from
Feb 6, 2023

Conversation

derklaro
Copy link
Member

@derklaro derklaro commented Feb 6, 2023

Motivation

At the moment the ip address scope of ipv6 addresses is required to be appended to the a whitelisted address, as the scope is added to the ip by default. While we're already removing the address scopes during the initial setup, we're not removing them when actually checking, leading to the issue that people need to find out and append the scope to addresses in the whitelist.

Modification

Ensure that we strip the scope from addresses in the whitelist (to not break existing setups) and remove the scope from client addresses when checking.

Result

The address scope is no longer taken into account when checking whether a client is allowed to connect to the node.

Other context

Fixes #965

@derklaro derklaro added v: 4.X This pull should be included in the 4.0 release in: node An issue/pull request releated to the node module code t: improvement The pull request improves existing code labels Feb 6, 2023
@derklaro derklaro added this to the 4.0.0-RC8 milestone Feb 6, 2023
@derklaro derklaro requested a review from 0utplay February 6, 2023 14:03
@derklaro derklaro self-assigned this Feb 6, 2023
@derklaro derklaro changed the title Whitelist ignore network if chore: remove ip address scope when checking if an ip address is whitelisted Feb 6, 2023
@0utplay 0utplay merged commit ff60235 into nightly Feb 6, 2023
@0utplay 0utplay deleted the whitelist-ignore-network-if branch February 6, 2023 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: node An issue/pull request releated to the node module code t: improvement The pull request improves existing code v: 4.X This pull should be included in the 4.0 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ignore IPv6 Interface in IPWhitelist check
2 participants