Add API key support to Twilio integration #4303
Unanswered
asheroto
asked this question in
Integration enhancements
Replies: 1 comment
|
🏷️ I've automatically added the |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Integration name
Twilio
Link to integration documentation on our website
https://www.home-assistant.io/integrations/twilio/
Describe the enhancement
Add support for authenticating with Twilio API Keys (API Key SID and Secret) in addition to the existing Account SID and Auth Token authentication method.
Use cases
The current integration requires the Twilio Account SID and Auth Token, which grant broad administrative access to the entire Twilio account. If Home Assistant were compromised and those credentials were exposed, an attacker could take full control of the account, including purchasing phone numbers, placing calls, sending SMS messages, modifying account configuration, creating or deleting resources, accessing sensitive account data, and performing nearly any action available to the account.
Twilio recommends using API Keys for production applications because they can be scoped to only the permissions an application requires. For example, a Home Assistant instance that only sends SMS messages or places outbound calls could use a restricted API key that cannot administer the account.
Supporting API Keys would allow users to follow the principle of least privilege and significantly reduce the impact of a Home Assistant compromise.
Anything else?
Twilio's SDKs already support authentication using an Account SID together with an API Key SID and API Key Secret, so this would primarily expose an authentication method already supported by Twilio. It would also align the integration with Twilio's current security recommendations for production applications.
All reactions