Commit Graph

10759 Commits

Author SHA1 Message Date
Yang Jiao
6a2b7b3040
Merge pull request #16306 from YangJiao0817/specify-pg-version-13in2.3
[cherry-pick]Specify postgresql version to 13
2022-01-27 17:30:50 +08:00
Yang Jiao
33654c9f17 Specify postgresql version to 13
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-27 08:27:38 +00:00
Yang Jiao
1fa8fee58c
Merge pull request #16213 from YangJiao0817/specify-pgsqlversion13-2.3
[cherry-pick]Specify postgresql version to 13
2022-01-20 10:51:45 +08:00
Yang Jiao
e001f6203c Specify postgresql version to 13
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2022-01-18 03:24:54 +00:00
Yang Jiao
239680cd48
Merge pull request #16088 from YangJiao0817/fix-singularity-case-for-arm
Modify push_index and push_sif case to be compatible arm
2021-12-10 15:23:18 +08:00
Yang Jiao
ab0540758d Modify push_index and push_sif case to be compatible arm
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-10 06:20:42 +00:00
Qian Deng
21b6dac2a1
Merge pull request #16105 from ninjadq/release-2.3.0
Fix: using traditional `PKCS#1` format RSA key
2021-12-10 14:15:38 +08:00
DQ
76766612dc Remove tempory workaround for openssl
Signed-off-by: DQ <dengq@vmware.com>
2021-12-10 11:35:30 +08:00
Qian Deng
9ef7e22e8e Fix: using traditional PKCS#1 format RSA key
The openssl 3.0.0 using newer `PKCS#8` format.
But it's not compatitable with harbor core
So using tradictional format instead

Signed-off-by: Qian Deng <dengq@vmware.com>
2021-12-10 00:19:59 +08:00
Yang Jiao
1c50b47ff2
Merge pull request #16066 from YangJiao0817/bump-up-version-to-v2.3.5
Bump up version to v2.3.5
2021-12-07 10:41:15 +08:00
Yang Jiao
71d1d6b6f2 Bump up version to v2.3.5
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-12-07 09:40:47 +08:00
Wang Yan
1ee3f5164d
add pull update control env (#16061)
These variables are temporary solution for issue: goharbor#16039
When user disable the pull count/time/audit log, it will decrease the database access, especially in large concurrency pull scenarios.

1, PULL_TIME_UPDATE_DISABLE : The flag to indicate if pull time is disable for pull request.
2, PULL_COUNT_UPDATE_DISABLE : The flag to indicate if pull count is disable for pull request.
3, pull audit log will not create on disabling pull time.

Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-11-26 18:12:59 +08:00
Yang Jiao
1a0f7f903e
Merge pull request #16059 from YangJiao0817/rbi-1126
Refresh base image
2021-11-26 11:39:05 +08:00
Yang Jiao
b8a0f47f07 Refresh base image
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-26 02:47:58 +00:00
stonezdj(Daojun Zhang)
ab1665a303
Merge pull request #16015 from stonezdj/2.3.0_cache_configuration
(cherry-pick) Enable db config cache explicitly
2021-11-17 15:39:42 +08:00
stonezdj
9e8f82a7bd Enable db config cache explicitly
previous config is not cached because it is initialized when cache is not ready

Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-11-17 14:10:22 +08:00
Yang Jiao
7a068b121e
Merge pull request #15981 from YangJiao0817/update-version-to-v2.3.4
bump up version to v2.3.4
2021-11-09 18:32:12 +08:00
Yang Jiao
e6ae7e4555 bump up version to v2.3.4
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-09 17:21:12 +08:00
Yang Jiao
0a6ba0ad63
Merge pull request #15979 from YangJiao0817/refresh-base-image-2.3-1109
Refresh base image
2021-11-09 15:01:00 +08:00
Yang Jiao
82c843b3ea Refresh the Base image
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-09 13:53:32 +08:00
stonezdj(Daojun Zhang)
aef657a32c
Merge pull request #15734 from stonezdj/2.3_allow_null_email
(cherry-pick) Allow empty email attribute for ldap/oidc user
2021-11-08 10:33:28 +08:00
Yang Jiao
f47a34d747
Merge pull request #15947 from YangJiao0817/include-test-case-e2e-image-2.3
[Cherry-pick]Add e2e image include test case in 2.3
2021-11-05 17:53:17 +08:00
Yang Jiao
b9f67efd1c Add e2e image include test case
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-04 14:55:49 +08:00
Yang Jiao
e4d3007385
Merge pull request #15922 from YangJiao0817/refresh-base-image-2.3-1102
Refresh the Base image
2021-11-02 15:18:24 +08:00
Yang Jiao
3ae59b2e52 Refresh the Base image
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-11-02 10:18:48 +08:00
stonezdj
5e10d9698f Allow empty email attribute for ldap/oidc user
Define user.Email as sql.NullString to avoid unique constraint when email is empty in LDAP/OIDC
  Separate the common/models/User with the pkg/user/dao/User
  Fixes #10400
Signed-off-by: stonezdj <stonezdj@gmail.com>
2021-10-22 14:37:43 +08:00
Yang Jiao
36c95aa5e3
Merge pull request #15773 from YangJiao0817/cherry-pick-helm-cli-to2.3
[Cherry pick]Update helm cm-push plugin
2021-10-13 15:53:23 +08:00
Yang Jiao
1df1915cb0 Update helm cm-push plugin
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-10-13 11:06:11 +08:00
Steven Zou
a0a9ed8a9d
Merge pull request #15657 from heww/cherry-pick-pr-15568
[Cherry pick]refactor: using ctx from http request for credMaker of preheat enforcer
2021-09-24 14:18:31 +08:00
Daniel Jiang
2223100a05
Merge pull request #15638 from YangJiao0817/update-version-tov2.3.3
Update version to v2.3.3
2021-09-24 14:15:25 +08:00
Wenkai Yin(尹文开)
05d5f36748
Merge pull request #15655 from heww/cherry-pick-pr-15567
[Cherry pick]refactor: initialize the remote helper using ctx from http request
2021-09-24 13:51:40 +08:00
He Weiwei
8b80f99df9 refactor: using ctx from http request for credMaker of preheat enforcer
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-09-24 05:18:52 +00:00
He Weiwei
81fb60d170 refactor: initialize the remote helper using ctx from http request
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-09-24 03:44:14 +00:00
Yang Jiao
8060d120f8
Merge pull request #15639 from YangJiao0817/refresh-base-image-v2.3.3
Refresh the Base image before release V2.3.3
2021-09-23 11:45:53 +08:00
Yang Jiao
73131b4336 Refresh the Base image before release V2.3.3
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-09-23 10:50:57 +08:00
Yang Jiao
0ec6132070 Update version to v2.3.3
Signed-off-by: Yang Jiao <jiaoya@vmware.com>
2021-09-23 10:11:00 +08:00
Yang Jiao
fec5775e6d
Add trigger file for building base (#15608)
If build base images is needed in a unexpected situation, build base images action will be triggered by making a modification of .buildbaselog.

Signed-off-by: danfengliu <danfengl@vmware.com>

Co-authored-by: danfengliu <danfengl@vmware.com>
2021-09-22 14:09:00 +08:00
Daniel Jiang
2a5a2b62d3
Merge pull request #15622 from reasonerjt/rm-error-user-ctl-get-2.3
[Cherrypick - v2.3]Do not check security context in Get of user controller
2021-09-22 12:12:44 +08:00
Daniel Jiang
cec9bd2dc0
Merge pull request #15626 from reasonerjt/oidc-username-prty-v2.3
[Cherrypick - v2.3] Make sure auto-onboard username claim has higher priority
2021-09-22 12:12:26 +08:00
Daniel Jiang
286b43e380 Make sure auto-onboard username claim has higher priority
This commit adjust the priority when consolidating data from userinfo
endpoint and id token, making sure the auto-onboard username claim from
ID token has highest priority.

fixes #15504

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2021-09-22 08:58:52 +08:00
Daniel Jiang
c1a9ac3580 Do not check security context in Get of user controller
This commit make sure when security context is not found the `Get`
function in user controller should not return error.
Because this func will be called by security middleware, at which point
of time the security context is not generated.
Additionally, checking security context is not necessary because the
permission checking is already done in the API handler layer.

fixes #15535

Signed-off-by: Daniel Jiang <jiangd@vmware.com>
2021-09-21 16:46:41 +08:00
Christopher Jenkins
f37e6cab0b Logrotate fails when cwd is not accessible
Logrotate is run with sudo as the syslog user by cron.hourly
The current working directory is `/root` which is inaccessible to the syslog
user so the logrotate command fails. Currently the following stderr is being
thrown away by the cron script:
```
error: cannot open current directory: Permission denied
```

Fixes #15468

Signed-off-by: Christopher Jenkins <christj@gmail.com>
2021-09-16 11:32:51 +08:00
He Weiwei
998655409d
fix: use ctx from http request for middlewares (#15523) (#15544)
1. Use ctx from http request for the readonly middleware.
2. Refactor the AuthenticateHelper to let it get orm from ctx of the http request.
3. Change to use ctx from http request for oidc and authproxy http handlers.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-09-09 14:10:20 +08:00
Wenkai Yin(尹文开)
1ada46f9ce
Merge pull request #15509 from heww/cherry-pick-avoid-panic-of-retry
[Cherry pick]fix: avoid panic in the RetryUntil (#15501)
2021-08-30 11:22:41 +08:00
He Weiwei
609591b181 fix: avoid panic in the RetryUntil (#15501)
1. Use jpillora/backoff to get the backoff to avoid the panic in RetryUntil.
2. Return with last err when retry timeout.

Signed-off-by: He Weiwei <hweiwei@vmware.com>
2021-08-29 15:31:29 +00:00
孙世军
d7f5b7e968
Correct clrDgTotalItems for tag-retention-tasks component (#15494)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-08-26 16:05:41 +08:00
孙世军
472ad1de24
Fix some UI bugs (#15487)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-08-26 14:56:37 +08:00
孙世军
93465f6a1d
Fix chart download issue (#15473)
Signed-off-by: AllForNothing <sshijun@vmware.com>
2021-08-24 17:04:53 +08:00
Yang Jiao
6b6c21da21
Merge pull request #15446 from YangJiao0817/updata-version-to2.3.2
Upgrade version to v2.3.2
2021-08-18 16:25:09 +08:00
Yang Jiao
2d833a738d
Merge pull request #15447 from YangJiao0817/modify-GCP-repo-in-workflow-git-action
Modify GCP repo in build package workflow
2021-08-18 16:24:44 +08:00