Skip to content

Conversation

ldelossa
Copy link
Contributor

The node-to-node encryption tests do not provide any benefits for IPsec since IPsec does not support this.
Currently, the node-to-node encryption tests run for IPsec.

I did some digging and chatting with folks and its a mixed bag one whether this was intentional or not.
As we begin to move to VinE traffic with IPsec it simplifies things to no longer run node-to-node for IPsec, reducing the configuration matrix necessary to perform the correct tests.

The node-to-node tests still run when no encryption mode is set at all.
This acts as a sanity check to ensure the TCPDump filters correctly capture expected traffic.

Isolate node-to-node encryption tests to wireguard

Add a Requirement which matches if a particular mode for a feature is
NOT a provided string.

This is useful when you want a test to run for all modes of a feature
accept a subset.

Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
Update the constraints over running the node-to-node encryption tests.
Now, these node-to-node tests will run only when Wireguard is enabled or
when no encryption is set at all.

The latter reason is in place to ensure we run sanity checks on the
TCPDump filters used when encryption is enabled. This ensures we haven't
broken leak detection as a whole.

Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
@maintainer-s-little-helper maintainer-s-little-helper bot added the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Dec 12, 2024
@github-actions github-actions bot added cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary labels Dec 12, 2024
@ldelossa ldelossa requested a review from gandro December 12, 2024 20:04
@ldelossa
Copy link
Contributor Author

/test

@ldelossa ldelossa marked this pull request as ready for review December 13, 2024 01:58
@ldelossa ldelossa requested review from a team as code owners December 13, 2024 01:58
@ldelossa ldelossa requested a review from derailed December 13, 2024 01:58
@ldelossa ldelossa added the release-note/misc This PR makes changes that have no direct user impact. label Dec 13, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot removed the dont-merge/needs-release-note-label The author needs to describe the release impact of these changes. label Dec 13, 2024
@ldelossa ldelossa added area/CI Continuous Integration testing issue or flake area/encryption Impacts encryption support such as IPSec, WireGuard, or kTLS. labels Dec 13, 2024
@ldelossa
Copy link
Contributor Author

/test

Copy link
Member

@jschwinger233 jschwinger233 left a comment

Choose a reason for hiding this comment

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

Alternatively, we can use WithCondition() to implement complicated boolean operations:
https://github.com/cilium/cilium/blob/v1.17.0-pre.3/cilium-cli/connectivity/builder/echo_ingress_l7.go#L47

@ldelossa
Copy link
Contributor Author

@jschwinger233 I see! Maybe it's nice to have a short hand for "NOT". This was originally suggested. I don't feel too strongly.

@ldelossa ldelossa changed the title Ldelossa/isolate wireguard n2n tests [ci] isolate wireguard n2n tests Dec 13, 2024
Copy link
Member

@gandro gandro left a comment

Choose a reason for hiding this comment

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

Thanks for taking care of this!

@pchaigno pchaigno enabled auto-merge December 16, 2024 11:37
Copy link
Contributor

@derailed derailed left a comment

Choose a reason for hiding this comment

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

@ldelossa Nice work!

@pchaigno pchaigno added this pull request to the merge queue Dec 16, 2024
@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 16, 2024
Merged via the queue into main with commit 767f50b Dec 16, 2024
220 checks passed
@pchaigno pchaigno deleted the ldelossa/isolate-wireguard-n2n-tests branch December 16, 2024 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake area/encryption Impacts encryption support such as IPSec, WireGuard, or kTLS. cilium-cli This PR contains changes related with cilium-cli cilium-cli-exclusive This PR only impacts cilium-cli binary ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants