Skip to content
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

Providing a flag to hide log lines from the web interface #305

Closed
quatre opened this issue Mar 29, 2020 · 6 comments · Fixed by #667
Closed

Providing a flag to hide log lines from the web interface #305

quatre opened this issue Mar 29, 2020 · 6 comments · Fixed by #667
Labels
enhancement This is considered a feature request, not currently guaranteed by the code or design today mtail-Operating Issues related to deploying and running mtail

Comments

@quatre
Copy link
Contributor

quatre commented Mar 29, 2020

Hello!

currently, mtail can expose log lines through the web interface (for example through the /progz endpoint) when they cause a program to fail (eg. by trying to compare a string with an int).

What is your opinion on having a command line flag that would prevent these log lines to be exposed through the web interface?

@jaqx0r
Copy link
Contributor

jaqx0r commented Mar 29, 2020 via email

@quatre
Copy link
Contributor Author

quatre commented Mar 30, 2020

In some cases, logs may contain sensitive information (think for example, a username, or an IP address) that would be better not to expose.

When things are working nicely, this shouldn't be a problem. But if the application log format changes and breaks the mtail program, it could become an information leak.

@jaqx0r
Copy link
Contributor

jaqx0r commented Mar 30, 2020 via email

@quatre
Copy link
Contributor Author

quatre commented Mar 31, 2020

We sure would firewall it :p!
But the people who have shell access to Prometheus (to edit its config for example) do not necessarily have access to sensitive logs.

@jaqx0r
Copy link
Contributor

jaqx0r commented Apr 13, 2020 via email

@jaqx0r jaqx0r added enhancement This is considered a feature request, not currently guaranteed by the code or design today mtail-Operating Issues related to deploying and running mtail labels Mar 20, 2021
robert-heinzmann-logmein added a commit to robert-heinzmann-logmein/mtail that referenced this issue Jul 29, 2022
robert-heinzmann-logmein added a commit to robert-heinzmann-logmein/mtail that referenced this issue Jul 29, 2022
robert-heinzmann-logmein added a commit to robert-heinzmann-logmein/mtail that referenced this issue Jul 29, 2022
robert-heinzmann-logmein pushed a commit to robert-heinzmann-logmein/mtail that referenced this issue Jul 29, 2022
@robert-heinzmann-logmein

I reopened the original PR with a new branch. I also added an option to disable the /varz and /progz endpoints, as those could also leak some information that is not intended for public access as typically needed with prometheus.

robert-heinzmann-logmein pushed a commit to robert-heinzmann-logmein/mtail that referenced this issue Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is considered a feature request, not currently guaranteed by the code or design today mtail-Operating Issues related to deploying and running mtail
Projects
None yet
3 participants