Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prometheus-node-exporter-lua: Added TLS support for the custom uhttpd server #25560

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

thomasrahimi
Copy link

Maintainer: me @thomasrahimi
Compile tested: No changes to binary code - Thus not tested yet
Run tested: ipq40xx, FritzBox 7520, 23.05.5, tested on my working router and worked as expected in both cases (http and https)

Description:
Added TLS support for the uhttpd server, which is spun up when starting prometheus-node-exporter-lua. The whole support has been implemented as an additional option, which allows to maintain prometheus-node-exporter-lua with the current mode of operation, which is the unencrypted http server.
The conditions to evaluate, whether the required certificate and key are present have been crafted in accordance with suggestions made by project maintainers. Thus all possible cases when dealing with the options and the paths for the certificates should be handled by the shell code to start prometheus-node-exporter-lua.

@champtar
Copy link
Member

By signed I meant having the signed-off-by tag in the commit description ;)

@thomasrahimi
Copy link
Author

OK, missing signature for signed-off-by added. Sorry for forgetting about it

@champtar
Copy link
Member

Make sure to fix 'test formalities'

…he custom port selected to provide prometheus node exporter. The changes have been performed by enhancing the already existing modes of operation for the uhttpd server.

By merging this commit, the /etc/config/prometheus-node-exporter-lua file receives another two options, which allow the configuration of independent keys and certificate for the uhttpd server.

Signed-off-by: Thomas Rahimi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants