Logs through Nomad UI show certificate issues (log-viewing itself works) #24269
Labels
stage/accepted
Confirmed, and intend to work on. No timeline committment though.
theme/allocation API
theme/ui
type/bug
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 recommendations
and 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)
The text was updated successfully, but these errors were encountered: