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.

Ambassador Edge Stack UI shows "Configuration Error" when using TLSContext and Host together

See original GitHub issue

Describe the bug By the time of writing, it is not possible to configure http2 within a Host CRD in ambassador on kubernetes. The required option would be something like the alpn_protocols (then set to h2 for http2) option of the TLSContext CRD. But the Host CRD is needed for acme certificates.

The problem is, when someone wants to connect to a service through ambassador with a grpc service, and the option above is not configured, the call will be downgraded to http1.1. This can either made working by setting and enabling the grpc_11_bridge or by just using unary non streaming calls.

After some conversation with @nbkrause he suggested to use the workaround and create a Host for the acme process to get the certificate and a TLSContext for the protocol definition.

When doing this, it produces the correct envoy configuration but the Edge Stack UI yells an error at me: image

It does seem to work as intended, but the ui still produces this error.

To Reproduce Steps to reproduce the behavior:

  1. Create a Host CRD with some hostname (for acme - lets encrypt - certificates)
  2. Create a TLSContext CRD with the same hostname (for alpn_protocols: h2)
  3. See the error in the edge stack ui under “debugging” (and the logs of course)

Expected behavior Either allow the host to define the protocols, or don’t throw errors when a tlscontext uses the same hostnames to define additional properties 😃

Versions (please complete the following information):

  • Ambassador: 1.0.0
  • Kubernetes environment: bare metal
  • Version 1.17.0

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

2reactions
buehlercommented, Apr 27, 2020

@HunterLarco meanwhile…

I guess the did some implementation on this topic, but did not mention it.

Sadly enough it’s a “naming convention” thingy: https://www.getambassador.io/docs/latest/topics/running/tls/#hostand-tlscontext

So, I tested it.

If you use a host with the name foobar-host and then use the context with the name foobar-host-context, the error is gone and everything is correctly configured.

Thanks to @conblem for the nudge into the right direction.

But I wonder if the ambassador devs are changing something on this matter?

/cc @fforootd

1reaction
conblemcommented, Feb 24, 2020

Same here

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ambassador Edge Stack UI shows "Configuration Error" when ...
Ambassador Edge Stack UI shows "Configuration Error" when using TLSContext and Host together #2272. Open.
Read more >
Ambassador Edge Stack Release Notes
You can now use a TLSContext without a Host as in Ambassador Edge Stack 1.y ... an error when parsing envoy metrics for...
Read more >
datawire/ambassador - Gitter
<nkrause> @VolatileMolotov Assuming you are using the helm chart? You need to set service_port: 8080 in the Ambassador Module to tell Ambassador to...
Read more >
https://raw.githubusercontent.com/datawire/ambassa...
The core of Ambassador Edge Stack is Emissary-ingress. ... You can now use a `TLSContext` without a `Host`as in Emissary-ingress 1.y releases, or...
Read more >
Newest 'ambassador' Questions - Stack Overflow
Emissary ingress Multiple TLSContext are not working ... Ambassador Edge Stack JWT filter with Firebase token not working. I'm trying to verify a...
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