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

Identify privileged users #364

Merged
merged 22 commits into from Feb 25, 2022
Merged

Identify privileged users #364

merged 22 commits into from Feb 25, 2022

Conversation

jpdillingham
Copy link
Member

@jpdillingham jpdillingham commented Feb 21, 2022

This PR adds the automated tracking of users, along with their status and statistics. Users that have been explicitly added to a group in configuration are watched on connect. Other users are transiently watched when they enqueue an upload.

A lot of the work here was necessary to enable the application to track whether users are privileged; unfortunately it involved a lot of thread-pulling to achieve this. This does pave the way for a fairly easy implementation of the anti-leech detection needed for #361.

Users that have been identified as being privileged by the server will now be automatically assigned to the privileged internal group, allowing them to be prioritized over all other users when processing the queue and determining upload speed.

Closes #362

@jpdillingham jpdillingham merged commit 8c7861a into master Feb 25, 2022
@jpdillingham jpdillingham deleted the privileges branch February 25, 2022 15:47
@jpdillingham jpdillingham mentioned this pull request Feb 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Assign users with network privileges to the built-in 'privileged' group
1 participant