-
Notifications
You must be signed in to change notification settings - Fork 3.4k
ipsec: Improve encrypt flush
command
#28795
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
Conversation
615fff9
to
bc38bf7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @pchaigno. Could you look into your BPF checkpatch failure?
I did and it's a false positive. Checkpatch also isn't a Required CI test (precisely because it has false positive). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
bc38bf7
to
79f973c
Compare
This function will be used from cilium-dbg so we need to expose it from a shared package. We already have such a package for IPsec utility functions in pkg/common/ipsec. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
The cilium-dbg encrypt flush command removes all XFRM states and policies on the node. That will lead to packet drops until connections are reestablished. Traffic will also be sent in plain text between pods. This commit therefore asks for confirmation when running the command, to ensure nobody performs this action by mistake. Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Add
--spi
and--node-id
filters to thecilium-dbg encrypt flush
command. This can be useful to clean leftover, stale XFRM configs during development or sometimes as a quick remediation for certain bugs.