hey everyone, I think there is a bug where kratos ...
# talk-kratos
l
hey everyone, I think there is a bug where kratos doesn't enforce
disable_for_health
param i've set it in kratos.yml & as env variable. I still get the logs out. 😞
r
Hey @loud-helmet-81363 just fyi I realized that for this to take effect: • the
LOG_LEAK_SENSITIVE_VALUES
/
log.leak_sensitive_values
has to be set to false. • the log level has to be
debug
or higher (i.e. it cannot be
trace
) I think enabling leaking of sensitive values also forces
trace
level logging, which in turn causes all logs to be written out, even the excluded ones. I dug into the source code, and landed upon this https://github.com/ory/x/blob/d576b7be74ad19e15677c6f2aa83d0aa6d93efa5/reqlog/middleware.go#L117 All paths that get silenced get assigned the
trace
log level.
l
interesting