Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbitmq scaler unsafeSsl does not work for amqps #6461

Open
alita-moore opened this issue Jan 2, 2025 · 0 comments
Open

rabbitmq scaler unsafeSsl does not work for amqps #6461

alita-moore opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@alita-moore
Copy link

Report

If you pass in a amqps host to the rabbitmq scalar it will require that the certificate is signed, however if you pass in https instead it works as expected.

Expected Behavior

tls is enabled without validation

Actual Behavior

Warning KEDAScalerFailed 5m49s (x14 over 66m) keda-operator error establishing rabbitmq connection: tls: failed to verify certificate: x509: certificate signed by unknown authority

Steps to Reproduce the Problem

  1. install keda and rabbitmq
  2. setup a ScaledObject with a config similar to the following
apiVersion: keda.sh/v1alpha1
kind: ScaledObject
metadata:
  name: queue-consumers-scaledobject
  namespace: ml-serving
spec:
  scaleTargetRef:
    name: queue-consumers
  pollingInterval: 5
  cooldownPeriod: 60
  maxReplicaCount: 10
  minReplicaCount: 1
  triggers:
    - type: rabbitmq
      metadata:
        queueName: prod.tasks.image.parsing
        value: "5"
        mode: QueueLength
        activationValue: "1"
        hostFromEnv: RABBITMQ_URL
        protocol: auto
        tls: "enable"
        unsafeSsl: "true"
      authenticationRef:
        name: rabbitmq-trigger-auth
  1. start the deployment / scaler
  2. notice that it only works if RABBITMQ_URL starts with https instead of amqps

Logs from KEDA operator

 Warning  KEDAScalerFailed         5m49s (x14 over 66m)  keda-operator  error establishing rabbitmq connection: tls: failed to verify certificate: x509: certificate signed by unknown authority

KEDA Version

None

Kubernetes Version

Other

Platform

Other

Scaler Details

rabbitmq

Anything else?

No response

@alita-moore alita-moore added the bug Something isn't working label Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: To Triage
Development

No branches or pull requests

1 participant