Skip to content

Commit

Permalink
workflows: Cover IPsec encrypted overlay mode in end-to-end tests
Browse files Browse the repository at this point in the history
Encrypted overlay was introduced in d669341 ("bpf: encrypt
overlay traffic"). As the name indicates, with that feature, Cilium will
also encrypt the overlay itself (i.e., the VXLAN headers). The present
commit covers this configuration in the two IPsec workflows.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
  • Loading branch information
pchaigno committed Mar 27, 2024
1 parent 377df9b commit 1c3c8a0
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/actions/cilium-config/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ inputs:
encryption-node:
description: 'Enable node-to-node encryption (WireGuard only)'
default: false
encryption-overlay:
description: 'Encrypt the overlay itself (IPsec only)'
default: false
egress-gateway:
description: 'Enable egress gateway'
default: false
Expand Down Expand Up @@ -138,6 +141,9 @@ runs:
if [ "${{ inputs.encryption-node }}" != "" ]; then
ENCRYPT+=" --helm-set=encryption.nodeEncryption=${{ inputs.encryption-node }}"
fi
if [ "${{ inputs.encryption-overlay }}" != "" ]; then
ENCRYPT+=" --helm-set=encryption.ipsec.encryptedOverlay=${{ inputs.encryption-overlay }}"
fi
fi
HOST_FW=""
Expand Down
15 changes: 15 additions & 0 deletions .github/workflows/conformance-ipsec-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,20 @@ jobs:
key-type-one: '+'
key-type-two: '+'

- name: '7'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: '5.15-20240305.092417'
kube-proxy: 'iptables'
kpr: 'false'
tunnel: 'vxlan'
encryption: 'ipsec'
encryption-node: 'false'
encryption-overlay: 'true'
key-one: 'gcm(aes)'
key-two: 'gcm(aes)'
key-type-one: '+'
key-type-two: '+'

timeout-minutes: 75
steps:
- name: Checkout context ref (trusted)
Expand Down Expand Up @@ -194,6 +208,7 @@ jobs:
lb-acceleration: ${{ matrix.lb-acceleration }}
encryption: ${{ matrix.encryption }}
encryption-node: ${{ matrix.encryption-node }}
encryption-overlay: ${{ matrix.encryption-overlay }}
egress-gateway: ${{ matrix.egress-gateway }}
host-fw: ${{ matrix.host-fw }}
ingress-controller: ${{ matrix.ingress-controller }}
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/tests-ipsec-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ jobs:
encryption: 'ipsec'
endpoint-routes: 'true'

- config: '5.15'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: '5.15-20240305.092417'
kube-proxy: 'iptables'
kpr: 'disabled'
tunnel: 'vxlan'
encryption: 'ipsec'
encryption-overlay: 'true'
endpoint-routes: 'false'

- config: '6.1'
# renovate: datasource=docker depName=quay.io/lvh-images/kind
kernel: '6.1-20240305.092417'
Expand Down Expand Up @@ -144,6 +154,14 @@ jobs:
mode: 'patch'
name: '8'

- config: '5.15'
mode: 'minor'
name: '9'

- config: '5.15'
mode: 'patch'
name: '10'

timeout-minutes: 70
steps:
- name: Checkout context ref (trusted)
Expand Down Expand Up @@ -231,6 +249,7 @@ jobs:
lb-acceleration: ${{ matrix.lb-acceleration }}
encryption: ${{ matrix.encryption }}
encryption-node: ${{ matrix.encryption-node }}
encryption-overlay: ${{ matrix.encryption-overlay }}
egress-gateway: ${{ matrix.egress-gateway }}
host-fw: ${{ matrix.host-fw }}
mutual-auth: false
Expand All @@ -251,6 +270,7 @@ jobs:
lb-acceleration: ${{ matrix.lb-acceleration }}
encryption: ${{ matrix.encryption }}
encryption-node: ${{ matrix.encryption-node }}
encryption-overlay: ${{ matrix.encryption-overlay }}
egress-gateway: ${{ matrix.egress-gateway }}
host-fw: ${{ matrix.host-fw }}
mutual-auth: false
Expand Down

0 comments on commit 1c3c8a0

Please sign in to comment.