Commit Graph

9444 Commits

Author SHA1 Message Date
AllForNothing
aed6cd36d4 Improve notary cmd on UI
Signed-off-by: AllForNothing <sshijun@vmware.com>
2020-09-15 10:08:51 +08:00
Daniel Jiang
ba5a95575f
fix(webhook): fix the verify cert logic of webhook endpoint (#13033)
Signed-off-by: chlins <chlins.zhang@gmail.com>

Co-authored-by: chlins <chlins.zhang@gmail.com>
2020-09-11 15:35:24 +08:00
stonezdj(Daojun Zhang)
979d9fcf2f
Merge pull request #13007 from stonezdj/2.0_ldap_filter_fail
(cherry-pick for 2.0 ) Add ldap filter syntax validation when create search filter
2020-09-09 16:18:30 +08:00
stonezdj
855a22e9cf Add ldap filter syntax validation when create search filter
Correct ldap search filter is enclosed with '(' and ')'
Search ldap group with the ldap group base DN instead of group DN
Fixes #12613 LDAP Group Filter and Group Base DN have no affect

Signed-off-by: stonezdj <stonezdj@gmail.com>
2020-09-09 14:55:55 +08:00
stonezdj(Daojun Zhang)
c6d79b9cc7
Merge pull request #13009 from stonezdj/2.0_ldap_groupname
(cherry-pick for 2.0) Set LDAP groupname when PopulateGroup
2020-09-09 14:51:47 +08:00
stonezdj
d36ecdd488 Set LDAP groupname when PopulateGroup
Search ldap group name with default ldap group attribute name
fixes #10940

Signed-off-by: stonezdj <stonezdj@gmail.com>
2020-09-09 14:02:36 +08:00
Qian Deng
3e9f3e8f79
Merge pull request #12859 from ninjadq/update_doc_for_trivy_2_0
Add Doc for Trivy
2020-09-07 18:18:02 +08:00
DQ
56972eaceb Add Doc for Trivy
run installer script need contains the content about trivy adapter

Signed-off-by: DQ <dengq@vmware.com>
2020-09-07 14:58:58 +08:00
Dirk Mueller
7a4b16aee1
Update golang to 1.13.15 (#12836)
This includes a number of critical bug and security fixes:

* go1.13.9 (released 2020/03/19) includes fixes to the go command, tools, the runtime, the toolchain, and the crypto/cypher package. See the Go 1.13.9 milestone on our issue tracker for details.

* go1.13.10 (released 2020/04/08) includes fixes to the go command, the runtime, and the os/exec and time packages. See the Go 1.13.10 milestone on our issue tracker for details.

* go1.13.11 (released 2020/05/14) includes fixes to the compiler. See the Go 1.13.11 milestone on our issue tracker for details.

* go1.13.12 (released 2020/06/01) includes fixes to the runtime, and the go/types and math/big packages. See the Go 1.13.12 milestone on our issue tracker for details.

* go1.13.13 (released 2020/07/14) includes security fixes to the crypto/x509 and net/http packages. See the Go 1.13.13 milestone on our issue tracker for details.

* go1.13.14 (released 2020/07/16) includes fixes to the compiler, vet, and the database/sql, net/http, and reflect packages. See the Go 1.13.14 milestone on our issue tracker for details.

* go1.13.15 (released 2020/08/06) includes security fixes to the encoding/binary package. See the Go 1.13.15 milestone on our issue tracker for details.

These changes should be safe to apply on a maintenance branch as golang
is very strict about backports to patch level version. see
https://golang.org/doc/devel/release.html for details.

Signed-off-by: Dirk Mueller <dirk@dmllr.de>
Signed-off-by: Dirk Mueller <dmueller@suse.com>
2020-09-07 14:57:17 +08:00
Wenkai Yin(尹文开)
1888731e39
Merge pull request #12952 from ywk253100/200902_replication_2.0
[cherry-pick-2.0]retry several times when failed to copy blob during the replication
2020-09-07 11:58:16 +08:00
Wenkai Yin
b38802d291 retry several times when failed to copy blob during the replication
Signed-off-by: Wenkai Yin <yinw@vmware.com>
2020-09-07 11:04:49 +08:00
danfengliu
3c7adb2433
Merge pull request #12967 from danfengliu/cherry-pick-2.0.0-fix-git-action-ci-missing-site-packages-issue
cherry-pick to 2.0.0 fix git action CI missing python sit packages issue
2020-09-07 10:59:53 +08:00
danfengliu
0924126a06 Fix git action CI missing python sit packages issue
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-09-07 10:26:21 +08:00
danfengliu
8a6f7e2fdf
Merge pull request #12950 from danfengliu/cherry-pick-to-2.0-fix-swagger-package-missing-issue
Fix issue of missing swagger package for python API test
2020-09-02 18:09:07 +08:00
danfengliu
3e743dcace Fix issue of missing swagger package for python API test
1. Python API test can't import packages from swagger maker, the reason is that python install packages to site-packages instead of dist-packages,
   so the current solution is to copy pakages from site back to dist, I will try to find a way of using ENV variable to fix this;

2. Remove a python library no longer be used.

Signed-off-by: danfengliu <danfengl@vmware.com>
2020-09-02 17:00:23 +08:00
Daniel Jiang
93405df662
Merge pull request #12901 from wy65701436/docker-1.13.1
rm docker dependency for go mod
2020-09-02 14:09:43 +08:00
Wang Yan
f034118e4f
fix migration issue (#12902)
fixes #12889

Before the migration script to fix the nativate repo_id issue, is has to remove the duplicate tags
from the tag table, which may caused by user in v2.0.2 to retag & repush the missing image.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-31 15:31:57 +08:00
wang yan
c656f1c535 rm docker dependency for go mod
Remove the github.com/docker/docker as no source code is actually using it.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-28 14:51:05 +08:00
danfengliu
5f640bff53
Merge pull request #12893 from danfengliu/fix_robot_cmd_issue_in_2.0
Change pybot to robot in release 2.0.0
2020-08-27 17:20:09 +08:00
Steven Zou
5fd668e8f8
Merge pull request #12878 from bitsf/cherrypick_replication_adapter_2.0.3
cherry-pick replication adapter's change for 2.0.3
2020-08-27 17:17:26 +08:00
danfengliu
67a2591adb Change pybot to robot in release 2.0.0
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-08-27 08:44:16 +00:00
danfengliu
b0b199cd4a
Merge pull request #12892 from danfengliu/update-drone-e2e-image-for-2.0
Update drone e2e image to release 2.0.0
2020-08-27 16:25:49 +08:00
danfengliu
7f182615af Update drone e2e image to release 2.0.0
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-08-27 06:48:07 +00:00
danfengliu
a938fae5da
Merge pull request #12872 from danfengliu/upgrade-python-and-robotframework-to-2.0.0
Upgrade python and robot framework to 2.0.0
2020-08-27 14:10:06 +08:00
danfengliu
b5cf753b3a Upgrade python and robot framework to 2.0.0
Signed-off-by: danfengliu <danfengl@vmware.com>
2020-08-27 10:59:48 +08:00
Ziming Zhang
15a5ee705a cherry-pick replication adapter's change
Signed-off-by: Ziming Zhang <zziming@vmware.com>
2020-08-26 17:45:01 +08:00
Daniel Jiang
c6b1ff51f4
Merge pull request #12874 from wy65701436/release-2.0.3
fix db migration issue
2020-08-26 14:43:23 +08:00
wang yan
4b4bc8a51c fix db migration issue
fixes #12827
 After user migrates Harbor from v2.0.2, user got 404 when to pull specific images, and no work after push the same images again.

Fix:
1, If the issue is caused by missing repository data, this fix can revert the missing repository data and all things should be fine.
2, If the issue is caused by missing blob data, this fix can revert the missing repository data and still left the media type of artifact
as 'UNKNOWN', which leads the meta data and build history of the image cannot be shown in UI. User can delete and push the image again to
resolve it.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-26 12:04:15 +08:00
Steven Zou
598e911f61
Merge pull request #12834 from heww/fix-scan-permission
[Cherry pick]fix(scan): fix the permission checking for artifact scanning
2020-08-21 10:06:47 +08:00
He Weiwei
d062910460 fix(scan): fix the permission checking for artifact scanning
Closes #12778

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2020-08-20 16:16:19 +00:00
He Weiwei
c4bedd3719
Merge pull request #12830 from reasonerjt/refresh-ca-2.0
Refresh CA cert  -- cherrypick to 2.0
2020-08-20 17:43:16 +08:00
Daniel Jiang
7cecacfac3 Refresh CA cert
This commit refresh the harbor_ca.crt

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2020-08-20 15:46:44 +08:00
Wang Yan
e91b4ff1b7
bump up version to v2.0.2 (#12606)
Signed-off-by: wang yan <wangyan@vmware.com>
2020-07-28 15:39:23 +08:00
Wang Yan
06f963d254
fix update pull time issue (#12603)
fixes #12574

let the tag ID as 0 when tags array is empty when to update pull time

Signed-off-by: wang yan <wangyan@vmware.com>
2020-07-28 14:53:04 +08:00
He Weiwei
98afd3c100
Merge pull request #12597 from tedgxt/release-2.0.0-webhook-md-fix
Fix for project metadata
2020-07-27 21:07:17 +08:00
guanxiatao
ce11ef387a Fix for project metadata
Signed-off-by: guanxiatao <guanxiatao@corp.netease.com>

# Conflicts:
#	src/controller/event/handler/webhook/artifact/replication_test.go
2020-07-27 19:22:14 +08:00
Steven Zou
efa9646e57
Merge pull request #12587 from ninjadq/extending_chart_client_timeout_2_0
Enhance: Prolong the timeout of chartclient
2020-07-27 16:06:01 +08:00
DQ
1a3015a60e Enhance: Prolong the timeout of chartclient
In some perspectives to reduce the too many charts performence issue

Signed-off-by: DQ <dengq@vmware.com>
2020-07-27 12:08:58 +08:00
stonezdj(Daojun Zhang)
4f37e5e095
Merge pull request #12558 from stonezdj/2.0.0_release_conn_ldap
Release connection after search ldap user (cherry-pick)
2020-07-23 16:13:22 +08:00
stonezdj
14329f2433 Release connection after search ldap user
Fixes: 12162

Signed-off-by: stonezdj <stonezdj@gmail.com>
2020-07-23 11:12:08 +08:00
Qian Deng
110e305a51
Merge pull request #12521 from ninjadq/update_chart_client_2_0_0
Update chart client 2 0 0
2020-07-23 10:59:33 +08:00
jwangyangls
ad9c539172
Merge pull request #12529 from jwangyangls/fix-replication-repo-2.0
[cherry-pick][fix] [replication] Success rate should be displayed as 0 when status is inprogress
2020-07-21 10:32:56 +08:00
Steven Zou
7dbd90f35d
Merge pull request #12530 from bitsf/fix_replication_swr_pull_2.0
[cherry-pick] fix SWR replication adapter pull-based
2020-07-20 17:43:24 +08:00
Ziming Zhang
05864a9ffc fix SWR replication adapter pull-based
Signed-off-by: Ziming Zhang <zziming@vmware.com>
2020-07-20 16:53:50 +08:00
Yogi_Wang
d4f8eaa08c [fix] [replication] Success rate should be displayed as 0 when status is inprogress
1.[replication] sccess rate should be displayed as 0 when status is inprogress
2.[repository] fix get repo name error when the repo contains the project name field
Signed-off-by: Yogi_Wang <yawang@vmware.com>
2020-07-20 16:36:51 +08:00
Wenkai Yin(尹文开)
ffe00026af
Merge pull request #12509 from ywk253100/200717_add_registry_cherrypick
[Cherry-pick]Don't return the error detail back to the client when adding registry
2020-07-20 11:09:48 +08:00
Steven Zou
f2a4464137
Merge pull request #12519 from danielpacak/bump_up_trivy_adapter_to_0.12.0_cherry_pick_v2.0.0
[cherry-pick]: chore(trivy): Bump up Trivy adapter to v0.12.0
2020-07-18 23:35:33 +08:00
DQ
bfdfacfcdf Update vendor for helm client
Signed-off-by: DQ <dengq@vmware.com>
2020-07-17 20:28:58 +08:00
Daniel Pacak
9b447a726d chore(trivy): Bump up Trivy adapter to v0.12.0
The new version of the adapter service improves the Redis connection pool
management. In the previous versions a new connection pool was created for
each scan job, which might negatively impact the performance and resources
utilisation.

There is also a bug fix in Trivy v0.9.1 to properly handle the debug mode.

Signed-off-by: Daniel Pacak <pacak.daniel@gmail.com>
2020-07-17 13:00:49 +02:00
Wenkai Yin(尹文开)
e8f23cb3a5
Merge pull request #12505 from ywk253100/200717_replication_fix
[Cherry-pick]Fix replication bugs #11974, #11939
2020-07-17 15:31:18 +08:00