Commit Graph

2621 Commits

Author SHA1 Message Date
Daniel Jiang
74504b122e Update GetRolesByGroupID
This commit fixes #8432
When querying the role of group ID, all matched roles should be returned
instead of the minimal role ID.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-07-29 11:25:52 +08:00
Yogi_Wang
8e5b4dcaf4 Add user group when http auth mode
add the pages  in project and system

Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-07-19 13:49:56 +08:00
stonezdj
3c2f92294d Fix OnBoardGroup issue
Signed-off-by: stonezdj <stonezdj@gmail.com>

Fix issue when adding a HTTP user group to a project member, returns HTTP 500 error.
2019-07-19 10:45:26 +08:00
stonezdj
3021130943 Add HTTP group feature
Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-07-19 10:45:26 +08:00
stonezdj
0a0dc784b8 Refactor LDAP group
Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-07-19 10:45:26 +08:00
DQ
06324b43b4 Fix: Internal server error with messy code when chartmuseum not work
log err when doesn't get data from chart museum

Signed-off-by: DQ <dengq@vmware.com>
2019-07-18 13:58:17 +08:00
Daniel Jiang
dd68861235 Reload OIDC provider older than 3 seconds
This commit make sure the OIDC is more actively recreated, to mitigate
the problem in #8177

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-07-15 16:23:11 +08:00
Wenkai Yin
e0cad6224c Support v1 signed media type when do the replication
Support v1 signed media type when do the replicatio

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-07-05 12:56:43 +08:00
He Weiwei
c0313f756f
Merge pull request #8201 from heww/release-1.8.0
[Cherry pick]Fix read permission of project member read api
2019-07-05 10:21:43 +08:00
Steven Zou
ad6855d5ee
Merge pull request #8214 from steven-zou/cherry-pick/b88159e747bbf92
[Cherry-pick]use separate key for the last periodic enqueue data
2019-07-03 21:48:40 +08:00
Steven Zou
db1c90d0a7 use separate key for the last periodic enqueue data
Signed-off-by: Steven Zou <szou@vmware.com>
2019-07-03 17:47:54 +08:00
Daniel Jiang
e673fa13d5 Handle helm push in OIDC filter
Fixes #8130
Enable OIDC filter to handle requests to /api/chartrepo/*

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-07-03 17:40:34 +08:00
He Weiwei
4be11f8892 Fix read permission of project member read api
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-07-02 17:40:34 +08:00
Steven Zou
c44bcca0b3 Merge branch 'release-1.8.0' of github.com:goharbor/harbor into release-1.8.0 2019-06-14 12:38:06 +08:00
Steven Zou
289850a4ed add migration process for rdb as well as UT cases
fix issue #7988

Signed-off-by: Steven Zou <szou@vmware.com>
2019-06-14 11:42:29 +08:00
Wenkai Yin
071cb1bc2d Fix replication bug
Fixes #7875, fixes #7968

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-06-13 17:24:39 +08:00
jwangyangls
4b220081b2
Merge pull request #8015 from jwangyangls/addIdForElement
Add id for element in html
2019-06-12 11:05:45 +08:00
Yogi_Wang
d996c958a0 Add id for element in html
Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-06-11 18:07:06 +08:00
Yogi_Wang
b44e24fe81 Fix bug when we use language with pt-br; change the harbor version from 1.7.x to 1.8
fix bug when we use language with pt-br;
change the harbor version from 1.7.x to 1.8
Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-06-11 10:09:33 +08:00
wang yan
873b18c5dc Add ensure settings when to search user in auth proxy
This issue is regresssion that introduced by f92bc8076d (diff-42381e6df5f17ebd3d9165a325d5d8f4), the a.ensure() was removed from SearchUser(), which leads to the alwaysonboard cannot be updated.

Signed-off-by: wang yan <wangyan@vmware.com>
2019-05-23 14:56:27 +08:00
Yogi_Wang
26d34d8b19 Clear inlineAlert when reopen create project;change add robot error handle
clear inlineAlert when reopen create project;change add robot error handle

Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-05-15 15:28:23 +08:00
Wang Yan
a9204541a3
Merge pull request #7800 from reasonerjt/oidc-onboard-user-name-v1.8
Set the real name of OIDC user when onboarding -cherrypick to 1.8 branch
2019-05-15 11:36:51 +08:00
Wang Yan
65d6e32415
Merge pull request #7797 from stonezdj/fix_7793_v180
cherry-pick fix issue7793: ping ldap server is always success
2019-05-15 11:36:17 +08:00
Wenkai Yin
21dbc48609
Merge pull request #7792 from ninjadq/cherry-pick-180-fix_chart_url
Cherry pick 180 fix chart url
2019-05-15 11:35:09 +08:00
Daniel Jiang
7b3c542bdc Set the real name of OIDC user when onboarding
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-05-15 00:51:27 +08:00
stonezdj
b17f6f8514 fix issue7793: ping ldap server is always success
Signed-off-by: stonezdj <stonezdj@gmail.com>
2019-05-14 19:56:00 +08:00
jwangyangls
6b5c9047eb
Merge pull request #7790 from jwangyangls/add_way_to_oidc_1.8
Add a way to login to OIDC by clicking login button
2019-05-14 16:18:57 +08:00
Qian Deng
194c306a2d Fix frontend failure caused by absolute path
Fix failures because front downlowd chart using relative path

Signed-off-by: Qian Deng <dengq@vmware.com>
2019-05-14 15:05:22 +08:00
Qian Deng
6f0a74a90d Enable absolute url in helm chart
assign public_url to chart-url
remove namespace merge in index.yaml

Signed-off-by: Qian Deng <dengq@vmware.com>
2019-05-14 14:59:38 +08:00
Daniel Jiang
4877100a84
Merge pull request #7786 from reasonerjt/oidc-login-403-v1.8.0
Update login controller to return 403 for redirection - cherrypick to 1.8 branch
2019-05-14 14:56:03 +08:00
Yogi_Wang
a33dcb327e Add a way to login to OIDC by clicking login button
add a way to login to OIDC by clicking login button through response status 403

Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-05-14 14:25:08 +08:00
Daniel Jiang
9809847e25 Update login controller to return 403 for redirection
As the UI cannot handle 302, update the login controller to return 403
and put the redirection URL in a json response body.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-05-14 11:22:27 +08:00
Yogi_Wang
b1d3f8502d Fix_cron schedule bug when call api ' get/schedule ' error
Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-05-13 14:09:36 +08:00
Steven Zou
7576800eb2
Merge pull request #7370 from burdzwastaken/fix/spelling-credentail
Fix misspellings of the word credential
2019-05-10 17:28:50 +08:00
Daniel Jiang
d81afe274c Add filter to handle request with ID token (#7759)
This commit allows request with a valid ID token to access the API.

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2019-05-10 16:58:25 +08:00
Wenkai Yin
7ee9063c2b
Merge pull request #7758 from ywk253100/190509_bug_fix
Fixes bug in replication
2019-05-10 16:49:19 +08:00
Wenkai Yin
8348c1fa4b
Merge pull request #7635 from heww/validation-failed-status-code
Return 400 status code for validation failed
2019-05-10 14:22:05 +08:00
Wenkai Yin
a7384fc881 Fixes bug in replication
Use internal service name rather than 127.0.0.1 when calling APIs of core in jobservice jobs

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-05-10 14:18:57 +08:00
Steven Zou
e091916d54 fix UT case failure (#7734)
Signed-off-by: Steven Zou <szou@vmware.com>
2019-05-10 13:15:44 +08:00
jwangyangls
4218206b59
Merge pull request #7753 from jwangyangls/addOidcMoreLink
Add Oidc more info link in configration
2019-05-10 10:37:52 +08:00
He Weiwei
58cbaaace8 Return 400 status code for validation failed
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-05-10 10:35:25 +08:00
Fangyuan Cheng
aa68471dfa
Merge pull request #7743 from pureshine/modify-text
Modify the prompt for deleting resources when creating a replication rule.
2019-05-10 00:17:47 +08:00
Yogi_Wang
cd42637f51 Add Oidc more info link in configration
Signed-off-by: Yogi_Wang <yawang@vmware.com>
2019-05-10 00:04:33 +08:00
Wang Yan
774a9f8d75
Remove unused configure item cfg_expiration (#7744)
Signed-off-by: wang yan <wangyan@vmware.com>
2019-05-09 22:07:18 +08:00
Wenkai Yin
9cc203d15b
Merge pull request #7740 from ywk253100/190509_huawei
Rename the adapter name of huawei to huawei-SWR
2019-05-09 21:53:24 +08:00
Wenkai Yin
5ce57a24ac
Merge pull request #7739 from ywk253100/190508_upgrade
Fixes #7693, the filters of replication policy is lost after upgrade
2019-05-09 20:16:13 +08:00
jwangyangls
cc4da4bbbd
Merge pull request #7725 from jwangyangls/fixCancel_cannot_work
Fix question of `Cancel` of OIDC configuration does not work
2019-05-09 17:40:15 +08:00
Wenkai Yin
b73f8a96c3 Fix issue: replication cannot work when Harbor is deployed on Kubernetes whose hairpin mode is disabled (#7718)
Fix issue https://github.com/goharbor/harbor-helm/issues/222: replication cannot work when Harbor is deployed on Kubernetes whose hairpin mode is disabled

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-05-09 17:10:32 +08:00
Wenkai Yin
4f6116f9c0 Rename the adapter name of huawei to huawei-SWR
Rename the adapter name of huawei to huawei-SWR. Fixes #7732

Signed-off-by: Wenkai Yin <yinw@vmware.com>
2019-05-09 17:00:00 +08:00
Mia ZHOU
4e583ad65a
Merge pull request #7731 from jwangyangls/fix_ui_issue1.8
Fix uncheck pull for the robot account generation, pull permission is still assigned
2019-05-09 16:42:11 +08:00