Pin the TLS version and ciphers
Restrict mesh connections to TLS 1.2 and one ECDSA cipher suite. Both peers need compatible certificates. The cipher list does not control TLS 1.3 suites.
Restrict mesh connections to TLS 1.2 and one ECDSA cipher suite. Both peers need compatible certificates. The cipher list does not control TLS 1.3 suites.
apiVersion: kuma.io/v1alpha1
kind: MeshTLS
metadata:
name: set-version-and-ciphers
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Mesh
rules:
- default:
tlsVersion:
min: TLS12
max: TLS12
tlsCiphers:
- ECDHE-ECDSA-AES256-GCM-SHA384type: MeshTLS
name: set-version-and-ciphers
mesh: default
spec:
targetRef:
kind: Mesh
rules:
- default:
tlsVersion:
min: TLS12
max: TLS12
tlsCiphers:
- ECDHE-ECDSA-AES256-GCM-SHA384Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_tls" "set_version_and_ciphers" {
provider = konnect-beta
type = "MeshTLS"
name = "set-version-and-ciphers"
spec = {
target_ref = {
kind = "Mesh"
}
rules = [
{
default = {
tls_version = {
min = "TLS12"
max = "TLS12"
}
tls_ciphers = [
"ECDHE-ECDSA-AES256-GCM-SHA384"
]
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}