harbor/src
He Weiwei 2a243ef7a2
refactor(rbac): refactor rbac impl to improve performance (#9988)
1. Introduce `Evaluator` interface which do the permission checking.
2. `admin`, `lazy`, `rbac`, `namespace` and `evaluartor` set are implemented the
`Evaluator` interface.
3. Move project rbac implemention from `project` to `rbac` pkg to reduce
the name  conflict with project instance of model.
4. Do permission checking in security context by `Evaluator`.
5. Cache the regexp in rbac evaluator for casbin.
6. Cache evaluator in namespace evaluator to improve performance.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-03-12 23:42:53 +08:00
..
api refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
chartserver feat(quota): add Request and Refresh middlewares for APIs (#10907) 2020-03-11 22:25:40 +08:00
cmd/migrate-patch Bump up the migrate tool of notary 2019-02-21 00:36:24 -08:00
common refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
core refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
internal feature(tag_retention) add checkbox for user to control whether remove untagged image 2020-03-12 22:50:21 +08:00
jobservice Merge pull request #10899 from steven-zou/fix/failure_js_ut_cases 2020-03-07 19:10:02 +08:00
migration Restructure the packages of artifact 2020-03-12 16:03:13 +08:00
pkg refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
portal feature(tag_retention) add checkbox for user to control whether remove untagged image 2020-03-12 22:50:21 +08:00
registryctl add artifact trash manager 2020-02-19 14:52:58 +08:00
replication Merge pull request #11019 from bitsf/replication_adapter_sort 2020-03-12 14:53:34 +08:00
server refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
testing refactor(rbac): refactor rbac impl to improve performance (#9988) 2020-03-12 23:42:53 +08:00
vendor Update CSRF mechanism 2020-03-09 01:15:54 +08:00
favicon.ico
go.mod Update CSRF mechanism 2020-03-09 01:15:54 +08:00
go.sum feat(ci) enhance govet check performance (#11008) 2020-03-12 11:03:24 +08:00