question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HTTP and HTTPS listeners don't work together

See original GitHub issue

Describe the bug I can’t use HTTP and HTTPS listeners together without “redirect_cleartext_from”.

To Reproduce Add the below annotation in the ambassador service:

apiVersion: ambassador/v0
kind: Module
name: tls
config:
  server:
    enabled: True

Expected behavior I want to create HTTP only services and HTTPS only services, but I can’t. When I enable the TLS module, the HTTP port in the pods is closed. So, to have both listeners opened, I need to use the “redirect_cleartext_from”, so all HTTP request are redirect to HTTPS.

Versions (please complete the following information):

  • Ambassador: 0.40.2
  • Kubernetes environment: Kubernetes
  • Version: Client Version: version.Info{Major:“1”, Minor:“12”, GitVersion:“v1.12.2”, GitCommit:“17c77c7898218073f14c8d573582e8d2313dc740”, GitTreeState:“clean”, BuildDate:“2018-10-24T06:54:59Z”, GoVersion:“go1.10.4”, Compiler:“gc”, Platform:“linux/amd64”} Server Version: version.Info{Major:“1”, Minor:“10”, GitVersion:“v1.10.10”, GitCommit:“be1a908c6aa47e0ae1b1dc861a1de6ccfe963aa2”, GitTreeState:“clean”, BuildDate:“2018-11-13T11:33:04Z”, GoVersion:“go1.9.3”, Compiler:“gc”, Platform:“linux/amd64”}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:18 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
iNoahNothingcommented, Dec 11, 2018

This is something we would like to support. Currently, as a work-around, you can run two deployments of ambassador. One for http and another for https traffic.

4reactions
juanjokucommented, Jul 26, 2019

We have the same problem: we prefer Ambassador to be able to work with http and https, while Envoy allows it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Listeners for your Application Load Balancers
You can use an HTTPS listener to offload the work of encryption and decryption to your load balancer so that your applications can...
Read more >
AWS ALB listeners - both https and http
When I add another listener on http/8000 that forwards the request to the same target group - it doesn't work. If I replace...
Read more >
Enable HTTP to HTTPS Redirect for Application Load ...
Redirecting HTTP traffic to HTTPS within your load balancer listeners' configuration simplifies deployments while benefiting from the scale, the availability, ...
Read more >
Azure Application Gateway listener configuration
You can use not only well-known ports, such as 80 and 443, but any allowed ... You can use WebSockets with both HTTP...
Read more >
Introduction to events - Learn web development | MDN
Note: Event handlers are sometimes called event listeners — they are pretty much ... although strictly speaking, they work together.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found