He Weiwei
c4f77069c8
Hide projects in global logs where user has limited guest role ( #10639 )
...
Signed-off-by: Mark Huang <mhuang@pivotal.io>
Co-authored-by: Mark Huang <mhuang@pivotal.io>
2020-02-11 10:14:30 +08:00
Wang Yan
e68b474dbc
Merge pull request #10581 from ywk253100/100123_list_artifact
...
Add query string to listing artifact API to support specify only show the tagged artifacts
2020-02-10 18:12:06 +08:00
wang yan
beb7664b33
fix catalog pagenation issue
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-10 18:03:33 +08:00
Wang Yan
65dc54b059
Merge pull request #10626 from ywk253100/200125_handle_error
...
Unify the method/style to handle error in handler/middleware
2020-02-10 17:47:12 +08:00
AllForNothing
c932ca9d2b
UI should use relative path for back-end APIs
...
Signed-off-by: AllForNothing <sshijun@vmware.com>
2020-02-10 15:37:09 +08:00
Wenkai Yin
0373e08e58
Add query string to listing artifact API to support specify only show the tagged artifacts
...
Specify the query string "tags=NOT_NULL" to the listing artifact API to only return the tagged artifacts
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-10 14:53:51 +08:00
Wang Yan
71414a9bc3
Merge pull request #10670 from wy65701436/upgrade-beego-12.1
...
update beego version to v1.12.1
2020-02-10 13:57:07 +08:00
Wang Yan
ceccd4b8c3
Merge pull request #10656 from ywk253100/200128_subresource
...
Implement get addition API for image
2020-02-10 11:34:11 +08:00
wy65701436
b2e3761f62
update beego version to v1.12.1
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-09 16:39:48 +08:00
Wenkai Yin
af4dd142bc
Unify the method/style to handle error in handler/middleware
...
This commit provides a "SendError" method to unify the way to handle error in handlers/middlewares
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-08 07:37:00 +08:00
Wenkai Yin
0f6057a22c
Implement get addition API for image
...
This commit implements the API to get build history of image with manifest version 2 and populates the addition links when listing/getting the artifact
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-07 20:21:38 +08:00
Wenkai Yin(尹文开)
8a74fcb074
Merge pull request #10652 from wy65701436/fix-10552
...
Use controller rather than manager in the API handler and middleware
2020-02-07 19:30:51 +08:00
Wang Yan
6bad9f62ba
Merge pull request #10662 from ywk253100/200206_delete_repo
...
Implement repository deletion API
2020-02-07 17:51:03 +08:00
Wang Yan
5679c174c6
Merge pull request #10643 from ywk253100/200204_auth
...
Add permission check for artifact related APIs
2020-02-07 11:25:37 +08:00
wang yan
0fbbd674c2
Use controller rather than manager in the API handler and middleware
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-07 11:23:17 +08:00
Wenkai Yin
c267aaa474
Implement repository deletion API
...
Implement repository deletion API based on the new design
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-07 09:36:35 +08:00
Jonas Rosland
9a55536c3c
Fix small errors in the docs toc
...
Signed-off-by: Jonas Rosland <jrosland@vmware.com>
2020-02-06 17:03:35 -05:00
Michael Michael
a699f639b1
Merge pull request #10638 from jonasrosland/fix-docs-links-and-images
...
Fix docs links and images for adopters
2020-02-06 13:24:51 -08:00
Wang Yan
9a42b20499
Merge pull request #10653 from danfengliu/use-external-registry-goharbor
...
Fix project quotas API test issue
2020-02-06 18:43:02 +08:00
danfengliu
d1b5bd5d9c
Fix project quotas API test issue
...
In project quotas API test, pull images from goharbor namespace instead of library:
1. Replace image source in API test;
2. Modify criteria for verify project configuration modification.
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-02-06 16:43:08 +08:00
Ziming Zhang
6047a8102a
fix(feat) fix prepare version in installer
...
Signed-off-by: Ziming Zhang <zziming@vmware.com>
2020-02-06 10:58:29 +08:00
Wang Yan
72f9e02dd9
Merge pull request #10628 from wy65701436/af-immu
...
set the immutable status on getting/listting tag
2020-02-05 21:03:29 +08:00
wang yan
596a6261ca
set the immutable status on getting/listting tag
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-05 16:24:13 +08:00
Wenkai Yin
6087647895
Add permission check for artifact related APIs
...
Add permission check for artifact related APIs
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-05 15:58:39 +08:00
Qian Deng
95c9c6970d
Merge pull request #10507 from heww/improve-gen-apis
...
build(gen-apis): fail early for gen apis if build swagger img fail
2020-02-05 15:40:28 +08:00
Wenkai Yin(尹文开)
260d43db4f
Merge pull request #10627 from ywk253100/200202_reference
...
Add child artifact digest in reference model
2020-02-05 13:31:12 +08:00
Wang Yan
88da643420
Merge pull request #10636 from wy65701436/fix-10579
...
fix issue on listing robot accounts
2020-02-05 13:29:30 +08:00
wang yan
a53df4863d
fix issue on listing robot accounts
...
Update the query FuzzyMatch when to list robot accounts per project
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-05 11:36:18 +08:00
Jonas Rosland
a17a4541b6
Fix docs links and images for adopters
...
Signed-off-by: Jonas Rosland <jrosland@vmware.com>
2020-02-04 21:59:39 -05:00
danfengliu
a7472a7a66
Merge pull request #10614 from danfengliu/fix-test-steps-desc-in-robot-account-api-test
...
Fix description of test in robot account API test
2020-02-04 20:07:14 +08:00
danfengliu
66eff99c7f
Fix description issue of test in robot account API test and issue of Helm3 test
...
1. Fix issue that test step descriton was mismatch with test step;
2. Wrong helm command was used in Helm3 test, replace helm with helm3;
3. In API test, images were pulled from docker-hub registry, images size changed sometime, so we like to use internal registry.
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-02-04 17:26:52 +08:00
Wenkai Yin
7930e4f38a
Add child artifact digest in reference model
...
As we only provide the API to get artifact information via project name, repository name and digest, the digest of child artifact must be returned
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-04 15:59:06 +08:00
Wenkai Yin(尹文开)
5cf0481b51
Merge pull request #10625 from ywk253100/200204_bug_fix
...
Update the method called by registry handler
2020-02-04 15:50:48 +08:00
Wenkai Yin
c1746cc675
Update the method called by registry handler
...
Use ListTags instead in the registry tag listing handler
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-04 15:16:28 +08:00
Wang Yan
fa41168e8e
Merge pull request #10587 from ywk253100/200122_route
...
Register registry handler with the new methods of Route
2020-02-04 14:28:15 +08:00
Wenkai Yin(尹文开)
26ade207d3
Merge pull request #10588 from ywk253100/200126_delete_get_artifact
...
Implement artifact/tag related API
2020-02-04 14:14:28 +08:00
Wenkai Yin
793b23a444
Implement artifact/tag related API
...
Implement APIs:
1. Get artifact
2. Delete artifact
3. Create tag
4. Delete tag
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-04 13:46:55 +08:00
He Weiwei
791439086d
feat(api,permission): add HasPermission, HasProjectPermission in BaseAPI ( #10618 )
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-02-04 08:42:00 +08:00
He Weiwei
b1437c1341
refactor(security): add NewContext
and FromContext
to security pkg ( #10617 )
...
1. Add `NewContext` and `FromContext` funcs in security pkg.
2. Add `Name` func in `security.Context` interface to make the checking
for the `/api/internal/configurations` API clear.
3. Get the security from the context to prepare change the security
filter to middleware.
4. Remove `GetSecurityContext` in filter pkg.
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-02-03 17:43:36 +08:00
Wenkai Yin
ef3af85a5b
Register registry handler with the new methods of Route
...
Register registry handler with the new methods of Route
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-02-03 16:55:08 +08:00
Wang Yan
9c0d400817
Merge pull request #10549 from wy65701436/middleware-pc
...
add Middleware policycheck into v2 handler
2020-02-03 15:58:45 +08:00
Will Sun
acfcd2d175
Merge pull request #10489 from AllForNothing/postinstall
...
Fix postinstall script in Docker
2020-02-03 14:13:12 +08:00
Ziming
0f1c4b644c
Merge pull request #10536 from AllForNothing/master
...
Add ut coverage report
2020-02-03 13:40:53 +08:00
sshijun
89148b457a
Add ut coverage report for every PR
...
Signed-off-by: sshijun <sshijun@vmware.com>
2020-02-03 11:12:54 +08:00
wang yan
661f7a7902
resolve conflict with latest code
...
Signed-off-by: wang yan <wangyan@vmware.com>
2020-02-03 10:34:09 +08:00
Daniel Jiang
e75220ab38
Merge pull request #10605 from reasonerjt/basic-authorizer-registry
...
Switch to basic authentication for registry
2020-02-02 00:34:47 +09:00
Daniel Jiang
2064a1cd6d
Switch to basic authentication for registry
...
1. Add basic authorizer for registry which modify the request
to add basic authorization header to request based on configuration.
2. Set basic auth header for proxy when accessing registry
3. Switche the registry to use basic auth by default and use the basic
authorizer to access Harbor.
4. Make necessary change to test cases, particularly
"test_robot_account.py" and "docker_api.py", because the error is
changed after siwtched to basic auth from token auth. #10604 is opened
to track the follow up work.
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-01-31 21:46:47 +09:00
Wenkai Yin(尹文开)
a1b25e1fec
Switch to new registry API handlers ( #10596 )
...
Switch to new registry API handlers
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-30 21:21:07 +08:00
Michael Michael
79427e757d
Merge pull request #10572 from lucperkins/lperkins/docs-restructure
...
Restructure docs directory to be Hugo-able
2020-01-29 14:52:59 -06:00
Wenkai Yin(尹文开)
dee70f7deb
Merge pull request #10561 from ywk253100/200120_artifact_controller
...
Implement the get/delete handler for registry API
2020-01-29 12:33:43 +08:00