security: Remove debug service exposing coordinator data - #319
Conversation
The debug service 'debug_get_coordinator_data' was exposing all coordinator data via a public service, which is a privacy concern. This removes the service entirely.
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||||||
ⓘ You are approaching your monthly quota for Qodo. Upgrade your plan PR Code Suggestions ✨No code suggestions found for the PR. |
User description
Summary
Remove the debug service
debug_get_coordinator_datawhich was exposing all coordinator data via a public Home Assistant service.Security Concern
The debug service was firing events with all coordinator data, which includes:
This is a privacy concern in production environments.
Change
Removed the debug service registration and handler from
__init__.py.PR Type
Bug fix
Description
Removes debug service exposing sensitive coordinator data
Eliminates privacy risk from customer info, JWT tokens, billing data
Prevents unauthorized access to meter readings via public service
Diagram Walkthrough
File Walkthrough
__init__.py
Remove debug service and coordinator data exposurecustom_components/iec/init.py
handle_debug_get_coordinator_dataasync functiondebug_get_coordinator_data