bitnami / charts

Bitnami Helm Charts
https://bitnami.com
Other
9.03k stars 9.22k forks source link

Ingress does not handle encoded characters (%2F) correctly for RabbitMQ management console in paths like (/queues/%2F/<any-queue>)and (/extensions/%2F/<any-extension>) #29587

Closed SaraAbdelhafeez closed 1 month ago

SaraAbdelhafeez commented 1 month ago

Name and Version

Chart Name: RabbitMQ Chart Version: 11.5.0 Helm Version: v3.15.2 Kubernetes Version: v1.27.13

What architecture are you using?

amd64

What steps will reproduce the bug?

  1. Deploy the RabbitMQ Helm chart with the ingress configuration for path /rmq.
  2. Access the RabbitMQ management console via the ingress at /rmq.
  3. Navigate to the Queues tab and click on any specific queue. This generates a URL containing an encoded forward slash (%2F).
  4. The browser returns a 404 error for these requests.
  5. Alternatively, go to the Extensions tab and try to access any extension; this also results in a 404 error.

Are you using any custom parameters or values?

the following ingress values are configured:

ingress:
  enabled: true
  path: /rmq(/.*)
  pathType: ImplementationSpecific
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/proxy-body-size: 500m
    nginx.ingress.kubernetes.io/rewrite-target: /$1
  extraRules:
    - http:
        paths:
        - path: /rmq/(.*)
          pathType: Prefix
          backend:
            service:
              name: rabbitmq
              port:
                number: 15672

What is the expected behavior?

The RabbitMQ management console should correctly handle URLs containing encoded characters (like %2F) in the paths under the Queues tab and Extensions tab when accessed via the ingress. No 404 error should occur when accessing these tabs.

What do you see instead?

When trying to access any queue under the Queues tab or any extension under the Extensions tab, a 404 error is returned. The URLs contain encoded forward slashes (%2F), which seem to be misinterpreted by the ingress, resulting in a 404 error. This issue does not occur when port-forwarding the RabbitMQ service directly (i.e., using kubectl port-forward on port 15672). image-20240820-082750

Additional information

carrodher commented 1 month ago

Thank you for bringing this issue to our attention. We appreciate your involvement! If you're interested in contributing a solution, we welcome you to create a pull request. The Bitnami team is excited to review your submission and offer feedback. You can find the contributing guidelines here.

Your contribution will greatly benefit the community. Feel free to reach out if you have any questions or need assistance.

github-actions[bot] commented 1 month ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 1 month ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.