-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Cilium CLI IPsec fixes #37018
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
Cilium CLI IPsec fixes #37018
Conversation
/test |
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.
I think the "+4 for tunnel routing" is only expected for 1.17+. Maybe we should do some versioning control?
if ciliumVersion > 1.17 {
// new expected keys
} else {
// old algorithm
}
Good catch!
So, does it mean that we should have something like this:
? |
Yes, thank you |
ed4c75e
to
671cca6
Compare
Hey @jschwinger233, I've added version check but looks like the algorithm is incorrect. I have local 4 node kind cluster with enabled IPsec and VXLAN.
|
Viktor: I believe you are right, I didn't think over this thoroughly. The correct algorithm for 1.17 should be:
in total, it's Would you like to fix the workflow in a separate PR? |
@jschwinger233 one clarification: |
VinE is Vxlan in ESP: #36345 |
64c4fe0
to
910682b
Compare
0850840
to
ec320f1
Compare
@jschwinger233 Paul and I agreed to support IPsec key status and rotation starting from Cilium v1.18. |
/test |
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.
Couple questions, but it looks good otherwise 🚀
The commit removes `key-per-node` parameter as newer Cilium versions support only IPsec key per node. Signed-off-by: viktor-kurchenko <viktor.kurchenko@isovalent.com>
42e662c
to
0207600
Compare
The commit fixes ipsecExpectedKeyCount function and restricts the functionality to the Cilium version 1.18 and higher. Signed-off-by: viktor-kurchenko <viktor.kurchenko@isovalent.com>
0207600
to
cc8b463
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.
Looks good to me. Thanks Viktor! 🙏
/test |
Cilium CLI IPsec fixes:
expectedIPsecKeyCount
function fixed according to the rules from CI.key-per-node
param visible to users