shell2http
shell2http copied to clipboard
Add an healthcheck endpoint without authentication
It could be nice especially for k8s if we could expose a /healthcheck or /ping without httpauth in any case. For liveness/readiness probe.
Thanks !
Hi @ludopaquet, installing the auth-check independently for each command is not available. I want to keep the utility as simple as possible. And setup auth per-command will complicate the interface too much. Alternatively there are two solutions:
- disable global auth and check auth header inside shell-command where it needed
- or add auth to the URL in k8s like:
http://user:pass@host/healthcheck
Understood. However, my intention is not to have auth per command but just one single point (like index) without auth in any case. Maybe I can propose a PR and you will decide if it's good for you or not ?
here my PR: https://github.com/msoap/shell2http/pull/109
I could document and even make this path customizable from the command line if you want.
Hi @ludopaquet, sorry for the later answer. i still think that а simplicity is more important, and adding a separate endpoint, the authentication on which will be different from the others and this cannot be changed - it's not what i want, and i don’t see how to fix this from an interface side
there is another possible solution, maybe not convenient:
- remove global auth and add it to the shell scripts except /healthcheck
i hope for your understanding, thanks for contributing
Hello, thx for your reply, we could do that indeed.