Skip to content

Conversation

@ck319
Copy link
Contributor

@ck319 ck319 commented Dec 29, 2022

Reason for Change:

This fixes an issue where we were not throwing an error for CIDRs whose IPs were not 0.0.0.0 and ended with /0 during translation. Any CIDR with [ip]/0 is invalid unless IP is 0.0.0.0.

Issue Fixed:

Requirements:

Notes:
Add check for invalid /0 CIDRs

@ck319 ck319 requested a review from a team as a code owner December 29, 2022 19:19
@ck319 ck319 requested review from huntergregory and removed request for a team December 29, 2022 19:19
@ck319 ck319 added the npm Related to NPM. label Dec 29, 2022
Copy link
Contributor

@huntergregory huntergregory left a comment

Choose a reason for hiding this comment

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

added a comment about the UT. Could you also add a short description of the current issue and how your PR fixes it?

ipblock: "2345:0425:2CA1:0000:0000:0567:5673:23b5 nomatch",
want: false,
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

not sure if there's a test for valid /0 yet

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

@huntergregory
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ck319 ck319 enabled auto-merge (squash) February 6, 2023 20:26
auto-merge was automatically disabled February 8, 2023 17:34

Merge queue setting changed

@ck319 ck319 enabled auto-merge (squash) February 22, 2023 23:16
@vakalapa vakalapa disabled auto-merge February 24, 2023 21:07
@vakalapa vakalapa enabled auto-merge (squash) February 24, 2023 21:07
@vakalapa vakalapa disabled auto-merge March 8, 2023 20:47
@vakalapa vakalapa merged commit d7e4f6c into master Mar 8, 2023
@vakalapa vakalapa deleted the ckovacs_invalidcidr branch March 8, 2023 20:50
rjdenney pushed a commit that referenced this pull request Mar 13, 2023
* add check for invalid /0 cidr

* added UT for valid cidr

---------

Co-authored-by: Hunter Gregory <42728408+huntergregory@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Related to NPM.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants