logstf: Scrub IPs from logs + use HTTPS#54
Conversation
- Redact IP addresses before uploading (mask last two octets) - Add cvar logstf_https to upload over HTTPS (default off)
|
I think a previous "upload extension" (SteamTools) didn't support https, and that's why we used http. But we don't use that anymore, and I assume both SteamWorks and cURL support https. How about we always use https with no http fallback? |
|
Yeah I'm all for enabling https by default, both curl and steamworks support it. I didn't enable it by default only because the curl extension might be too old for the logs.tf TLS version/crypto or a missing CA bundle. But for that second one, cert checking/verification is explicitly disabled on the curl path of the anyhttp functions anyway. |
|
Made a few minor updates:
Let me know if you have any concerns before we complete the PR. |
|
Sorry man, I must have messed up checking my latest regex, thought I did judging by git timestamps and my fork timestamp but I guess I didn't do it correctly. Looks good to me for shipping. |
|
No worries! 😄 Your code changes were very robust so it didn't actually break anything, other than the IP scrubbing being skipped. I tested that HTTPS upload works with both SteamWorks and curl on my machine, so we're good to go. |
Due to a recent incident, not directly related to logs.tf, I realized it could be nice to make these two small changes to the logs.tf uploader: