Set a minimum TLS version
Refuse anything below TLS 1.2 while leaving the upper bound to Envoy, by setting min and leaving max as TLSAuto.
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshTLS
metadata:
name: tls12-floor
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
targetRef:
kind: Mesh
rules:
- default:
tlsVersion:
min: TLS12
max: TLSAutoCopied!
type: MeshTLS
name: tls12-floor
mesh: default
spec:
targetRef:
kind: Mesh
rules:
- default:
tlsVersion:
min: TLS12
max: TLSAutoCopied!
Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_tls" "tls12_floor" {
provider = konnect-beta
type = "MeshTLS"
name = "tls12-floor"
spec = {
target_ref = {
kind = "Mesh"
}
rules = [
{
default = {
tls_version = {
min = "TLS12"
max = "TLSAuto"
}
}
}
]
}
labels = {
"kuma.io/mesh" = konnect_mesh.my_mesh.name
}
cp_id = konnect_mesh_control_plane.my_meshcontrolplane.id
mesh = konnect_mesh.my_mesh.name
}
Copied!