Issue from a CA you supply
Point the bundled provider at an intermediate CA certificate and key held as secrets, and cap the lifetime of issued leaf certificates. A self-signed root CA also needs insecureAllowSelfSigned: true.
Configuration
apiVersion: kuma.io/v1alpha1
kind: MeshIdentity
metadata:
name: corporate-ca
namespace: kong-mesh-system
labels:
kuma.io/mesh: default
spec:
selector:
dataplane: {}
provider:
type: Bundled
bundled:
ca:
certificate:
type: Secret
secretRef:
kind: Secret
name: mesh-ca-cert
privateKey:
type: Secret
secretRef:
kind: Secret
name: mesh-ca-key
certificateParameters:
expiry: 24hCopied!
type: MeshIdentity
name: corporate-ca
mesh: default
spec:
selector:
dataplane: {}
provider:
type: Bundled
bundled:
ca:
certificate:
type: Secret
secretRef:
kind: Secret
name: mesh-ca-cert
privateKey:
type: Secret
secretRef:
kind: Secret
name: mesh-ca-key
certificateParameters:
expiry: 24hCopied!
Adjust konnect_mesh_control_plane.my_meshcontrolplane.id and konnect_mesh.my_mesh.name according to your current configuration.
resource "konnect_mesh_identity" "corporate_ca" {
provider = konnect-beta
type = "MeshIdentity"
name = "corporate-ca"
spec = {
selector = {
dataplane = {
}
}
provider = {
type = "Bundled"
bundled = {
ca = {
certificate = {
type = "Secret"
secret_ref = {
kind = "Secret"
name = "mesh-ca-cert"
}
}
private_key = {
type = "Secret"
secret_ref = {
kind = "Secret"
name = "mesh-ca-key"
}
}
}
certificate_parameters = {
expiry = "24h"
}
}
}
}
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!