codalab / codalab-worksheets

A collaborative platform for reproducible research (web interface and CLI).
Other
154 stars 83 forks source link

Guard against miners #4295

Closed wwwjn closed 1 year ago

wwwjn commented 1 year ago

Describe the bug A lot of miners are using CodaLab mining crypto. They register new accounts to run the mining jobs.

Temporary fix

  1. Manually limit current malicious users: change their quota limit to 100M. 1h.
  2. Make forms for both time and disk quota; make it obvious this is how you get more. When show the error message (out of quota), link to the tutorial (https://codalab-worksheets.readthedocs.io/en/latest/FAQ/#how-do-i-request-more-disk-quota).
  3. Get PR #4283 in, those bundle that exceed time quota could be cancelled. @AndrewJGaut
  4. Deploy a new version to the dev/production environment with CODALAB_USER_DISK_QUOTA: 100m, CODALAB_USER_TIME_QUOTA: 1h (We can not give edu users more quota now without changing the code).

Long-Term fix

  1. Option1: Use the referral system
  2. Option2: Set all newly created use with low disk and time quota. Edu users could have more disk and time quota.
wwwjn commented 1 year ago

After deploy v1.5.11 to dev environment, I created a new account to test. The new created account has 100m disk quota and 1h time quota.

image