Encryption of passwords and keys in logs even if integrations do not

I know this maybe a bit of an odd one for Home Assistant itself to solve, but it caught me by surprise a few times.

A few integrations, esp, ones from HACS (uhm sorry Marketplace now :smile: ) do not seem to handle their logging well. And dump login information, either passwords of API keys into the HA log files.

It caught me a few times debugging logs that I accidentally shared an API key and had to change it. Let alone they are open in your files to begin with.

While not technically HA’s fault it was a bit it a what theheck moment for me.

I’d specify which intergrations are doing this. Were they added via a custom Github repository?

I scanned all my logs jsut to be sure and found no API keys or any other private data.

The winix CI stores login/pass in clear text. I know because copilot accidentally found it while helping fix a Spook issue and told me to change the password so it no longer knows it…

Oh I stand corrected they where not HACS but actually slightly more ‘official’. The SolarEdge cloud integration does it (thats not even HACS i believe?). And the backup encryption key also ends up apparently in the log files. I did think I also ran into it with one HACS integration. But cannot find it anymore (changed the key of course).

Like @Sir_Goodenough mentioned. I ran into this too debugging. In my case using Claude to analyse some log files.

Bug it with the integration (core community or otherwise)

Pretty sure that HA itself isn’t doing it on purpose but they also rely on code owners to do things. And this would be a hi priority bug on ANY platform I’ve ever worked on.

“Credential leak in log.”

Not a WTH, just a…

slap fix that - and don’t ever log the cred unredacted.

(also you can have Claude generate your bug - just keep it short and tell the agent you don’t need diatribe just the facts where when and what you saw…)

Thanks for the suggestion. I generated an issue for Winix. Avoid storing the Winix account password · Issue #205 · iprak/winix · GitHub