goharbor / harbor

An open source trusted cloud native registry project that stores, signs, and scans content.
https://goharbor.io
Apache License 2.0
24.08k stars 4.76k forks source link

Limit activities and resource consumption #3419

Open tschwaller opened 7 years ago

tschwaller commented 7 years ago

As an administrator I would like to set limits on certain (allowed) activities and restrict resource consumption. This is necessary if your registry has man users and you need to protect the image scanning, storage and bandwidth capacity of your registry.

  1. Limit the number of pull/push requests a user can do per day/week/month.
  2. Limit the amount of GB a user can pull/push per day/week/month.
  3. Limit the image size (in GB) a user can push to a registry.
  4. Limit the number of image layers a user can use per image.
  5. Limit the total amount of GB a user can use for all his images in a certain project/all projects.
  6. Restrict the bandwidth for pull/push requests. Give certain users and projects (e.g. production) higher priority.
wy65701436 commented 7 years ago

Thanks for there suggestions, let's just let this issue open to track these requirements.

For item #6, Harbor already has a experimental feature to filter "docker pull" request based on signature/vulnerability.

yixingjia commented 7 years ago

Base on project level maybe more reasonable.

santi69 commented 6 years ago

any update on this? really waiting for a long time to set a limit on push specific to each project.

reasonerjt commented 6 years ago

@santi69 It's still in back-log I'd like to know what metric you wanna use to limit docker push?

santi69 commented 6 years ago

@reasonerjt We need a max limit on each project. For example i have total 100GB of storage, and i have 3 projects A, B & C. Right now all three can use how much ever space is left in my storage. We need a cap limit on each project. Like Project A can use max of 30GB and Project B can use 40GB and Project C can use max of 30GB. This way we have a control and check on each project. When my user base on each project is higher, it is difficult to have a check on who is using how much space.

** Need quota for individual projects.

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

iampeters commented 4 years ago

@all is there a way that one can set image retention time and number of images to be retained in Harbor?

xaleeks commented 4 years ago

@tschwaller is this from any specific customer you've spoken to?

cmrajiv commented 4 years ago

@reasonerjt any update on the query limiting activities and resources consumption in registry

github-actions[bot] commented 2 years ago

This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days.

jayunit100 commented 2 years ago

We still deefinetly would like to have this. Can we remove the stale image label?

jayunit100 commented 2 years ago

Theres a bandwidth limiting option in harbor, does that satisfy your needs ?