* adds a server cert from the mtls CA for mtls clients * adds gost as a tls offload for non-mtls clients to work around https://github.com/eclipse/mosquitto/issues/1839 * adds wildcard-tls through external secrets and removes template operator version * removes non-working websockets listener * fixes tests to work with mtls and non-mtls
68 lines
1.3 KiB
YAML
68 lines
1.3 KiB
YAML
apiVersion: cert-manager.io/v1
|
|
kind: Issuer
|
|
metadata:
|
|
name: selfsigned-issuer
|
|
namespace: mosquitto
|
|
spec:
|
|
selfSigned: {}
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: mosquitto-ca
|
|
namespace: mosquitto
|
|
spec:
|
|
isCA: true
|
|
commonName: mosquitto mTLS CA
|
|
secretName: mosquitto-mtls-root-ca
|
|
privateKey:
|
|
algorithm: ECDSA
|
|
size: 256
|
|
issuerRef:
|
|
name: selfsigned-issuer
|
|
kind: Issuer
|
|
group: cert-manager.io
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Issuer
|
|
metadata:
|
|
name: mosquitto-mtls-issuer
|
|
namespace: mosquitto
|
|
spec:
|
|
ca:
|
|
secretName: mosquitto-mtls-root-ca
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: mosquitto-mtls-cert
|
|
namespace: mosquitto
|
|
spec:
|
|
commonName: mosquitto
|
|
secretName: mosquitto-mtls-server-cert
|
|
dnsNames:
|
|
- 172.16.17.83
|
|
privateKey:
|
|
algorithm: ECDSA
|
|
size: 256
|
|
issuerRef:
|
|
name: mosquitto-mtls-issuer
|
|
kind: Issuer
|
|
group: cert-manager.io
|
|
---
|
|
apiVersion: cert-manager.io/v1
|
|
kind: Certificate
|
|
metadata:
|
|
name: mosquitto-mtls-write-user
|
|
namespace: mosquitto
|
|
spec:
|
|
commonName: mosquitto-mtls-write-user
|
|
secretName: mosquitto-mtls-write-user
|
|
privateKey:
|
|
algorithm: ECDSA
|
|
size: 256
|
|
issuerRef:
|
|
name: mosquitto-mtls-issuer
|
|
kind: Issuer
|
|
group: cert-manager.io
|