0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-27 23:01:43 -05:00
zot/pkg/common
peusebiu c6b822f3dd
refactor(authz): use a struct for user access control info operations (#1682)
fix(authz): fix isAdmin not using groups to determine if a user is admin.
fix(authz): return 401 instead of 403

403 is correct as per HTTP spec
However authz is not part of dist-spec and clients know only about 401
So this is a compromise.

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
2023-09-01 11:13:53 -07:00
..
common.go refactor: move /pkg/meta/signatures under /pkg/extensions/imagetrust (#1712) 2023-08-19 08:52:03 +03:00
common_test.go refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
http_client.go refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
http_client_test.go test(refactor): refactor tests that use zot-test to use smaller images (#1690) 2023-08-18 11:46:11 +03:00
http_server.go refactor(authz): use a struct for user access control info operations (#1682) 2023-09-01 11:13:53 -07:00
model.go refactor(extensions)!: refactor the extensions URLs and errors (#1636) 2023-08-02 21:58:34 +03:00
oci.go refactor(cli): added equivalent subcommands for each flag combination under every command (#1674) 2023-08-30 20:12:24 +03:00
oci_test.go refactor: move helper functions under common, in usage specific named files (#1540) 2023-06-22 14:29:45 +03:00
retry.go refactor(cli): added equivalent subcommands for each flag combination under every command (#1674) 2023-08-30 20:12:24 +03:00