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

ERROR The plain HTTP request was sent to HTTPS port #13880

Closed
1 task done
didlawowo opened this issue Nov 17, 2024 · 5 comments
Closed
1 task done

ERROR The plain HTTP request was sent to HTTPS port #13880

didlawowo opened this issue Nov 17, 2024 · 5 comments
Assignees
Labels
area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale

Comments

@didlawowo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Kong version ($ kong version)

3,7

Current Behavior

I 'm trying to install kong gateway and get ingress controller for manager
when i'm trying to join the dns, it respond with and http request have been send to https service. i think it's maybe not a bug, but i have tried to understand the configuration and i don't found the correct way

error:
400 Bad Request
The plain HTTP request was sent to HTTPS port

Expected Behavior

see the web page for manager

Steps To Reproduce

deploy kong using helm value

Anything else?

running on traefik with rke2

value file from argo

        podAnnotations:
          ad.datadoghq.com/ingress-controller.logs: '[{"source":"kong" }]'

        certificates:
          enabled: true
          clusterIssuer: letsencrypt-cloudflare
          proxy:
            commonName: kong.dc-tech.work
          portal:
            commonName: kong-portal.dc-tech.work
          admin:
            commonName: kong.dc-tech.work
          cluster:
            enabled: false
        autoscaling:
          enabled: true

        portal:
          type: ClusterIP
          enabled: true
          ingress:
            enabled: true
            ingressClassName: kong
            hostname: kong-portal.dc-tech.work

            annotations:
              cert-manager.io/cluster-issuer: letsencrypt-cloudflare
            tls: kong-portal-tls

        manager:
          http:
            enabled: false
          type: ClusterIP
          ingress:
            enabled: true
            ingressClassName: kong
            hostname: kong-manager.dc-tech.work
            annotations:
              konghq.com/protocols: https
              cert-manager.io/cluster-issuer: letsencrypt-cloudflare

        env:
          # admin_gui_url: https://kong-manager.dc-tech.work
          admin_api_url: https://kong-api.dc-tech.work/

        admin:
          enabled: true
          http:
            enabled: true
          tls:
            enabled: false
          type: ClusterIP

          ingress:
            enabled: true
            ingressClassName: kong
            hostname: kong-api.dc-tech.work

            annotations:
              cert-manager.io/cluster-issuer: letsencrypt-cloudflare
            tls: kong-api-tls

        postgresql:
          enabled: true
@xianghai2
Copy link

Hi @randmonkey , could you help take a look into this? thanks.

@xianghai2 xianghai2 added area/kubernetes Issues where Kong is running on top of Kubernetes area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller labels Nov 18, 2024
@chobits
Copy link
Contributor

chobits commented Nov 25, 2024

it respond with and http request have been send to https service.
what does this mean? You mean that the ingress proxy the https to wrong port of backend server? like proxying https reqeust from correct 443 port to wrong 80 port?

error:
400 Bad Request
The plain HTTP request was sent to HTTPS port

For nginx/kong, if you request https request from its port that does not enable listen ssl, it will report 400 bad request.

@chobits chobits added the pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... label Nov 25, 2024
@didlawowo
Copy link
Author

i understand that, but where is the mistake in the configuration ?

Copy link
Contributor

This issue is marked as stale because it has been open for 14 days with no activity.

@github-actions github-actions bot added the stale label Dec 11, 2024
Copy link
Contributor

Dear contributor,

We are automatically closing this issue because it has not seen any activity for three weeks.
We're sorry that your issue could not be resolved. If any new information comes up that could
help resolving it, please feel free to reopen it.

Your contribution is greatly appreciated!

Please have a look
our pledge to the community
for more information.

Sincerely,
Your Kong Gateway team

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ingress-controller Issues where Kong is running as a Kubernetes Ingress Controller area/kubernetes Issues where Kong is running on top of Kubernetes pending author feedback Waiting for the issue author to get back to a maintainer with findings, more details, etc... stale
Projects
None yet
Development

No branches or pull requests

4 participants