mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
Access Resources with self signed TLS Certificate [Docker] #53
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DevNinja90 on GitHub (Sep 1, 2025).
We have some resources that are only accessable via https. They automatically redirect thir webinterface via HTTP Status Code 307.
When running newt in debug mode this can be observed for the healthprobe.
A connection via pangolin is not succesfull.
We use pangolin in the cloud version for evaluation currently and newt in docker. 10.0.3.1 is the docker host and we want to access a web ui which the host runs. Unfortunately a filesystem / ssh access is not possible. TLS Certs could in theory be exchanged but this then needed to be done for every device (which we have 150 of) and they still would not be trusted.
What could work:
This isssue can be verified by making a wget command to the desired resource
Are there any plans for the secondary idea?
@oschwartz10612 commented on GitHub (Sep 1, 2025):
I think this will be fixed in the next release. c5c0143
I made it not care about self signed by default optionally with a flag --enforce-hc-cert enabling it again
@DevNinja90 commented on GitHub (Sep 2, 2025):
@oschwartz10612 i think this kind of solves the problems. For our use case it now works - Thanks for this
However when specifiying the hc with port 443 the scheme of the health check stays at http. Shouldn't it be https?
when performing a health check on 10.0.3.1:80 - OK
when performing a health check on 10.0.3.1:443- Not OK
--> I think the method for http/http2/h2c on the resource is not properly propagated to the hc. The scheme for the 443 check is http but it should be https.
@oschwartz10612 commented on GitHub (Sep 2, 2025):
Just pushed an update to the cloud to fix this! Should now be able to
select a method. LMK how it works.
@DevNinja90 commented on GitHub (Sep 3, 2025):
Confirmed working! Thanks 👍🏼