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
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
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
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
Wenkai Yin
d0ac70d26c
Implement the get/delete handler for registry API
...
Implement the get/delete handler for registry API
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-28 11:01:17 +08:00
lucperkins
c2d9315bd4
Merge remote-tracking branch 'upstream/master' into lperkins/docs-restructure
2020-01-27 12:34:16 -08:00
lucperkins
37e1b74724
Fixes to links, images, code samples, etc.
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2020-01-27 10:15:46 -08:00
Daniel Jiang
0b468dffb7
Merge pull request #10571 from reasonerjt/middlware-registry-basic-auth
...
Add middlewares for permission checking for v2 API
2020-01-28 01:46:09 +08:00
lucperkins
c50b8b9752
Remove manual TOC from main docs page
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2020-01-27 09:35:24 -08:00
Wang Yan
9db84f2880
add Middleware policycheck into v2 handler
...
1, add content trust middleware in new v2 handler
2, add vulnable middlware in new v2 hanlder
Signed-off-by: wang yan <wangyan@vmware.com>
2020-01-28 00:24:58 +09:00
Daniel Jiang
5f8acc3896
Add middlewares for permission checking for v2 API
...
When the registry shifts from token auth to basic auth, we'll use the middleware to check permission.
This commit add middlewares for populate the artifact info and check
permission based on request to /v2/* api via security context
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-01-27 12:53:15 +08:00
lucperkins
a3264b1001
Fix error in admonition names
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2020-01-24 15:13:01 -08:00
lucperkins
7beeba6889
Begin restructuring Markdown and file names
...
Signed-off-by: lucperkins <lucperkins@gmail.com>
2020-01-24 14:59:18 -08:00
Michael Michael
302b210938
Merge pull request #10523 from stuclem/quick-start-script
...
Added quickstart script
2020-01-23 07:53:30 -06:00
Wenkai Yin(尹文开)
d79a0e6030
Merge pull request #10550 from heww/transtaction-middleware
...
feat(middleware): add transaction middleware for v2 and v2.0 APIs
2020-01-22 16:58:10 +08:00
He Weiwei
b594861658
feat(middleware): add transaction middleware for v2 and v2.0 APIs
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-01-22 05:00:39 +00:00
Wenkai Yin(尹文开)
f9d8951aed
Merge pull request #10519 from ywk253100/200116_router
...
Wrap the beego router and provide a unified view for users to register routes
2020-01-22 10:20:36 +08:00
Wenkai Yin(尹文开)
a774a19823
Merge pull request #10537 from ywk253100/200115_artifact_api
...
Implement the listing artifact API
2020-01-22 08:05:12 +08:00
Wenkai Yin
19f4bad042
Implement the listing artifact API
...
Implement the listing artifact API
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-22 07:35:29 +08:00
Wenkai Yin(尹文开)
17318aedc3
Merge pull request #10547 from ywk253100/200120_artifact
...
Add foreign key to avoid the concurrent issue
2020-01-21 17:44:27 +08:00
Wenkai Yin
8aeabc7717
Wrap the beego router and provide a unified view for users to register routes
...
Wrap the beego router and provide a unified view for users to register routes
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-21 17:26:20 +08:00
Stuart Clements
463bffd10a
Fixed heading
2020-01-21 09:46:02 +01:00
Stuart Clements
3435c89a50
Used full URL for community articles
2020-01-21 09:44:09 +01:00
Stuart Clements
f7315b710d
Added link to community articles
2020-01-21 09:42:55 +01:00
Stuart Clements
79d1f0ffba
Changed sub indexes to README files
2020-01-21 09:38:35 +01:00
Wenkai Yin
7dc28bcff9
Add foreign key to avoid the concurrent issue
...
Add foreign key to avoid the concurrent issue when operating the artifacts, tags and references
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-01-21 16:03:51 +08:00