Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HA bans my IP if the keyring is locked #50

Open
rmeissn opened this issue Jan 27, 2023 · 1 comment
Open

HA bans my IP if the keyring is locked #50

rmeissn opened this issue Jan 27, 2023 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects

Comments

@rmeissn
Copy link
Contributor

rmeissn commented Jan 27, 2023

I got a setup with automatic gnome-shell login (keyring is still locked until first usage), Ubuntu 22.04 (latest). After (automatic) login, the extension tries to authenticate with HA, but HA tells me that the extension can't be authenticated because of faulty credentials. As the keyring is still locked, the extension can't access the long-lived token. Unfortunately, the extension seems to retry to login a few times, until HA bans my IP.

Whenever I remove the ban and unlock the keyring first, the extension is successfully authenticated. So, it seems it accesses something the wrong way on the keyring, as it tries to authenticate with some value, even if the keyring is locked. Actually, I expected a dialogue, asking me to unlock the keyring first, before the extensions tries to authenticate with HA.

It took me some time to figure out that my IP was banned from HA.

@geoph9
Copy link
Owner

geoph9 commented Jan 28, 2023

Thanks for providing a detailed description of the issue. Unfortunately, I am not very familiar with how the gnome-keyring API works underneath, and I remember I myself had some problems when I first added it to this project (for security). I hope someone else will jump in and help you solve this :/

@geoph9 geoph9 added bug Something isn't working help wanted Extra attention is needed labels Jan 28, 2023
@geoph9 geoph9 added this to To do in Board via automation Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
Board
To do
Development

No branches or pull requests

2 participants