Menu

Post image 1
Post image 2
1 / 2
0

Before You Send Logs to Gemini — Strip the PII First

DEV Community·hiyoyo·about 1 month ago
#3ZTzzadx
#ai#gemini#rust#line#regex#lazy
Reading 0:00
15s threshold

All tests run on an 8-year-old MacBook Air. Android logs contain more than stack traces. User IDs. Email addresses. IP addresses. Phone numbers. Auth tokens that slipped into a debug log. Device identifiers. Before you send logcat output to any AI API — including Gemini — strip the sensitive data. Here's the filter I built into HiyokoLogcat. What logcat actually leaks Real examples from production apps I've debugged: D/Network: Connecting to 192.168.1.105:8080 I/Auth: User token: eyJhbGciOiJIUzI1NiJ9... D/User: Loading profile for user@example.com I/Device: Serial: R58M123ABCD Enter fullscreen mode Exit fullscreen mode None of this should go to an external API. Especially not to a free-tier API where the terms say data may be used for training.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More