ActivityWatch / ActivityWatch/activitywatch

ActivityWatch doesn't behave well on multiuser systems

オープン
#75 コメント 16 件 リアクション 1 件 担当者 0 名 GitHub で見る
!pinned improves: security priority: low type: bug
主要言語
Python
スター
18.9k
フォーク
1k
平均マージ
1日 4時間
マージ済み PR(30日)
28

説明

Tried starting two instances of ActivityWatch today on the same computer (different users, Windows).

I was surprised to see the other users data when I opened localhost:5600, then I realized that it's not that strange since they use the same port.

What did surprise me was that I got no error about the server being unable to bind the port. I guess things work differently in the Windows world.

So this has a few issues:

- Users could read the data from other users running ActivityWatch.
- Two users cannot run ActivityWatch **on the same port** (well, they can, but only the person first starting the server will store all the data since the second server will crash on start when it can't bind the port)

This issue is present with other software as well, such as Syncthing. **The basic workaround seems to be to just add the ability to run it on different ports.** But this has some privacy issues if we don't also add the ability to password-protect the server.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/46340818-activitywatch-doesn-t-behave-well-on-multiuser-systems?utm_campaign=plugin&utm_content=tracker%2F35920020&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F35920020&utm_medium=issues&utm_source=github).

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。