telly icon indicating copy to clipboard operation
telly copied to clipboard

telly should sanitize URLs wherever they appear in logs

Open chazlarson opened this issue 6 years ago • 4 comments

telly release with the issue:

1.1.0.2

Last working telly release (if known):

Operating environment (Docker/Windows/Linux/QNAP, etc.):

All

Description of problem: See https://github.com/tellytv/telly/issues/183

telly received a timeout when trying to retrieve a URL, and then spit the unredacted URL into the log when reporting the connection failure.

Contents of telly.config.toml [if you're using a version above 1.1]:

  • REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

Command line used to run telly [if applicable]:

  • REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

Docker run command used to run telly [if applicable]:

  • REMEMBER TO DELETE ANY CREDENTIALS IN CONFIG FILES OR COMMAND LINES

telly or docker log:


Additional information:

chazlarson avatar Sep 04 '18 21:09 chazlarson

I don't control that error message sadly, Go does. We could filter it out of error messages though by scanning every error string but not high priority atm.

robbiet480 avatar Sep 05 '18 23:09 robbiet480

I think this might be related to #181 . The url might have been invalid b/c of the space.

cmcpherson274 avatar Sep 05 '18 23:09 cmcpherson274

Regardless of why the URL is invalid, I think it'd be nice to keep credentials out of the logs in all circumstances, but can see why that could be a hassle.

chazlarson avatar Sep 05 '18 23:09 chazlarson

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Sep 19 '18 23:09 stale[bot]