stonezdj(Daojun Zhang)
96ba34a93c
Allow empty path in redirect_url ( #20238 )
...
fixes #20226
Signed-off-by: stonezdj <daojunz@vmware.com>
Co-authored-by: stonezdj <daojunz@vmware.com>
2024-04-09 02:24:57 +00:00
stonezdj(Daojun Zhang)
5b832c1724
Limit url to local path ( #20025 )
2024-02-24 01:34:30 +00:00
Shengwen YU
88c6018950
fix: cron string validation ( #19071 )
...
fix: cron string validation (the 1st field of a cron string must be 0 when there are 6 fields)
Signed-off-by: Shengwen Yu <yshengwen@vmware.com>
2023-08-09 10:22:54 +08:00
stonezdj(Daojun Zhang)
320c64e433
Sort user and usergroup by most match order ( #18273 )
...
fixes #17859
Signed-off-by: stonezdj <daojunz@vmware.com>
2023-03-01 10:11:21 +08:00
stonezdj(Daojun Zhang)
0dc7a6806c
Add NextScheduledTime in schedule object ( #16925 )
...
Add NextSchedule in utils
Add NextScheduledTime in ScheduleObj to display it in UI
Signed-off-by: stonezdj <stonezdj@gmail.com>
2022-06-06 22:17:41 +08:00
Wang Yan
248be37c3e
clean code of common util ( #15287 )
...
Remove the useless code from the common util
Signed-off-by: Wang Yan <wangyan@vmware.com>
2021-07-09 15:35:05 +08:00
stonezdj
82f59cb760
Add temporary secret for harbor proxy service
...
Use GenerateRandomStringWithLength function to generate secret for harbor_proxyservice
Add harbor-proxyservice secret used by proxy service
Signed-off-by: stonezdj <stonezdj@gmail.com>
2020-06-15 14:43:43 +08:00
DQ
ea5c27fcd5
Enhance: Upgrade encrypt alg to sha256
...
previous sha1 will still used for old password
Signed-off-by: DQ <dengq@vmware.com>
2019-09-09 21:48:21 +08:00
wang yan
a23ff4e448
Update pull time in artifact table for docker image pull
...
Signed-off-by: wang yan <wangyan@vmware.com>
2019-07-28 12:30:20 +08:00
He Weiwei
e625f2aa11
feat(quota,api): APIs for quotas
...
Signed-off-by: He Weiwei <hweiwei@vmware.com>
2019-07-25 13:40:26 +08:00
clouderati
587459df15
Replacing copyright notices with "Copyright Project Harbor Authors".
...
Signed-off-by: clouderati <35942204+clouderati@users.noreply.github.com>
2018-09-19 16:59:36 +00:00
stonezdj
9dca49ba6e
LDAP group DN should be case insensitive
...
Fix issue #5776 , LDAP servers are case insensitive. because only LDAP
group DN is used to compare/equal operation, lowercase all LDAP group DN
when retrieves it from LDAP server, and lowercase them before save in DB
Signed-off-by: stonezdj <stonezdj@gmail.com>
2018-09-06 11:33:05 +08:00
陈德
0582db9a82
Apply consistent format for comments
...
Signed-off-by: 陈德 <chende@caicloud.io>
2018-09-05 16:16:31 +08:00
Yan
efdb57548f
add admin job api ( #5344 )
...
It supports Harbor admin to trigger job either manual or
schedule. The job will be populated to job service to execute.
The api includes:
1. POST /api/system/gc
2, GET /api/system/gc/:id
3, GET /api/system/gc/:id/log
4, PUT/GET/POST /api/system/gc/schedule
2018-07-20 19:22:37 +08:00
stonezdj
f5e82f75a7
Add SafeCast function and set default value for some sytem configure
...
Add SafeCastString, SafeCastInt, SafeCastFloat64, SafeCastBool function to check
the type matched and avoid panic in runtime
Add default value to configure settings to avoid cannot save configure
issue
2018-07-17 17:00:06 +08:00
Wenkai Yin
3448fd9a2d
Fix SSRF security issue #3755 in ping target, email server and LDAP server APIs
2018-01-04 12:26:17 +08:00
Wenkai Yin
e79334a445
Add interfaces to implement project level policy ( #3271 )
...
* add interfaces to implement project level policy
2017-09-26 16:41:08 +08:00
Steven Zou
7ee052b9dd
Update policy scheduler according to comments
2017-07-11 15:22:00 +08:00
Wenkai Yin
f7412b0c31
update auth context as Admiral's API changed
2017-07-06 18:32:22 +08:00
Wenkai Yin
b8d17eeb79
replace trimleft with trimprefix
2017-06-16 16:30:40 +08:00
Wenkai Yin
b2380818fd
support query logs according to conditions
2017-06-08 14:44:08 +08:00
Tan Jiang
da19700a1e
replace math/rand with crypto/rand
2017-04-25 17:47:40 +08:00
wy65701436
53f7cfb967
replace go header
2017-04-13 03:54:58 -07:00
Wenkai Yin
414e8a8bcf
Merge remote-tracking branch 'upstream/dev' into 170224_merge_config
...
Conflicts:
make/docker-compose.tpl
src/ui/service/token/authutils.go
2017-02-24 13:52:19 +08:00
Wenkai Yin
dc432d5575
support multiple namespace fix #1217
2017-02-07 13:13:42 +08:00
Wenkai Yin
f1f78a5649
update
2017-01-19 17:56:08 +08:00
yhua
311cf8da07
change code 20161019
2016-10-21 18:39:10 +08:00