0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-20 22:52:51 -05:00
zot/pkg
Lisca Ana-Roberta 336526065f
feat(groups)!: added "groups" mechanism for authZ (#1123)
BREAKING CHANGE: repository paths are now specified under a new config key called "repositories" under "accessControl" section in order to handle "groups" feature. Previously the repository paths were specified directly under "accessControl".

This PR adds the ability to create groups of users which can be used for authZ policies, instead of just users.

{
"http": {
   "accessControl": {
       "groups": {

Just like the users, groups can be part of repository policies/default policies/admin policies. The 'groups' field in accessControl can be missing if there are no groups. The permissions priority is user>group>default>admin policy, verified in this order (in authz.go), and permissions are cumulative. It works with LDAP too, and the group attribute name is configurable. The DN of the group is used as the group name and the functionality is the same. All groups for the given user are added to the context in authn.go. Repository paths are now specified under a new keyword called "repositories" under "accessControl" section in order to handle "groups" feature.

Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
2023-03-08 11:47:15 -08:00
..
api feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00
cli feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00
common fix(test): update the zot tests not to use test/data as rootDir (use a temporary folder instead) (#1162) 2023-02-02 11:39:03 -08:00
compliance feat(repodb): Multiarch Image support (#1147) 2023-02-27 11:23:18 -08:00
debug feat(ui): package zui within zot binary (#1161) 2023-02-10 14:52:54 -08:00
exporter refactor(cve): improve CVE test time by mocking trivy (#1184) 2023-02-09 21:04:52 -08:00
extensions feat(sync): skip already synced images in sync ondemand (#1234) 2023-03-07 09:58:42 -08:00
log test(refactor): cleanup/simplify testcases (#1124) 2023-01-20 10:01:52 -08:00
meta/repodb feat(repodb): Multiarch Image support (#1147) 2023-02-27 11:23:18 -08:00
regexp chore(trivy): update trivy version and enforce OCI compliant repo names in local image storage (#1068) 2023-01-18 08:24:44 -08:00
requestcontext feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00
scheduler feat(scheduler): use an worker pool for scheduler (#1146) 2023-02-15 11:36:50 -08:00
storage fix: call notation-go libs instead of using notation binary (#1104) 2023-02-13 10:43:52 -08:00
test feat(groups)!: added "groups" mechanism for authZ (#1123) 2023-03-08 11:47:15 -08:00