Steven Zou
405e89158a
Merge pull request #5364 from steven-zou/fix_file_missing_issue
...
Fix the issue of returning '* file not found' error
2018-07-23 15:32:02 +08:00
Steven Zou
2f0b706f84
Fix the issue of returning '* file not found' error
...
return default empty when file is not existing
2018-07-23 14:53:40 +08:00
Daniel Jiang
b9762afbdd
Clean up vendor folder
...
Add `prune` section to Gopkg.toml to remove the unused packages from
vendor folder.
Update the reference of `semver` and `distribution` repo.
2018-07-23 14:40:25 +08:00
Steven Zou
bb380e6dbc
Merge pull request #5314 from steven-zou/chart_repo_supporting
...
Refactor chart API endpoints
2018-07-20 20:43:55 +08:00
Steven Zou
0227a1315a
Keep the chart server related configurations in adminserver
...
append chart server related config options to the supporting list of adminserver
provide chart server related config access method in the API layer
update prepare script and ui env template file to enable cache driver config for chart server API
append flag info in the systeminfo API to indicate if chart server is deployed with Harbor
refactor the response rewriting logic to return structual error object
add api init method to initilizing objects required in API handlers
chage owner of the storage folder
update offline/online package scripts in Harbor-Util.robot
2018-07-20 19:40:33 +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
Steven Zou
726d81803b
Fix conflicts in Makefiles and prepare script files with upstream
2018-07-19 03:17:05 -07: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
Yan
9e65499c10
Add garbage collection job implemention, this job could ( #5268 )
...
be triggered by manual and schedule. It calls registrtctl
to do the GC job, and log the output.
2018-07-16 18:08:40 +08:00
Yan
d5b85a6748
Add the registry controller httpserver, it's responsible for controlling ( #5265 )
...
docker regsitry. This version has the API to call regsitry GC with jobservice
secret. Seprates it into a standalone container as do not want to invoke two
processes in one container.
It needs to mount the registry storage into this container in order to do GC,
and needs to copy the registry binary into it.
2018-07-16 16:50:28 +08:00
Steven Zou
b572e64a68
Refactor chart API endpoints
...
add /chartrepo after /api
add /chartrepo before /index.yaml,/:repo/index.yaml and /:repo/charts/:filename
add debug messages to the potential debug points
add more supporting mime types "multipart/form-data", "application/octet-stream" to the API endpoints
update travis file to inject ENV for UT cases of chart repo
2018-07-16 14:33:39 +08:00
Wenkai Yin
8a92019e8e
Merge pull request #5310 from reasonerjt/adminserver-update-schema
...
Let adminserver initialise the DB schema.
2018-07-16 12:52:11 +08:00
Daniel Jiang
0d6ea995e1
Let adminserver initialise the DB schema.
...
This commit make update to remove the code from ui container to init the
DB schema. As UI has dependency on admin server, so it's safe to assume
adminserver has to be ready first. Regardless the setting of the config
store of admin server, it will try to access and intialize the schema of
database.
2018-07-13 17:32:17 +08:00
Daniel Jiang
8f8a6a1fc9
Merge pull request #5304 from steven-zou/chart_repo_supporting
...
Add API routes of chart repo services in harbor API router
2018-07-13 16:55:49 +08:00
Steven Zou
3a44f76b94
Add API routes of chart repo services in harbor API router
...
add chart repo API controller
update GetChartVersion to extract repo name from the request
update the corresponding UI cases
update the chart controller initialization process
2018-07-13 16:10:46 +08:00
timchenxiaoyu
a912a55ac2
add sync registry env ( #5294 )
...
By default Harbor will call catalog API of registry and sync the result to DB, this becomes problematic when registry is configured to custom storage service, there maybe inconsistent result and the whole process may be very time consuming.
So in this commit a env var SYNC_REGISTRY is introduced if user want Harbor to sync the repo when it starts up, by default it's false.
2018-07-13 11:15:41 +08:00
Daniel Jiang
e415d56099
Merge pull request #5258 from steven-zou/chart_repo_supporting
...
Implement the API services to support chart repo functions
2018-07-11 18:46:36 +08:00
Steven Zou
6ea9291c09
Refactor code after PR reviewing
...
pass cache config to the constructor of chart cache
use break loop to instead of return in GetIndexYaml
fix typo reids to redis
pass credential to the reverse proxy and chart client via constructors
2018-07-11 17:31:34 +08:00
Steven Zou
da4359f56b
Add UT cases for the code of supporting chart repo server
...
add UT cases for cache
add UT cases for ChartOperator
add UT cases for the main API service of chart server
export some consts in the security.go of filter package to let them visible in chartserver package
2018-07-11 13:55:35 +08:00
Steven Zou
44cbb29664
Add cache support for the querying of chart details
...
support in memory cache
support redis cache
2018-07-08 11:17:55 +08:00
Steven Zou
7d782c41fc
Implement the functions of getting chart version details and chart lists
...
getting chart list returns chart list instead of map and provides total versions info
getting chart details will return dependencies and values besides the metatdata of the chart version
2018-07-06 20:53:13 +08:00
Daniel Jiang
ad7a85da51
Merge pull request #5200 from stonezdj/add_group_search_api
...
Add REST API to search LDAP by Group DN
2018-07-06 15:10:31 +08:00
Steven Zou
b65cc34c70
Implement a unified index.yaml entrypoint service to support namespace isolations
...
replace the helm package from github.com to k8s.io
implement /index.yaml service API
2018-07-05 18:07:00 +08:00
stonezdj
62acdb14f3
Add settings to define admin with LDAP group DN
2018-07-05 14:46:44 +08:00
stonezdj
2494a7aaab
Add REST API to search LDAP by Group DN
...
Used to verify and search DN when adding group member to project
2018-07-05 12:55:44 +08:00
Daniel Jiang
e1474ac50b
Merge pull request #5242 from steven-zou/chart_repo_supporting
...
Implement the related handler methods of the transparent operations
2018-07-04 21:16:07 +08:00
Steven Zou
ce4e5ac01d
Implement the related handler methods of the transparent operations based on proxy
...
support index file
support object downloading
support health checking
support related manipulating operations except getting chart version
2018-07-03 21:36:20 +08:00
Steven Zou
6dfccc7dea
Merge pull request #5074 from ninjadq/ldap_search_ui
...
Add LDAP search UI
2018-07-03 15:30:18 +08:00
Deng, Qian
72dfdd552f
Add ldap serach
...
1. Add group management
2. Add rewrite import user to member ui
3. Add import group to member
4. Add new items in configuration page
2018-07-03 14:00:59 +08:00
Daniel Jiang
b02d100fb5
Merge pull request #5234 from steven-zou/chart_repo_supporting
...
Define the related handlers to handler the requests of chart server/repo
2018-07-03 11:05:11 +08:00
Deng, Qian
edbe2fe620
Update migrator to 1 6 0
...
1. Add new alembic_pg folder for postgres
2. Add migration file for 1.6.0
3. Update version to 1.6.0
4. update migrator dockerfile
2018-07-02 21:23:47 +08:00
Steven Zou
54a0d10994
Define the related handlers to handler the requests of chart server/repo
...
add chartserver directory to put chart server code
add controller to coordinate the flow
add base/repo/manipulation handlers to handle requests
add operator to parse more details of chart version
call dep ensure
2018-07-02 19:34:04 +08:00
Daniel Jiang
1afb09b6cf
Merge pull request #5194 from ywk253100/180626_search
...
Fix bug in search API
2018-06-29 21:13:09 +08:00
Qian Deng
3ba302622c
Merge pull request #5213 from vmware/replication_by_label_ui
...
Label filter UI for replication
2018-06-29 07:44:26 -04:00
Daniel Jiang
aef3213dfa
Merge pull request #5190 from stonezdj/reload_config
...
Fix issue that harbor tile can not save customized settings
2018-06-29 13:04:36 +08:00
Daniel Jiang
c9b1962b1e
Initialise Harbor DB schema in Harbor UI/adminserver container
...
This commit fixes #5040 , the harbor-db image will only contain empty
databases, and harbor ui container will use migrate tool to run initial
SQL scripts to do initialization. This is helpful for the case to
configure Harbor against external DB or DBaaS like RDS for HA deployment
However, this change will results some confusion as there are two tables
to track schema versions have been using alembic for migration, for this
release we'll try to use alembic to mock a `migration` table during
upgrade so the migrator will be bypassed, in future we'll consider to
consolidate to the golang based migrator.
Another issue is that the UI and adminserver containers will access DB
after start up in different congurations, can't ensure the sequence, so
both of them will try to update the schema when started up.
2018-06-28 16:22:53 +08:00
stonezdj
72e9b22e10
Fix issue that harbor tile can not save customized settings
2018-06-28 16:20:10 +08:00
Wenkai Yin
982760a132
Fix bug in search API
...
Refactor the logic of search API to fix bug mentioned in issue #5156 and #3838
2018-06-27 12:51:08 +08:00
Wenkai Yin
66811b3289
Merge pull request #5160 from ywk253100/180619_response_code
...
Parse the error got from jobservice, fix #5047
2018-06-22 17:17:26 +08:00
stonezdj
d6a4d79a03
Handle Invalid syntax and not found error
2018-06-20 14:27:29 +08:00
Wenkai Yin 79628
078360a021
Parse the error got from jobservice, fix #5047
...
Parse the error got from jobservice, and return the corresponding HTTP code if it's a HTTP error to caller
2018-06-19 13:30:06 +08:00
Daniel Jiang
1fae22add1
Merge pull request #5157 from pengpengshui/repLabelNew
...
Add replication rule label filter function #4861
2018-06-16 04:40:56 +08:00
pfh
ffbcdf62a0
Modify small bugs about code
2018-06-15 17:46:00 +08:00
pfh
963830b9d1
Add replication rule label filter
2018-06-15 11:03:47 +08:00
clouderati
60e88351b6
Small change to clarify wording deployment security toggle setting in project(s).
2018-06-14 17:37:05 -04:00
Wenkai Yin
952bba6d6c
Merge pull request #5141 from ywk253100/180613_label_resource
...
Provide an API to return the resources that a label is referenced by
2018-06-14 12:56:17 +08:00
Wenkai Yin 79628
3298c05157
Provide an API to return the resources that a label is referenced by
...
The API returns the resources that the label is referenced by. The resources contain only replication policies for now.
2018-06-14 11:52:19 +08:00
stonezdj
f025f28d12
If the LDAP user group already exist return 409 when onboarding an LDAP group
...
Do not adding the LDAP user group again.
2018-06-12 19:17:02 +08:00
Daniel Jiang
255a6d6f95
Merge pull request #5070 from ywk253100/180601_label_fuzzy_match
...
Fix #4742 : fuzzy match label name
2018-06-12 14:39:35 +08:00
pfh
6f8ad44d5c
set default border when add label without color
2018-06-11 16:58:32 +08:00
Qian Deng
9b5cd7d046
Merge pull request #5115 from pengpengshui/replicaton
...
Add name validation when creat new replication rule #5050
2018-06-11 04:03:44 -04:00
Qian Deng
7cbd3a4a96
Merge pull request #5110 from pengpengshui/leftNav
...
Hidden pwd button if auth_mode is not db_auth
2018-06-11 03:09:42 -04:00
pfh
2366f6a39f
Add name validate when creat new replication rule
2018-06-11 11:34:17 +08:00
Daniel Jiang
7254b438ca
Merge pull request #5109 from ywk253100/180607_label
...
Soft delete label
2018-06-07 22:56:43 -07:00
Qian Deng
19e9fbf446
Merge pull request #5026 from pengpengshui/spelling
...
Modify spelling about 'serverity' to severity #4983
2018-06-08 01:47:30 -04:00
Wenkai Yin 79628
0c56493fb6
Soft delete label
...
Modify the deletion of label to soft deletion, in this way the names of deleted labels referenced by replication rules can be shown to users
2018-06-07 17:14:12 +08:00
pfh
2c2211dcfb
Hidden pwd button if auth_mode is not db_auth
2018-06-07 14:20:12 +08:00
Deng, Qian
e1814597d8
Change the admin rename UX
...
Change the rename operation from double click icon to click button
2018-06-05 22:52:45 +08:00
pfh
81271c8e31
Mofify admin can't change existing pwd
2018-06-04 16:08:46 +08:00
pfh
4cca83ee9a
Merge upstream master
2018-06-01 16:57:41 +08:00
Yan
6d800cabbd
enable migrator to support 1.5.0 migration from mysql to pgsql ( #5029 )
...
This commit is to enable data migrator to support migrates data
from mysql to pgsql, this is a specific step for user to upgrade
harbor across v1.5.0, as we have move harbor DB to pgsql from
1.5.0. It supports both harbor and notary db data migration,
and be split into two steps with dependency.
It also fix issue #4847 , add build DB migrator in make process.
2018-06-01 14:58:43 +08:00
Wenkai Yin 79628
07c092c9be
Fix #4742
...
This commit provides the support of fuzzy matching for label name when listing labels
2018-06-01 07:38:21 +08:00
pfh
8b2b3b1594
Add func about after create label close create panel
2018-05-31 15:07:48 +08:00
pfh
76cbe3b5d2
Modify tag detail alert when without clarity
2018-05-31 14:30:57 +08:00
Qian Deng
82b57971c0
Merge pull request #5057 from pengpengshui/projectcheck
...
Fix create project name doesn't have tooltip #5000
2018-05-30 23:25:27 -04:00
Qian Deng
aec9fabefb
Merge pull request #5051 from pengpengshui/colorpanel
...
Add dropdown for label color panel and modify color disappear on Mac
2018-05-30 23:23:14 -04:00
pfh
56e438b9c3
Fix create project name doesn't tooltip
2018-05-30 18:32:02 +08:00
pfh
1ec0ea01dc
Add func about admin reset user`s pwd
2018-05-30 16:29:43 +08:00
pfh
73c23dbe45
add dropdown for color panel and delete type=button
2018-05-30 11:05:01 +08:00
Daniel Jiang
2f4950b80c
Merge pull request #5034 from ywk253100/180524_relativeurl
...
Fix replication issue when the remote registry enables relativeurls
2018-05-25 19:33:29 +08:00
Daniel Jiang
4eec586425
Merge pull request #5030 from ywk253100/180522_change_password
...
Update change password API
2018-05-25 11:05:12 +08:00
Wenkai Yin 79628
29a4a3335e
Fix replication issue when the remote registry enables relativeurls
...
The location header returned by the remote registry contains no scheme and host parts if "relativeurls" is enabled,
this commit fix it by adding them at the beginning of location.
2018-05-24 15:34:31 +08:00
Steven Zou
9943c0cd07
Merge pull request #5021 from pengpengshui/asynctask
...
Add async task progress and delete dialog task progress #4371
2018-05-23 15:20:13 +08:00
Wenkai Yin 79628
76274dbf84
Update change password API
...
Modify the changing password API to support that admin user can change the password of normal users without old password
2018-05-22 19:02:20 +08:00
pengpengshui
9989a67d09
Merge pull request #5022 from pengpengshui/hightlights
...
Modify leftnav and tab have no hightLight about #4996
2018-05-22 18:12:00 +08:00
pfh
1121c8a76b
Add async task progress and delete dialog task progress #4371
...
norm code
2018-05-22 14:42:06 +08:00
pfh
9992241163
Modify spelling about serverity
2018-05-22 14:21:45 +08:00
Wenkai Yin 79628
ab41977dcf
Log error message in server side
...
Record the errors which are only returned to frontend in the server side for easy debugging.
2018-05-22 11:36:08 +08:00
stonezdj(Daojun Zhang)
2844d137d3
Merge pull request #5020 from stonezdj/fix_login_500
...
Fix error 500 with error username
2018-05-21 21:14:30 +08:00
pfh
a51af4a1c5
Modify leftnav and tab have no hightLight
2018-05-21 18:57:36 +08:00
Steven Zou
fb33f83b9a
Merge pull request #5003 from ywk253100/180517_label_filter_api
...
Add label filter in replication policy API
2018-05-21 18:55:02 +08:00
stonezdj
a1b668921b
Fix error 500 with error username
2018-05-21 18:23:10 +08:00
pengpengshui
d16cddda04
Merge pull request #4986 from pengpengshui/leftNav
...
Filter out existimg members when add a new member #4364
2018-05-21 18:19:39 +08:00
pfh
14614b3572
Filter out existimg members when add a new member #4364
2018-05-21 17:27:20 +08:00
Wenkai Yin 79628
ad62fffb0e
Add label filter in replication policy API
...
The label filter can be used to filter images when do the replication, this commit provides the filter in replication policy
2018-05-21 15:01:17 +08:00
Daniel Jiang
c2c667c6d6
Merge pull request #4976 from ywk253100/180514_parallel_pull_tag
...
Request repository and tag list in parallel
2018-05-21 15:00:44 +08:00
Deng, Qian
b3749bd4a4
Deploy button send event based on latest tag
...
If latest tag exist sent provision event. Otherwise send Add additional info event.
2018-05-17 17:07:27 +08:00
stone
d3930ae17c
Put user info into session ( #4885 )
...
Fix the following issues.
1) GroupList is not found in SecurityContext user info
2) Retrieve multiple memberof information from LDAP.
3) If user is in two groups with guest, administrator role separately, display the max privilege role.
2018-05-17 16:23:51 +08:00
Steven Zou
6a7ba4609f
Merge pull request #4977 from ninjadq/fix_observable_issues
...
Fix 'xxx' is not a function err
2018-05-17 14:07:19 +08:00
Deng, Qian
a8025d2b32
Fix 'xxx' is not a function err
...
Because new version of rxjs you need import function manually, update code to avoid related errors.
Issues #4923 #4904 are caused by this problem.
2018-05-16 14:00:19 +08:00
Steven Zou
3917512d3e
Merge pull request #4962 from ywk253100/180509_label_filter
...
Add label filter to filter chain
2018-05-15 20:12:34 +08:00
Wenkai Yin 79628
c1ebf0ba1e
Add label filter to filter chain
...
Label filters are used to filter the resources according to the labels, adding the filters to the chain to enable the function.
2018-05-15 19:19:01 +08:00
Deng, Qian
43c8e9f589
Fix all tslint warnings
...
1. Fix tslint warnings
2. Add tslint to travis
2018-05-15 16:28:23 +08:00
stonezdj
44006247a6
Fix issue of import LDAP user 404 message
...
Some user requires return json format message in 404
2018-05-15 16:05:11 +08:00
Wenkai Yin 79628
6243fed8f5
Request repository and tag list in parallel
...
When using S3 or others as the registry storage, the request for repository and tag list may be very slow. This commit fixes this by parallel requesting the resources.
2018-05-15 15:47:32 +08:00
Daniel Jiang
b537ea96f3
Merge pull request #4925 from stonezdj/fix_ldap_import_404
...
Fix issue of import LDAP user 404 message
2018-05-14 16:15:49 +08:00
stonezdj
931e17330c
Fix issue of import LDAP user 404 message
...
Some user requires return json format message in 404
2018-05-11 15:33:35 +08:00
Steven Zou
9b01d3a2f6
Merge pull request #4899 from ninjadq/mv_string_to_html_n_css
...
Fix legacy issues that html and css file are written on ts file.
2018-05-11 15:22:37 +08:00
Deng, Qian
282a63f57f
Fix legacy issues that html and css file are written on ts file.
...
Currently, our html and css files are written as string on .ts file. This pr is to solve the legacy issue.
2018-05-10 18:39:48 +08:00
Daniel Jiang
cf79e9ee8d
Merge pull request #4910 from vmware/fix_none_zero_issue
...
Improve the error handling capabilities of job service
2018-05-10 16:41:49 +08:00
Steven Zou
4db708096b
Add retry for getting configs from admin server when doing job conetxt initialization
2018-05-10 15:26:59 +08:00
Steven Zou
f7bc467c99
Return none zero code when job service exit with error
...
replace fmt.Println/logger.Errorf with logger.Fatal(f)
2018-05-10 14:44:04 +08:00
stone
7863d7ffa0
Delete debug.test
2018-05-10 14:32:47 +08:00
Daniel Jiang
3ca439c71a
Sync user info after UAA user is logged in ( #4900 )
...
This is a fix for #4895 .
Currently the user's UserId and HasAdminRole data will not be populated correctly after a user in UAA is logged in.
2018-05-10 11:49:13 +08:00
Deng, Qian
2ef1a92a93
Add ng-packagr to packaging harbor-ui npm repo
...
Using ng-packagr to build and publish npm repo
2018-05-09 10:59:22 +08:00
pfh
8f90e9c987
Add multiple filter options for log #4360
2018-05-08 16:02:53 +08:00
pfh
2f6dcce0d5
rewrite layout about filter by label and tesecase #4809
2018-05-08 12:10:24 +08:00
pfh
5006693fd6
Modify global search project and adjust selected label position
2018-05-04 10:27:40 +08:00
stone
e6a52f49a4
Merge pull request #4722 from stonezdj/security_context_for_group3
...
Update security context for assign role to project group member
2018-05-03 17:17:41 +08:00
stonezdj
b8a48d0326
Update security context for assign role to project group member
...
The project list will contain all public projects, user is a member of this project, or user is in the group which is a member of this projects.
Change the behaviour of user roles, if the user is not a member of this project, then return the user's groups role of current project
2018-05-03 16:49:16 +08:00
Steven Zou
9746f9f2a9
Merge pull request #4838 from ninjadq/cherry_pick_hardcode_url_back_master
...
Fix URL hardcode on replication service
2018-05-03 16:01:54 +08:00
Qian Deng
9e1e66beeb
Merge pull request #4839 from pengpengshui/language
...
Modify issue about cannot switch language to franch
2018-05-03 15:57:19 +08:00
Deng, Qian
8d79747085
Fix URL hardcode on replication service
...
Url hardcoded in replication service. This commit is to fix it.
2018-05-03 13:46:17 +08:00
pfh
80ff0e4553
Modify issue about cannot switch to franch
2018-05-02 15:48:55 +08:00
pfh
ad74297a14
Modify harbor-ui version
2018-05-02 15:41:47 +08:00
pfh
08f750b04d
Merge remote-tracking branch 'upstream/master' into labelFilter
2018-05-02 14:14:15 +08:00
Wenkai Yin
e5efa034a8
Fix bug #4819 : the scheduled rule can not be removed
...
When checking the jobs of the rule which are going to be deleted, only get the transfer and delete jobs.
2018-04-28 18:43:49 +08:00
Deng, Qian
6ba6dcd1d5
Fix bugs that some place hardcode url addr
...
In the repositories and projects service some url is hardcoded.
2018-04-28 01:07:15 +08:00
Deng, Qian
18c8686d57
Fix bugs infinity copy of reponame and auth
...
1. everytime click deploy or add additional info will add a prefix before reponame
2. add constrait on button on cardview
2018-04-28 00:50:57 +08:00
stone
413ae9a8cb
Merge pull request #4808 from stonezdj/master
...
Merge pull request #4798 from stonezdj/release-1.5.0
2018-04-27 18:44:05 +08:00
pfh
30fe99790b
Modify images filter with label issue
2018-04-27 17:42:58 +08:00
Yan
ae257433cc
Fully migrate harbor db to postgresql ( #4689 )
...
* Merge harbor db to postgres
2018-04-27 02:27:12 -07:00
Wenkai Yin
f77e4167ac
Merge pull request #4802 from ywk253100/180427_label_db
...
Modify unique constraint of table harbor_label
2018-04-27 17:10:05 +08:00
stone
68cf63bbef
Merge pull request #4798 from stonezdj/release-1.5.0
...
Return 404 if user is not found
2018-04-27 17:01:17 +08:00
pengpengshui
4dda6d8875
Merge pull request #4784 from pengpengshui/labelFilter
...
Add sort fun when filter labels in tag page #4617
2018-04-27 15:35:45 +08:00
pfh
b520addf08
Add sort fun when filter label in tag page #4617
2018-04-26 10:24:25 +08:00
Qian Deng
ac8e5d6e25
Merge pull request #4768 from ninjadq/fix_bug_search_result
...
Fix bug on search result ui
2018-04-25 15:55:48 +08:00
pengpengshui
888379dfb5
Merge pull request #4764 from pengpengshui/addLock
...
Fix issue about read only mode warning undisappear about #4741
2018-04-25 13:17:11 +08:00
Wenkai Yin
54d6b08e7c
Merge pull request #4777 from reasonerjt/fix-clair-sev
...
Fix mis-interpretation of severity in Clair
2018-04-25 12:27:40 +08:00
pengpengshui
585bde163f
Merge pull request #4767 from pengpengshui/stickLabel
...
Modify color panel and add labels to imgs frequently click problem
2018-04-25 11:34:48 +08:00
Tan Jiang
93c448d91b
Fix mis-interpretation of severity in Clair
...
Currently "Critical" vulnerablity is treated as "Unknown" in Harbor.
This commit provides a quickfix that it will be interpret as "High". In
future, we should consider introduce "Critical" and enable UI to handle
it to be more consistent with CVSS spec.
2018-04-25 10:31:12 +08:00
Deng, Qian
456b0c40cb
Fix bug on search result ui
...
Fix issue #3852 , After global search result returned if you research another item, the content will not refresh.
2018-04-23 19:58:22 +08:00
pfh
566e867984
Modify color panel and add labels to imgs click problem
2018-04-23 19:07:44 +08:00
pfh
9994ea6974
fix issue about read only mode warning undisappear about #4741
2018-04-23 11:24:31 +08:00
pfh
f72a41694a
Modify tooltips size about authentication
2018-04-23 10:51:37 +08:00
pfh
cdcaff10bf
Modify click to registry under project
2018-04-20 21:30:40 +08:00
Deng, Qian
de0927578f
Fix bug sent multiple scan request
...
Every time after add lable or delte lable scan button will trigger multiple requests
2018-04-20 19:42:04 +08:00
Steven Zou
6bab3310ae
Merge pull request #4755 from pengpengshui/replication
...
Modify replication rule list not seleted when load first
2018-04-20 19:29:13 +08:00
pfh
e92ef72902
Modify replication rule list not seleted first
2018-04-20 18:58:37 +08:00
Daniel Jiang
641f01eb0e
Merge pull request #4738 from steven-zou/fix_nil_job_logger_issue
...
Return the logger.Interface instead of the pointer of logger to avoid nil checking issue
2018-04-20 18:53:44 +08:00
Steven Zou
a17436962f
Return the logger.Interface instead of the pointer of logger to avoid nil checking issue
2018-04-20 14:59:28 +08:00
Tan Jiang
1fc4142e1a
Do not call chown
to config files
...
This commit fixes a recently discovered issue on Kubernetes #4496
It make necessary to avoid calling `chown` to config files during the
bootstrap of the containers.
2018-04-20 13:44:21 +08:00
Steven Zou
4da4dd6694
Merge pull request #4717 from pengpengshui/breadScrumb
...
Modify bread crumb for vic
2018-04-19 19:24:27 +08:00
Steven Zou
850c09f3f4
Merge pull request #4723 from pengpengshui/skinnable
...
Modify login bg image position about skinnable
2018-04-19 17:32:02 +08:00
Fuhui Peng (c)
890cbb727c
Modify harbor-ui version
2018-04-19 15:52:30 +08:00
Fuhui Peng (c)
9082b50bb9
Merge branch 'master' of https://github.com/vmware/harbor into breadScrumb
2018-04-19 15:34:20 +08:00
Steven Zou
6f83b9e563
Fix the issue of causing the UI UT cases failed
...
downgrade the zone.js version to 0.8.19 and fix it
2018-04-19 15:30:12 +08:00
Fuhui Peng (c)
3c42277651
Modify loginBg position about skinnable
2018-04-19 14:03:19 +08:00
Steven Zou
9a2b522a2f
Merge pull request #4720 from ninjadq/fix_default_view_to_card_view
...
Fix default view problem and styles issues
2018-04-19 13:46:55 +08:00
Fuhui Peng (c)
cdefac82e7
Delete needless code about breadcrueb
2018-04-19 12:28:13 +08:00
Fuhui Peng (c)
e41db9469e
Merge remote-tracking branch 'upstream/master' into breadScrumb
2018-04-19 11:11:43 +08:00
Daniel Jiang
f8d577994f
Merge pull request #4719 from reasonerjt/fix-db-broken-pipe
...
Fix intermittent `broken pipe` issue in log
2018-04-19 10:23:59 +08:00
Deng, Qian
ca9de64cdb
Fix default view problem and styles issues
...
Set default view of repo to cardview
Fix card title style issue that break test
2018-04-18 21:16:06 +08:00
Fuhui Peng (c)
8a41bcab93
Modify bread crumb for vic
2018-04-18 18:29:06 +08:00
Daniel Jiang
5792829951
Merge pull request #4706 from ywk253100/180418_admiral
...
Fix bug #4688
2018-04-18 18:23:24 +08:00
Tan Jiang
7fa8261661
Fix intermittent broken pipe
issue in log
...
This commit fixes #4713 , by adopting the suggested fix in:
https://github.com/go-sql-driver/mysql/issues/529
When creating the DB instance in orm, call `SetConnMaxLifetime()`
2018-04-18 17:39:13 +08:00
stone
2f1989d211
Merge pull request #4672 from ninjadq/fix_bug_search_member_by_username
...
Add query string when get members
2018-04-18 16:42:28 +08:00
Wenkai Yin 79628
f6bd2f245d
Fix bug #4688
...
Fix bug: the user can push images although he have no permisson by checking empty value before assign permissions.
2018-04-18 12:03:06 +08:00
Deng, Qian
02b00724f9
Fix readonly mode show in vic and rewording the tooltip
...
Hidden readonly mode on vic
Reword the tooltip
2018-04-18 12:02:54 +08:00
Deng, Qian
cb79d1c38b
Fix bugs on configuration save
...
When configuration saving, an error undefined no atrribute toString will occur. This commit will fix it.
2018-04-17 20:12:34 +08:00
Deng, Qian
c31fb5ddf2
Fix UI/UX issues and manuely refresh component when fresh
...
1. Fix card-title text alignment
2. Trancate text in title if length greater then 29
3. Fix auto refresh data when loading next page in card-view
2018-04-17 19:50:23 +08:00
pengpengshui
813f6d2ed2
Merge pull request #4684 from pengpengshui/labelCase
...
Add filter images by label testcase
2018-04-17 18:17:10 +08:00
Deng, Qian
286defa367
Add query string when get members
2018-04-17 15:36:29 +08:00
pfh
2989ad6c92
Delete a unused file
2018-04-17 10:57:21 +08:00
Qian Deng
0f271710ae
Merge pull request #4673 from ninjadq/fix_bug_4665
...
Fix bug 4665 project admin can not change the role of some user
2018-04-17 10:47:03 +08:00
pfh
786a082fff
Fix issue about label filter and I18n
2018-04-17 10:22:46 +08:00
pfh
e9052dd42a
Merge remote-tracking branch 'upstream/master' into fixIssue
2018-04-17 10:19:16 +08:00
Steven Zou
ca8d3bdcc9
Merge pull request #4638 from vmware/use_redis_url_addr
...
Use redis URL address to replace host:port when connecting to redis server
2018-04-17 10:12:51 +08:00
pfh
bd28eb4541
Add Filter Label about imgs
2018-04-17 10:08:19 +08:00
Deng, Qian
9eec96afd6
Fix bug 4665 project admin can not change the role of some user
2018-04-16 18:57:26 +08:00
stonezdj
7e57c685ac
Add project member search by name
...
Previous implementation contains the search user by name feature. This implementation can search user and user group by name.
2018-04-16 18:38:10 +08:00
Daniel Jiang
63ad0efd4f
Merge pull request #4637 from ywk253100/180412_bugfix
...
Bug fix
2018-04-13 19:39:50 +08:00
Yan
ab4018e967
Fix readonly error message and push existing image bug ( #4654 )
2018-04-13 19:22:28 +08:00
Steven Zou
adc2f8f124
Use redis URL address to replace host:port when connecting to redis server
...
replace tcp host:port with
'redis://arbitrary_usrname:password@ipaddress:port/database_index'
update prepare to generate config yaml file of job service based on harbor.cfg
update harbor.cfg default values
2018-04-13 19:19:56 +08:00
pengpengshui
4ab135a7ed
Merge pull request #4645 from pengpengshui/fixIssue
...
Fix issue about label filter #4636
2018-04-13 11:33:59 +08:00
Wenkai Yin 79628
ed0effb9c2
Bug fix
...
When deleting tags belonged to the same repository concurrently, the repository may be deleted by one API call and the other calls get 404. This commit logs a warning message and doesn't return 404.
2018-04-13 10:57:22 +08:00
pfh
9ebe8d64da
Fix issue about label filter #4636
2018-04-13 09:49:17 +08:00
wangyan
04816222c0
Update ci test images to busybox
2018-04-12 18:21:20 -07:00
Steven Zou
b5b728bee3
Fix the vulnerability issues in the job service code
...
'Errors unhandled' in 'jobservice/job/impl/logger/job_logger.go'
'TLS InsecureSkipVerify set true' in 'jobservice/opm/hook_client.go'
2018-04-12 15:12:39 +08:00
stonezdj
de49165427
Refactor project member API
...
1) Remove the previous /api/projects/?:project_id/members/:userid
2) Move the /api/projects/:project_id/projectmembers/?:pmid to
/api/projects/:project_id/members/?:pmid
3) Change the project member maintain ui to call new REST API
2018-04-11 17:49:33 +08:00
Daniel Jiang
1be9f9af20
Merge pull request #4627 from wy65701436/fix-readonly-issue
...
Log error when to write response body in readonly filter
2018-04-11 17:15:58 +08:00
pfh
8e4de81dfc
Fix issue about links text and i18n
2018-04-11 14:50:55 +08:00
wangyan
d005ff941f
log error when to write response body in readonly filter
2018-04-10 23:17:30 -07:00
Deng, Qian
4788a9fe3a
Add deploy and add additional info on action bar
2018-04-10 20:50:51 +08:00
pengpengshui
0d576fb19b
Merge pull request #4610 from pengpengshui/fixIssue
...
Add bread crumb under project
2018-04-10 17:27:54 +08:00
pfh
5b6fe1fccc
add bread crumb under project
2018-04-10 16:04:15 +08:00
Wenkai Yin
352c45b3ff
Fix log API random failure on travis
2018-04-10 15:30:24 +08:00
pengpengshui
3cf075d9bb
Merge pull request #4602 from pengpengshui/labelCase
...
Label case
2018-04-09 18:07:36 +08:00
pfh
c80e33fd73
Midify label color panel about #4580
2018-04-09 15:54:30 +08:00
Steven Zou
2b799a576b
Merge pull request #4595 from vmware/enable_auth_checking
...
Apply auth checking to all the incoming requests
2018-04-09 12:50:34 +08:00
Steven Zou
85ae40f5ec
Apply auth checking to all the incoming requests
2018-04-08 18:12:13 +08:00
pengpengshui
d94699dca3
Merge pull request #4585 from pengpengshui/fixIssue
...
Modify read only mode position, fix other issue
2018-04-08 17:46:06 +08:00
Steven Zou
529ad3e079
Merge pull request #4593 from vmware/add_more_log_2_js
...
Fix issue: failed to update the status of job if runtme error occurred
2018-04-08 14:03:34 +08:00
Daniel Jiang
9474a9773e
Merge pull request #4592 from reasonerjt/secret-in-header
...
Store secret in header instead of cookie
2018-04-08 13:32:10 +08:00
Steven Zou
233692c127
fix issue: job context may be nil pointer when trying to be closed in defer func
2018-04-08 13:03:23 +08:00
Deng, Qian
109c6a28fb
Abstract repo click as a output event
2018-04-08 11:00:37 +08:00
Steven Zou
1cb40368f5
Fix issue: failed to update the status of job if runtme error occurred
2018-04-08 10:38:47 +08:00
Tan Jiang
ff06ec05c3
Store secret in header instead of cookie
2018-04-07 22:02:06 +08:00
Daniel Jiang
b5f52bc3fb
Merge pull request #4586 from reasonerjt/job-context-props
...
Read the system properties from scan job context
2018-04-07 10:23:30 +08:00
Daniel Jiang
b0860c9da0
Merge pull request #4584 from ywk253100/180404_dep
...
Update packages github.com/Sirupsen/logrus, github.com/gorilla/context and github.com/garyburd/redigo to new version
2018-04-05 12:25:22 +08:00
Tan Jiang
15580a5e8c
Read the system properties from scan job context
2018-04-04 19:58:54 +08:00
pfh
9c5cc58f41
Modify read only mode position, fix other issue
2018-04-04 17:09:10 +08:00
stone
df63a73fd4
Merge pull request #4483 from stonezdj/api4assign_role_to_group4
...
Add REST API for assign role to group
2018-04-04 16:19:37 +08:00
stonezdj
9bcfaedc0e
Add REST API for assign role to group
2018-04-04 13:39:42 +08:00
Qian Deng
1296a09034
Merge pull request #4577 from ninjadq/reduce_properties_in_hbr_repository
...
Reduce properties in hbr repository
2018-04-04 10:47:55 +08:00
Deng, Qian
0e3edeb0a8
Reduce properties in <hbr-repositry>
2018-04-03 19:55:31 +08:00
Deng, Qian
46ec21ae80
Fix bug vulnerability notification not showing
2018-04-03 18:00:09 +08:00
Steven Zou
44808650be
Merge branch 'master' into job_service
2018-04-03 16:28:26 +08:00
Wenkai Yin
79f0ca96bc
Merge pull request #4572 from ywk253100/180402_job
...
Hide schedule job when listing replication jobs
2018-04-03 16:12:10 +08:00
Wenkai Yin
46ec8c70fa
Update packages github.com/Sirupsen/logrus, github.com/gorilla/context and github.com/garyburd/redigo to new version
2018-04-03 11:48:06 +08:00
pengpengshui
73e32d1735
Merge pull request #4562 from pengpengshui/label
...
Modify label filter issue and add stick label to image case
2018-04-03 09:39:05 +08:00
Wenkai Yin
500651a5a1
Hide schedule job when listing replication jobs
2018-04-03 01:11:55 +08:00
Daniel Jiang
3af2b0caa5
Merge pull request #4568 from reasonerjt/scan-job-migrate
...
Scan job migrate
2018-04-02 21:40:30 +08:00
Tan Jiang
7aec4d9f21
Add UT and remove useless code.
2018-04-02 21:28:46 +08:00
Steven Zou
6c69a8cd05
Fix issue of stopping periodic job
...
improve op command by using cache
return 404 if no job found to stop
2018-04-02 18:08:03 +08:00
pfh
e5a757d78d
Modify label filter issue and add stick label to image case
2018-04-02 14:45:52 +08:00
pengpengshui
6a1af52949
Merge pull request #4542 from pengpengshui/tagdetail
...
Add repo read only
2018-04-02 13:41:46 +08:00
Steven Zou
fee7f6ddef
Merge branch 'job_service' into switch_job_service
2018-04-02 12:06:23 +08:00
Steven Zou
35fe857b07
Fix nil pointer issue in replication/target
2018-04-02 11:12:20 +08:00
Wenkai Yin
3436729d52
Merge pull request #4547 from ywk253100/180328_schedule_replication_job
...
Move schedule replication job to new jobservice
2018-03-30 21:03:45 +08:00
Steven Zou
0dd595ca63
Merge job_service into switch_job_service and fix conflicts
2018-03-30 19:30:56 +08:00
Steven Zou
ba91fc2861
Merge master into job_service and fix conflicts
2018-03-30 19:26:04 +08:00
Wenkai Yin
dd40f187ec
Move schedule replication job to new jobservice
2018-03-30 17:44:05 +08:00
Steven Zou
250360307b
Modify docker compose file template and make file to enable new job service
...
Fix typo in Makefile under photon
Fix version tag issue of redis container
Assign container name for redis container
Update docker compose template to enable network for redis
Remove exposed ports of redis from compose yaml tpl
2018-03-30 16:52:55 +08:00
Yan
892d9bf023
bypass docker client retry on push in readonly mode ( #4524 )
2018-03-29 23:49:00 -07:00
Daniel Jiang
07d7d467e7
Merge pull request #4539 from reasonerjt/trust-admiral-cert
...
Trust Root CA of VIC appliance when accessing Admiral
2018-03-30 13:30:15 +08:00
pfh
a43451c7ea
Add repo read only and modify label issue
2018-03-30 11:38:45 +08:00
Steven Zou
013028ef4a
Replace old job service package with V2 (rename packages)
2018-03-30 11:22:29 +08:00
Steven Zou
bfbb949034
Use the new job service(v2) to replace the old one
2018-03-29 23:30:03 +08:00
Steven Zou
d1899c840d
Merge branch 'master' into job_service
2018-03-29 23:25:20 +08:00
Tan Jiang
5dd75bb0b0
Trust Root CA of VIC appliance when accessing Admiral
2018-03-29 19:53:41 +08:00
Steven Zou
9889d4badd
Add UT cases for package pool
2018-03-29 19:50:44 +08:00
Deng, Qian
74cbfcb926
Add cardview for harbor
2018-03-29 19:37:23 +08:00
Deng, Qian
557c68a57c
Abstract repo click as a output event
2018-03-29 19:37:23 +08:00
Steven Zou
e454456de2
Merge branch 'job_service' into add_ut_period
2018-03-28 19:54:03 +08:00
Qian Deng
6ca2f39186
Merge pull request #4491 from danielefranceschi/master
...
fix size suffix label for >1GB images
2018-03-28 18:44:43 +08:00
Steven Zou
d7aa1dacf0
Add UT cases for package period
2018-03-28 17:35:57 +08:00
Daniel Jiang
2c2cbd9c52
Merge pull request #4510 from reasonerjt/master
...
Add indexes to job tables and bump up schema version.
2018-03-28 16:58:16 +08:00
Steven Zou
75f4f7e0a4
Merge pull request #4513 from vmware/steven_job_service
...
Add UT cases for package opm (update travis yaml to start redis conta…
2018-03-28 16:30:03 +08:00
Tan Jiang
b6df6cf169
Add indexes to job tables and bump up schema version.
2018-03-28 16:15:54 +08:00
Wenkai Yin
22e06c46e3
Merge pull request #4512 from ywk253100/180328_replication_hook
...
Handle replication job status hook
2018-03-28 16:10:51 +08:00
Steven Zou
33c3603af2
Add waiting time before triggering http request
2018-03-28 15:57:59 +08:00
Steven Zou
d3909bb633
Add UT cases for package opm (update travis yaml to start redis container)
...
Fix data race issue in opm package
2018-03-28 15:28:34 +08:00
Wenkai Yin
55035ada2d
Merge pull request #4490 from ywk253100/180326_label
...
Delete the mapping relationship between resources and labels when the label is deleted
2018-03-28 14:38:01 +08:00
Steven Zou
d183226570
Merge pull request #4507 from vmware/steven_job_service
...
Fix the issue of causing config test failed
2018-03-28 14:16:09 +08:00
Qian Deng
a12c213cd1
Merge pull request #4494 from pengpengshui/tagdetail
...
Modify tag detail page and fix label bugs
2018-03-28 14:10:01 +08:00
Steven Zou
ee2da73c71
Refactor the job stats manager (remove useless object references)
2018-03-28 12:51:55 +08:00
Steven Zou
3ce31586df
Fix the issue of causing config test failed
2018-03-28 12:40:36 +08:00
Steven Zou
b943bed6e6
Refactor redis pool and job stats manager for clarifying functions
...
also add UT cases for logger and part of opm package
Fix config test case issue
2018-03-28 12:11:45 +08:00
Daniel Jiang
0918a0ac7e
Merge pull request #4504 from reasonerjt/scan-job-migrate
...
Integrate with status hook of jobservice
2018-03-28 09:50:49 +08:00