Skip to content
Snippets Groups Projects

feat: Private Tracker Style invites

Merged Volkor Barbarian Warrior requested to merge private-keys into main

After a while of dealing with random users - I figured I'm going to have an invite only system.

Just like those nasty private torrent trackers that I hate so much, I'm taking a lesson from them. Each user has to vouch for another, and if any shady stuff happens it can be traced back to the root inviting user.

Full documentation will be on the wiki here

TODO

Once these are all done, it should be production ready and I'm comfortable to deploy it on the main pages.

  • Key Datastructures implemented

    • Just the base structs and all that ;)
  • Generating Keys

    • All 'keys' should use the same function, permission level is set on create.
  • Saving Keys to DB

    • Keys should be saved in a new table, essentially the 'user tree'.
  • Uploaded files have a 'uploader' by key

    • This will require re-writing the upload functions a bit.
  • /profile endpoint shows current user's keys

    • This shouldn't be too hard
    • Except for the part where it's hard, front-end.
  • Figure out the numbers of keys 'Super Keys' and 'Normal Keys' are able to use.

    • We don't want it too high that it's essentially free to give away, but not too restrictive it limits natural user growth.
  • Tests

    • I want to at least larp as a good rust developer, so we should have tests that work.
  • Final Test.

    • In addition to unit tests, I want to to a full integration test of the program before merging.

Optionals

Features not needed, but I'd very much like to include in this update. Anything not completed here will be pushed as a 1.1.n version.

  • Moderation ability.
    • View all keys and their status from admin page
    • Edit keys from the admin page (revoke, edit comment)
    • View files uploaded by each user (investigating reported files)
    • Edit files uploaded by each user (removing reported files)
    • Mega Optional, View basic stats about the server state.
Edited by Volkor Barbarian Warrior

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading