Duncan
09/06/2023, 10:32 AMtls.crt key, but I'm either including the wrong data or its failing as I'm not providing a key.
Can I continue to use LetsEncrypt whilst enabling TLS for dispatch? What parts of the available info from them should I put where to get Dispatch working with TLS?
Thanks for any advice anyone has the time to offer!ecordell
09/06/2023, 1:27 PMapiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: dispatch-selfsigned-issuer
spec:
selfSigned: {}
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: dispatch-ca
namespace: spicedb
spec:
isCA: true
commonName: dev.spicedb # Change this: the word before the dot is the name of the cluster defined in the SpiceDBCluster object
dnsNames:
- dev.spicedb # Change this
secretName: dispatch-root-secret
privateKey:
algorithm: ECDSA
size: 256
issuerRef:
name: dispatch-selfsigned-issuer
kind: ClusterIssuer
group: cert-manager.io
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: my-ca-issuer
namespace: cert-manager
spec:
ca:
secretName: dispatch-root-secret
And then you can use it for dispatch:
apiVersion: authzed.com/v1alpha1
kind: SpiceDBCluster
metadata:
name: dev
spec:
config:
datastoreEngine: postgres
replicas: 2
tlsSecretName: spicedb-le-tls-demo
dispatchUpstreamCASecretName: dispatch-root-secret
dispatchClusterTLSCertPath: "/etc/dispatch/tls.crt"
dispatchClusterTLSKeyPath: "/etc/dispatch/tls.key"
secretName: dev-spicedb-config
patches:
- kind: Deployment
patch:
spec:
template:
spec:
containers:
- name: spicedb
volumeMounts:
- name: custom-dispatch-tls
readOnly: true
mountPath: "/etc/dispatch"
volumes:
- name: custom-dispatch-tls
secret:
secretName: dispatch-root-secretDuncan
09/06/2023, 1:29 PMDuncan
09/06/2023, 1:35 PMecordell
09/06/2023, 1:36 PMecordell
09/06/2023, 1:36 PMecordell
09/06/2023, 1:36 PMDuncan
09/06/2023, 1:37 PMecordell
09/06/2023, 1:40 PMDuncan
09/07/2023, 8:52 AM