Open dmclf opened 1 month ago
Hi @dmclf, thanks for raising this issue. There is no further agent config for this, the way there is for consul/vault ui_url
s. I suspect you've already given https://developer.hashicorp.com/nomad/tutorials/manage-clusters/reverse-proxy-ui a look since you've arrived at a nice environment behind Traefik, but that guide doesn't have any certificate-specific advice anyway.
This is to say: first time I've heard of this particular issue, but not the first time I've seen issues raised around the proxied UI (for example). This could use some further investigation and I will try to set some time to dig in soon.
hi @philrenaud , I guess example issue 6413 sounds a bit like my first version with Fabio, which worked fine, but indeed has its limitations.
I can elaborate more on the environment I setup, but that won't help this specific ticket (but may potentially be nice to know how people setup things? or help others with similar setups)
Nomad version
(but may not be limited to these)
Operating system and Environment details
Ubuntu 22.04.5 LTS
Nomad with
Issue
when checking the Nomad UI to look at container logs, there are errors reported due to certificate issues.
https://10.xx.yy.zz:4646/v1/client/fs/logs/8fb55989-139c-5256-f812-d79353993c6c?follow=true&offset=50000&origin=end&task=athena-cleaner&type=stdout
and as the Nomad-Servers are using a private CA, as per Nomad's recommendationsand as such, this shows these certificate errors on Enduser-devices.
note: log viewing still works as apparently that call goes back to the SSL traefik endpoint, example,
https://nomad-development.company.com/v1/client/fs/logs/c519c888-6c46-6d8e-2f0c-f5a17be8afc7?follow=true&offset=50000&origin=end&task=google-cadvisor&type=stderr
this flow works
but the UI seems to do this 'direct connection' for the errornous calls, and that fails.
Reproduction steps
v1.9.0
on servers,v1.8.3
on clients)v1.8.3
)v1.8.3
)Expected Result
Actual Result
GET https://10.x.y.z:4646/v1/client/fs/logs/c519c888-6c46-6d8e-2f0c-f5a17be8afc7?follow=true&offset=50000&origin=end&task=google-cadvisor&type=stderr net::ERR_CERT_AUTHORITY_INVALID
i am not sure if there is some extra config needed in such case that is not readily available yet?
like, consul and vault have some ui_url that can be set:
perhaps such a property also is needed in my case, where effectively, nomad-ui sits behind a proxy?
(or some other config I may have overlooked? response rewriting is not exactly the direction I would prefer)