smallstep / certificates

🛡️ A private certificate authority (X.509 & SSH) & ACME server for secure automated certificate management, so you can use TLS everywhere & SSO for SSH.
https://smallstep.com/certificates
Apache License 2.0
6.36k stars 415 forks source link

Ability to silent logging of /health hits #1800

Closed sooslaca closed 2 months ago

sooslaca commented 2 months ago

Hello!

Issue details

Hi Team, would it be possible to introduce another setting in ca.json to not to log /health probes? It is generating too many messages with no real benefit. Thinking on something like disableHealthLogs: true, or noHealthLogs: true or simly reverse logic: healthLogs: false.

Thank you

Why is this needed?

Logging access to /health generating noise vs having real benefit.

hslatman commented 2 months ago

Hey @sooslaca, you can configure that with the STEP_LOGGER_ONLY_TRACE_HEALTH_ENDPOINT env var: https://github.com/smallstep/certificates/commit/9ee4441a79329da59a2907a2aa9b6dfe70397bad

sooslaca commented 2 months ago

Mea culpa, thank you! I did not see this anywhere in the documentation, probably I oversighted it.