-
Notifications
You must be signed in to change notification settings - Fork 413
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
Log successful kube-probe requests at Trace lvl #421
Conversation
Codecov Report
@@ Coverage Diff @@
## master #421 +/- ##
==========================================
- Coverage 76.33% 75.50% -0.83%
==========================================
Files 92 97 +5
Lines 9109 9271 +162
==========================================
+ Hits 6953 7000 +47
- Misses 1773 1880 +107
- Partials 383 391 +8
Continue to review full report at Codecov.
|
I understand your issue, the main problem is that right now we don't have a way to define the log level. And those logs will be lost, not only that, I can change my user agent to hide my activity. I have to discuss this internally. |
The logging package is gonna be replaced by this package, and I've added an issue to be able to configure the debug level and to be able to hide liveness/readiness probes (smallstep/logging#2) |
Hey @dnwe thanks again for the submission! We spent some time discussing this morning. As @maraino we're planning on switching up the logger soon which should make this type of thing easier. But we're not exactly sure when that will happen. Prioritization is hard 🤕 With regards to this submission we'd be open to pulling it in to fix the short term need but we'd like to see a few changes:
If you're open to making those changes, we'll happily pull this in. With the caveat that sometime in the future this implementation will likely change. |
@dopey sure those recommended changes make sense 👍 I'll take a look at updating the PR |
Adds `STEP_LOGGER_ONLY_TRACE_HEALTH_ENDPOINT` environment variable to opt-in to only logging successful /health requests at the Trace level Fixes smallstep#420 Signed-off-by: Dominic Evans <dominic.evans@uk.ibm.com>
34fbb28
to
9ee4441
Compare
@dopey apologies I'd forgotten about this open PR, I whipped up a draft replacement based on the discussion above, but wasn't sure what environment-variable naming you were looking for. I proposed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Hey @dnwe thanks for the PR! Merging. |
When deployed and running in Kubernetes, step-ca will output a log statement every 5 seconds at INFO level from the ongoing readiness/liveness probe requests. This PR changes the behaviour so that successful kube-probe requests will only be logged at Trace level by default.
Fixes #420