feat(network): add support for Cilium WireGuard Strict Mode (Zero-Trust)#12869
feat(network): add support for Cilium WireGuard Strict Mode (Zero-Trust)#12869aveljkovic wants to merge 1 commit intokubernetes-sigs:masterfrom
Conversation
Signed-off-by: Aleksandar Veljkovic <veljkovic.tech@gmail.com>
|
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
|
|
Welcome @aveljkovic! |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: aveljkovic The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @aveljkovic. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Why adding all this code for three vars? |
Description
This PR implements first-class support for Cilium WireGuard Strict Mode, enabling transparent "Zero-Trust" networking. When enabled, this feature encrypts ALL traffic (pod-to-pod and node-to-node) at the kernel level using WireGuard, blocking any unencrypted traffic.
This addresses the need for high-security, compliant cluster deployments directly via Kubespray inventory variables.
Changes
roles/network_plugin/cilium/defaults/main.yml): Addedcilium_encryption_strict_mode(default:false) to ensure backward compatibility.templates/values.yaml.j2): Updated logic to automatically configureencryption.strictModeandencryption.nodeEncryptionwhen the variable is enabled.roles/network_plugin/cilium/files/verify-encryption.sh, a helper script to audit the encryption status post-deployment.docs/CNI/cilium.mdwith a guide on enabling Strict Mode and verifying zero-trust status.How to Test
Exec into a Cilium pod and check for the WireGuard interface:
Checklist
Related Issue
(None)