-
Notifications
You must be signed in to change notification settings - Fork 115
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
Hiding URL parameters in watchdog logs #155
Comments
We have an issue template that you'll need to fill out if you'd like us to help you. Once you've done that fully, please ping me again. https://raw.githubusercontent.com/openfaas/of-watchdog/master/.github/ISSUE_TEMPLATE.md Alex |
Hi @alexellis: I use OpenFaaS and see that full URLs with parameters show in watchdog logs. I see logs like: GET /example?param1=data¶m2=data... - My questions: Is there a way in OpenFaaS or watchdogs (of-watchdog or classic-watchdog) to hide parts of the URL in logs? Expected BehaviourPossibility of setting a flag so that the watchdogs do not show the logs in the terminal Current BehaviourThe logs are displayed in the terminal Possible SolutionPossibility of setting a flag so that watchdogs does not show the logs in the terminal, similar to the flag: Steps to Reproduce (for bugs)At the end ContextIf sensitive data is sent via the URL, it is displayed in the watchdogs logs. Your Environment
Code Example:handler.py def handle(context):
return {
"statusCode": 200,
"body": {
"key": "value"
},
"headers": {
"Location": "https://www.example.com/"
}
} stack.yml version: 1.0
provider:
name: openfaas
gateway: http://localhost:8080/
functions:
logtest:
lang: python3-flask
handler: ./app
image: logtest:latest
build_args:
TEST_ENABLED: "false" faas-cli comands
Logs
|
Hi @alexellis: Any update on this post? |
Hello,
I use OpenFaaS and see that full URLs with parameters show in watchdog logs. I see logs like:
GET /example?param1=data¶m2=data... -
My questions:
Is there a way in OpenFaaS or watchdogs (of-watchdog or classic-watchdog) to hide parts of the URL in logs?
If not, has anyone found a solution for this?
Any advice on how to handle this without breaking OpenFaaS features?
Thank you for any help!
@alexellis
The text was updated successfully, but these errors were encountered: