Authentication and Permissions #8
Labels
No labels
bug
dependencies
duplicate
enhancement
good first issue
help wanted
invalid
question
waiting for fix validation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: mia/bumper#8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Related to #7
The EcoVacs app encrypts the username/password with the public key of EcoVacs when authenticating. Since we don't have the private key to decrypt, there is no way to provide true security and authentication within bumper. Bumper is not able to get the submitted username/e-mail/password of the user connecting.
What can be done:
Going with the idea of option 2:
Each client app (iPhone, Android, Sucks) has a deviceid that is submitted when logging in.
With this new mechanism users will be able to:
When a user connects with a client, bumper will correlate the deviceid to the user account. Then a unique token will be generated similar to how EcoVacs tracks them and that token will be tracked as part of the session. Tokens will be destroyed at logout or after X amount of time.
Bumper will only provide a list of bots that the user has attached to their account.
With this in place, additional layers can be added on top such as IP filtering.
The basics for this are in the code, but after using bumper for some time I just don't need this. If I'm outside my home I can VPN back and the app works fine. My insider threat concerns are low, but perhaps this could be useful for some sort of API layer.
I'm not going to work on this, but will leave this in case it comes up in the future. For now, bumper has
use_auth = Falsein__init__.py:a0721d7f79/bumper/init.py#L26