TLS Configuration in RabbitMQ for Xray Helm Chart
Enable RabbitMQ TLS in Xray Helm chart (v3.78.10+) with autogenerated or custom certificates via values.yaml.
This feature requires Xray version 3.78.10 or later.
-
Set
rabbitmq.auth.tls.enabledtotruein thevalues.yamlfile.rabbitmq: auth: tls: enabled: true -
Choose whether RabbitMQ generates certs or you supply your own.
-
Set
rabbitmq.auth.tls.autogeneratedtotruein thevalues.yamlfile so that RabbitMQ generates the certs.rabbitmq: auth: tls: enabled: true autogenerated: true -
Set
rabbitmq.auth.tls.autogeneratedtofalsein thevalues.yamlfile to use your own certs.rabbitmq: auth: tls: enabled: true autogenerated: false
-
-
To use your own certs, pass them either as a Kubernetes secret or through the
values.yamlfile.Pass Certs as a Kubernetes Secret
To pass your certs as a Kubernetes secret, set
rabbitmq.auth.tls.existingSecretwith the secret name.rabbitmq: auth: tls: enabled: true autogenerated: false existingSecret: <secret name>Pass Certs in the
values.yamlfileTo pass your certs in the
values.yamlfile, set the following values.- CA certificate information in
rabbitmq.auth.tls.caCertificate - Server certificate information in
rabbitmq.auth.tls.serverCertificate - Server RSA private key information in
rabbitmq.auth.tls.serverKey
rabbitmq: auth: tls: enabled: true autogenerated: false caCertificate: |- -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- serverCertificate: |- -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- serverKey: |- -----BEGIN RSA PRIVATE KEY----- ... -----END RSA PRIVATE KEY----- - CA certificate information in
-
Run the following command to apply the
values.yamlin the Xray installation.helm upgrade --install xray -f values.yaml --namespace xray jfrog/xrayYou can also run a fresh Xray installation with this updated
values.yamlalong with the other requirements in Xray Single Node Helm Installation.
Disable TLS in RabbitMQ for Xray in Xray Helm Chart
To disable TLS in RabbitMQ, set rabbitmq.auth.tls.enabled to false in the values.yaml file and run the following command.
helm upgrade --install xray -f values.yaml --namespace xray jfrog/xrayUpdated 24 days ago
