githaven/services/packages
Danila Fominykh 60522fc96f
packages: Calculate package size quota using package creator ID instead of owner ID (#28007)
Changed behavior to calculate package quota limit using package `creator
ID` instead of `owner ID`.

Currently, users are allowed to create an unlimited number of
organizations, each of which has its own package limit quota, resulting
in the ability for users to have unlimited package space in different
organization scopes. This fix will calculate package quota based on
`package version creator ID` instead of `package version owner ID`
(which might be organization), so that users are not allowed to take
more space than configured package settings.

Also, there is a side case in which users can publish packages to a
specific package version, initially published by different user, taking
that user package size quota. Version in fix should be better because
the total amount of space is limited to the quota for users sharing the
same organization scope.
2023-11-14 00:38:50 +01:00
..
alpine Close all hashed buffers (#27787) 2023-10-25 21:24:24 +02:00
cargo Do not force creation of _cargo-index repo on publish (#27266) 2023-10-24 03:26:38 +00:00
cleanup Do not force creation of _cargo-index repo on publish (#27266) 2023-10-24 03:26:38 +00:00
container Introduce path Clean/Join helper functions (#23495) 2023-03-21 16:02:49 -04:00
debian List all Debian package versions in Packages (#27786) 2023-10-29 14:14:47 +00:00
rpm Close all hashed buffers (#27787) 2023-10-25 21:24:24 +02:00
auth.go Bump github.com/golang-jwt/jwt to v5 (#25975) 2023-07-19 09:57:10 +00:00
packages.go packages: Calculate package size quota using package creator ID instead of owner ID (#28007) 2023-11-14 00:38:50 +01:00