You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Share TLS config with management, amqp 1.0, (web) mqtt and (web) stomp plugins (#451)
* Share TLS config with the management, amqp 1.0, (web) mqtt and (web) stomp plugins (#451)
This commit:
- Supports TLS for management
- Supports TLS for rabbtmq_(web)_mqtt and rabbitmq_(web)_stomp
- Sets hardcoded path for CA certificate to 'ca.crt'
- Adds system tests to verify remote access via HTTPS to the MGMT dashboard, mqtt, and stomp plugins
Co-authored-by: Alex Blease <[email protected]>
Co-authored-by: Chunyi Lyu <[email protected]>
fmt.Sprintf("The TLS secret %v in namespace %v must have the fields tls.crt and tls.key", secretName, rabbitmqCluster.Namespace))
31
-
32
-
return ctrl.Result{}, errors.NewBadRequest("The TLS secret must have the fields tls.crt and tls.key")
30
+
err:=errors.NewBadRequest(fmt.Sprintf("TLS secret %s in namespace %s does not have the fields tls.crt and tls.key", secretName, rabbitmqCluster.Namespace))
fmt.Sprintf("The TLS secret %v in namespace %v must have the field %v", rabbitmqCluster.Spec.TLS.CaSecretName, rabbitmqCluster.Namespace, rabbitmqCluster.Spec.TLS.CaCertName))
54
51
55
-
return ctrl.Result{}, errors.NewBadRequest(fmt.Sprintf("The TLS secret must have the field %s", rabbitmqCluster.Spec.TLS.CaCertName))
52
+
// Mutual TLS: verify that CA certificate is present in secret
err:=errors.NewBadRequest(fmt.Sprintf("TLS secret %s in namespace %s does not have the field ca.crt", rabbitmqCluster.Spec.TLS.CaSecretName, rabbitmqCluster.Namespace))
It("fails to deploy the RabbitmqCluster", func() {
166
-
verifyError(ctx, cluster, fmt.Sprintf("The TLS secret rabbitmq-tls-malformed in namespace %s must have the fields tls.crt and tls.key", defaultNamespace))
174
+
verifyTLSErrorEvents(ctx, cluster, fmt.Sprintf("TLS secret rabbitmq-tls-malformed in namespace %s does not have the fields tls.crt and tls.key", defaultNamespace))
0 commit comments