Skip to content

Conversation

@rejain456
Copy link
Contributor

Reason for Change:

As part of adding default deny so pods can't communicate with one another when network policies are not present, this pr is part 3 which updates the cni code, retrieving the default deny acl from cns and creating HNS endpoints of the ACL's for the pods

Issue Fixed:

Requirements:

Notes:

@rejain456 rejain456 requested review from a team as code owners December 20, 2024 23:58
@rejain456 rejain456 requested a review from a team as a code owner December 24, 2024 02:23
@rejain456 rejain456 changed the title [NPM Lite] Default Deny CNI Changes [NPM Lite] Support Default Deny Network Policies Through CNS Jan 10, 2025
@tamilmani1989 tamilmani1989 changed the title [NPM Lite] Support Default Deny Network Policies Through CNS [NPM Lite] Support Network Policies Through CNS Jan 10, 2025
@paulyufan2
Copy link
Contributor

can we add comment to the description that this change is only applied on windows

tamilmani1989
tamilmani1989 previously approved these changes Jan 10, 2025
@paulyufan2 paulyufan2 added the cni Related to CNI. label Jan 10, 2025
paulyufan2
paulyufan2 previously approved these changes Jan 10, 2025
@paulyufan2
Copy link
Contributor

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@QxBytes QxBytes left a comment

Choose a reason for hiding this comment

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

Could you also add a test in cni/network/network_windows_test.go > TestPluginWindowsAdd (modify either test) such that the returned cns response includes a different endpoint policy to be returned for each response and then confirm that it propagates to the network and endpoint policies fields in the respective wanted EndpointInfo structs properly?

@rejain456 rejain456 force-pushed the jainriya/npmliteCNIchange branch from b799db1 to 19c40d7 Compare January 15, 2025 22:03
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

tamilmani1989
tamilmani1989 previously approved these changes Jan 17, 2025
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

QxBytes
QxBytes previously approved these changes Jan 17, 2025
@rejain456
Copy link
Contributor Author

/azp run Azure Container Networking PR

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@rejain456
Copy link
Contributor Author

Confirmed with @chandanAggarwal, to merge this pr in

@thatmattlong thatmattlong added this pull request to the merge queue Feb 1, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 1, 2025
@thatmattlong thatmattlong added this pull request to the merge queue Feb 3, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Feb 3, 2025
@thatmattlong thatmattlong added this pull request to the merge queue Feb 3, 2025
Merged via the queue into master with commit a8f22ee Feb 4, 2025
34 checks passed
@thatmattlong thatmattlong deleted the jainriya/npmliteCNIchange branch February 4, 2025 04:39
sivakami-projects pushed a commit that referenced this pull request Oct 23, 2025
* added npm lite default deny cni changes

* added changes for unit tests

* fixed test message

* moved default deny acl under interfaceinfo

* reverted a change in network

* removed a logging line

* added a new line

* updated unit test

* moved cni kv pair to common folder

* updated cni code to match network container contract update

* updated unit test case

* updated unit test to add cns not sending default deny  acl to cni

* removed an infra nic check

* removed an infra nic check

* removed for loop

* removed an extra spacing

* update from pr comment

* updated unit test

* updated unit tests

* fixed golint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cni Related to CNI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants