docs: pod-to-pod encryption decision record (WireGuard vs mutual auth, measured) #85

Open
sirius wants to merge 1 commit from wt/t_f9e50e58 into master
Owner

Spike output from card t_f9e50e58. No cluster changes - all measurements are read-only probes plus four throwaway pods in a deleted encspike namespace.

  • Cilium 1.20.1: encryption.type=wireguard is GA/stable in the installed chart; authentication.mutual (SPIFFE) is beta and deprecated as of v1.20 (removal planned v1.21, cilium#47132); encryption.type=ztunnel is beta.
  • Same-node pod-to-pod is plaintext on the veth (captured GET /secret.txt plus the body); 51/67 running pods are on siriussec, and Cilium WG does not encrypt same-node traffic by design.
  • Cross-node pod-to-pod is already encrypted on the LAN wire by wg0 (UDP/51820 opaque), plaintext again at the node.
  • Nesting cost measured: 895 Mb/s (host wg0 only) to 809 Mb/s (pod WG nested inside wg0), about 7%; Pi stays at 1-5% CPU.
  • Pod MTU would drop 1420 to 1325 (WireguardOverhead=95 in v1.20.1 pkg/mtu); a wrongly sized inner MTU halves throughput through fragmentation (536 Mb/s measured) and the amd64 dind runner hardcodes --mtu=1420.
  • Rollback = one-commit revert, Flux annotate, rollout status ds/cilium (1-3 min expected, not measured). UDP/51871 is not admitted on the Pi or linode firewalls yet.

Verdict: no-go as a fix for the stated same-node exposure; conditional go with the staged plan if a compliance requirement demands CNI-level pod encryption.

Spike output from card t_f9e50e58. **No cluster changes** - all measurements are read-only probes plus four throwaway pods in a deleted `encspike` namespace. - Cilium 1.20.1: `encryption.type=wireguard` is GA/stable in the installed chart; `authentication.mutual` (SPIFFE) is **beta and deprecated as of v1.20** (removal planned v1.21, cilium#47132); `encryption.type=ztunnel` is beta. - Same-node pod-to-pod is plaintext on the veth (captured `GET /secret.txt` plus the body); 51/67 running pods are on siriussec, and Cilium WG does not encrypt same-node traffic by design. - Cross-node pod-to-pod is already encrypted on the LAN wire by `wg0` (UDP/51820 opaque), plaintext again at the node. - Nesting cost measured: 895 Mb/s (host wg0 only) to 809 Mb/s (pod WG nested inside wg0), about 7%; Pi stays at 1-5% CPU. - Pod MTU would drop 1420 to 1325 (`WireguardOverhead=95` in v1.20.1 `pkg/mtu`); a wrongly sized inner MTU halves throughput through fragmentation (536 Mb/s measured) and the amd64 dind runner hardcodes `--mtu=1420`. - Rollback = one-commit revert, Flux annotate, `rollout status ds/cilium` (1-3 min expected, not measured). UDP/51871 is not admitted on the Pi or linode firewalls yet. **Verdict: no-go as a fix for the stated same-node exposure; conditional go with the staged plan if a compliance requirement demands CNI-level pod encryption.**
Spike, no cluster changes. Measured: same-node pod<->pod plaintext on the
veth; cross-node already encrypted on the wire by wg0 but plaintext at the
node; Cilium 1.20.1 has WG GA and mutual auth beta+deprecated (removal
planned v1.21); nested WG costs ~7% of 1 GbE (895 -> 809 Mb/s) and pod MTU
drops 1420 -> 1325. Recommendation: no-go as a fix for same-node exposure;
conditional go with a staged rollout if a compliance case appears.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin wt/t_f9e50e58:wt/t_f9e50e58
git switch wt/t_f9e50e58

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch master
git merge --no-ff wt/t_f9e50e58
git switch wt/t_f9e50e58
git rebase master
git switch master
git merge --ff-only wt/t_f9e50e58
git switch wt/t_f9e50e58
git rebase master
git switch master
git merge --no-ff wt/t_f9e50e58
git switch master
git merge --squash wt/t_f9e50e58
git switch master
git merge --ff-only wt/t_f9e50e58
git switch master
git merge wt/t_f9e50e58
git push origin master
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sirius/homek8s!85
No description provided.