harbor/src/server/middleware
Daniel Jiang ad8eee8623 Add attribute admin username for authproxy
This commit adds the attribute "http_authproxy_admin_usernames", which
is string that contains usernames separated by comma, when a user logs
in and the username in the tokenreview status matches the setting of
this attribute, the user will have administrator permission.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2021-04-07 18:14:59 +08:00
..
apiversion Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
artifactinfo Limit the permission of secret used by proxy cache service 2020-07-27 10:15:00 +08:00
blob update blob list query (#14195) 2021-02-09 17:08:26 +08:00
contenttrust Check the tag in isArtifactSigned func 2020-09-05 17:00:55 +08:00
csrf Store csrf token in the header of response instead of cookie 2020-08-20 15:46:02 +08:00
immutable refactor immutable rule (#14371) 2021-03-08 17:10:12 +08:00
log move logger from common to lib 2020-04-02 14:09:03 +08:00
metric Fix: unkonw metrics issue 2021-01-29 18:07:06 +08:00
notification Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
orm Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
quota update blob list query (#14195) 2021-02-09 17:08:26 +08:00
readonly move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
repoproxy Refactor registry API (#14528) 2021-03-31 15:49:23 +08:00
requestid feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
security Add attribute admin username for authproxy 2021-04-07 18:14:59 +08:00
session Relocate/rename some packages (#11183) 2020-03-24 20:45:45 +08:00
transaction move send error to source lib (#12175) 2020-06-19 01:04:50 +08:00
util refractor project rbac (#13924) 2021-01-11 11:27:26 +08:00
v2auth refractor project rbac (#13924) 2021-01-11 11:27:26 +08:00
vulnerable Store vulnerability data from scanner into a relational format (#13616) 2020-12-25 08:47:46 +08:00
middleware_test.go feat(beego): upgrade beego to v1.12 which support middleware (#10524) 2020-01-20 16:41:49 +08:00
middleware.go fix: remove auto re-readable body in BeforeRequest 2020-11-20 01:41:12 +00:00
skipper_test.go feat(middleware): add transaction middleware for v2 and v2.0 APIs 2020-01-22 05:00:39 +00:00
skipper.go feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00