Wenkai Yin
51297cdfd7
Merge pull request #3887 from ywk253100/171227_ssrf
...
Fix SSRF security issue #3755 in ping target, email server and LDAP server APIs
2018-01-04 18:11:47 +08:00
Daniel Jiang
8e5115c832
Merge pull request #3870 from stonezdj/ldap_syncuser2
...
Sync user email in ldap #3663
2018-01-04 13:28:51 +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
Tan Jiang
e02de2068a
Enable configuring the CA Certificate for UAA
...
Enable configuring the path of root cert of UAA in harbor.cfg. It only
takes effects if the verify_cert is set to "true" If the file does not
exist, the configuration is skipped.
The intention for this commit is to support integration with nested UAA
in PAS or PKS, we don't expect user to manually configure this value,
though he can do it if he wants.
2018-01-03 16:21:29 +08:00
Wenkai Yin
96a63c56b1
Merge remote-tracking branch 'upstream/master' into 180103_merge
2018-01-03 10:32:03 +08:00
Wenkai Yin
a9d7403bee
Update project ID property if needed when updating replication policy
2017-12-27 15:04:26 +08:00
stonezdj
35716dedd3
Sync user email in ldap #3663
2017-12-26 18:53:32 +08:00
stonezdj
9f99d0400c
Call EscapeFilter for filter to avoid security issue
2017-12-26 15:34:14 +08:00
Daniel Jiang
94c78b3bee
Merge pull request #3858 from xuri/master
...
Simple code and typo fixed.
2017-12-26 12:06:27 +08:00
Tan Jiang
da20e4f11c
Search UAA when adding member to a project.
...
1)Enable UAA client to search UAA by calling '/Users' API.
2)Implement 'SearchUser' in UAA auth helper, register it to auth
package.
2017-12-26 00:25:32 +08:00
Ri Xu
9adccd3723
Simple code and typo fixed.
...
Signed-off-by: Ri Xu <xuri.me@gmail.com>
2017-12-23 20:55:07 +08:00
yixingjia
fa67e11680
Merge pull request #3831 from yixingjia/HA_Clair
...
Make Clair DB configurable
2017-12-21 11:31:26 +08:00
Tan Jiang
12cd733678
Remove useless code from UI router and API
...
Some URLs are not used on UI, so they are removed. And the validation
code of API is removed as we use the security context approach.
fix test issue
2017-12-20 23:10:38 +08:00
yixingj
f63588855f
Make Clair DB configurable
...
Make the HOST,PORT,USERNAME,DB configurable for
Clair
2017-12-20 18:29:50 +08:00
Wenkai Yin
8d62d989a5
Fix bug #4791
...
Remove the table join when querying repositories with project name
2017-12-19 21:47:39 +08:00
Tan Jiang
2ffc58a5d4
Refactor the configuraiton of UAA
...
Remove the attribute "uaa_ca_root" from harbor.cfg and introduce
"uaa_verify_cert". Similar to LDAP settings, this allow user to
explicitly turn of the cert verification against UAA server, such that
the code will work with self-signed certificate.
2017-12-19 14:42:07 +08:00
Daniel Jiang
62cebbdb5d
Merge pull request #3797 from reasonerjt/uaa-restriction
...
Disable user management features when auth mode is UAA.
2017-12-18 22:47:08 +08:00
Daniel Jiang
cdadc94d0f
Merge pull request #3804 from ywk253100/171215_jobservice
...
Print stack trace when recover from panic and print warning message rather than returning an error when updating 0 records
2017-12-18 16:36:20 +08:00
Tan Jiang
224f75b9a6
Refactor /users API, add more restircation in password reset
...
Simplified the code when checking if a user is modiable in different
auth modes.
Also add restriction in password, such that when the auth mode is not DB
auth, only the super user can choose to reset his password.
2017-12-18 14:32:29 +08:00
Wenkai Yin
260ef561c4
Update the HTTP client for easy use by add more util functions
2017-12-16 06:45:59 +08:00
stonezdj
9393d26fdc
Fix ldap ping issue #3653
2017-12-15 14:47:54 +08:00
Wenkai Yin
a736cb7b09
Update the HTTP client according to the comments
2017-12-15 09:40:31 +08:00
Wenkai Yin
b5e7de331e
Delete enabled and start_time properties of replication rule
2017-12-15 09:40:31 +08:00
Wenkai Yin
fe10c2e7f5
Create replicator to submit replication job to jobservice
2017-12-15 09:40:31 +08:00
Wenkai Yin
8b4fdfc2cc
Add unit tests for replication related methods
2017-12-15 09:40:31 +08:00
Wenkai Yin
a54b7dd4c0
Merge remote-tracking branch 'upstream/master' into 171219_merge
2017-12-15 08:48:57 +08:00
Wenkai Yin
43489c2b67
Print stack trace when recover from panic and print warning message rather than returning an error when updating 0 records
2017-12-14 13:48:45 +08:00
stone
cbd1431333
Merge pull request #3726 from stonezdj/ldap_refactor2
...
Refactor LDAP code
Changes include:
1. Use session to manage the lifecycle of LDAP connections
2. Abstract common AuthenticateHelper interface for db_auth, ldap_auth, uaa_auth
2017-12-13 16:21:20 +08:00
stonezdj
ec67974104
Refactor ldap
...
Changes include:
1. Use Session to manage the lifecycle of ldap connections
2. Abstract common AuthenticateHelper interface for db_auth, ldap_auth,
uaa_auth mode
2017-12-13 14:57:04 +08:00
Wenkai Yin
665a54edc3
Merge remote-tracking branch 'upstream/master' into 171213_merge
2017-12-13 13:40:24 +08:00
yixingj
9b03c93afd
Add database driver for Harbor configurations
...
1>Add a new database driver for configurations
2> change the current default driver from json
to database
2017-12-06 13:06:54 +08:00
Wenkai Yin
594d213630
Publish replication notification for manual, scheduel and immediate trigger
2017-12-04 15:07:30 +08:00
Daniel Jiang
d13321f2b5
Support getting user info via token in UAA Client ( #3686 )
2017-11-27 18:13:36 +08:00
Wenkai Yin
6b0ee138e5
Implement immediate trigger and the methods of WatchList
2017-11-27 14:23:21 +08:00
stonezdj
16243cfbbc
Add LDAP remote certifcate validation
...
push test
Add unit test for ldap verify cert
remove common.VerifyRemoteCert
Update code with PR review comments
Add change ldaps config and add UT testcase for TLS feature
add ldap verfiy cert checkbox about #3513
Draft harbor ova install guide
Search and import ldap user when add project members
Add unit test case for SearchAndImportUser
ova guide
Add ova install guide
Add ova install guide 2
Add ova install guide 3
Call ValidateLdapConf before search ldap
trim space in username
Remove leading space in openLdap username
Remove doc change in this branch
Update unit test for ldap search and import user
Add test case about ldap verify cert checkbox
Modify ldap testcase
2017-11-24 12:41:51 +08:00
Wenkai Yin
31cf6c078e
Implement replication policy manager
2017-11-16 10:55:03 +08:00
Steven Zou
c2e0c8d1f2
Define the related interfaces for triggers and core controllers of replication service
2017-11-10 15:06:24 +08:00
reasonerjt
19a13e8575
Deprivilege harbor-ui harbor-jobservice harbor-adminserver
...
Use non-root user to run the service within these docker images, and provide HEALTHCHECK
mechanism.
2017-11-09 03:09:09 -08:00
Wenkai Yin
149b628292
update
2017-11-09 16:20:56 +08:00
Wenkai Yin
5cef58baa1
update according to the comments
2017-11-08 17:53:41 +08:00
Daniel Jiang
8dfe5f0bfc
Merge pull request #3536 from ywk253100/171102_fail_earlier
...
Fail earlier when found database schema dismatch
2017-11-07 15:01:14 +08:00
Wenkai Yin
5293a9287b
Fail earlier when found database schema dismatch
2017-11-07 13:07:56 +08:00
Tan Jiang
512384722a
Make the internal URL of UI and JobService configurable
2017-11-03 20:43:25 +08:00
Wenkai Yin
51d5df0849
Update replication policy API to support trigger and filter
2017-11-02 14:59:26 +08:00
Steven Zou
87d966e369
Merge pull request #3510 from steven-zou/master
...
Update the alternate policy and corresponding task to support byweekly
2017-11-01 21:51:04 -05:00
Steven Zou
cee0bcec22
Update the alternate policy and corresponding task to support by weekly besides daily
2017-11-01 13:55:56 +08:00
Wenkai Yin
0ddca31355
Add column id to table project_metadagta as the primary key
2017-10-30 17:37:25 +08:00
Wenkai Yin
5b2ececae8
Merge pull request #3436 from ywk253100/171020_meta_api
...
Add project metadata API
2017-10-27 05:16:50 -05:00
Wenkai Yin
c355034c14
Add project metadata API
...
Project metadata API can be used to integrated with project management
service which can not provide all metadatas needed by Harbor.
2017-10-27 17:05:15 +08:00
Daniel Jiang
d8634290e8
Merge pull request #3420 from reasonerjt/master
...
Add Unit test cases for Clair Client.
2017-10-23 12:18:05 +08:00
Tan Jiang
b925569767
Add Unit test cases for Clair Client.
2017-10-22 21:54:04 +08:00
Wenkai Yin
2156750b04
Move certificate verification to target level
...
The certificate verification is on system level before this commit. Moving it
to target level makes the configuration more flexible for different targets.
2017-10-20 15:36:56 +08:00
Wenkai Yin
66b2d0d3f3
Apply project level policies to standalone Harbor
...
The following features are only enabled in integration mode, this commit moves
these to standalone Harbor:
- Content trust policy: only signed images can be pulled
- Vulnerability policy: only images whose severity is below the threshold can be pulled
- Automatic scan policy: automatic scan pushed images
2017-10-19 17:33:28 +08:00
Tan Jiang
eab6b43d99
Make the root CA certificate of UAA should be configurable
2017-10-16 17:40:29 +08:00
Tan Jiang
51286d9baa
Provide UAA authenticator for password based authentication.
2017-10-07 00:16:53 +08:00
Wenkai Yin
e495357d98
implement the default project metadata manager
2017-09-28 16:17:51 +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
Wenkai Yin
dc4f2ece72
readjust package structure
2017-09-20 15:24:19 +08:00
Wenkai Yin
f0946b63cf
fix code style issues reported by golint
2017-09-19 17:16:54 +08:00
Wenkai Yin
8d7644b8b5
Merge pull request #3151 from ywk253100/170830_email_insecure
...
Expose the insecure flag for email configuration
2017-09-15 15:01:30 +08:00
weibaohui
84d66d85fa
Correct spelling
...
Correct spelling
2017-09-11 15:13:24 +08:00
Wenkai Yin
923a8d65b1
expose insecure flag in api
2017-09-04 15:10:07 +08:00
Daniel Jiang
f41d2ff436
Merge pull request #3101 from ywk253100/170822_replica
...
Convert 500 error returned by Admiral to duplicate project error when creating duplicate project
2017-08-22 15:59:19 +08:00
Wenkai Yin
599d94be0c
update
2017-08-22 15:22:25 +08:00
Wenkai Yin
ffb2f4201b
update
2017-08-22 14:28:45 +08:00
Wenkai Yin
bb958a7f4b
convert 500 error returned by Admiral to duplicate project error when creating duplicate project
2017-08-22 13:34:06 +08:00
Tan Jiang
c1bbcb5bab
update the interval of clair updater to 12 hours, and update the interval for scan all to 2 hours
2017-08-21 13:45:23 +08:00
Wenkai Yin
7296bdc131
increase length of username in database to 256
2017-08-17 15:24:34 +08:00
Tan Jiang
2ffcf10eaa
restart scan jobs when jobservice is started
2017-08-16 17:24:41 +08:00
Daniel Jiang
1403fe09ff
Merge pull request #3030 from reasonerjt/fix-jobservice-update-vuln-bug
...
Do not throw error if the scan result is unchanged
2017-08-11 13:26:15 +08:00
Tan Jiang
882683ae6f
Do not throw error if the scan result is unchanged
2017-08-10 17:26:39 +08:00
Tan Jiang
5846d7d28d
add cve link in Harbor API
2017-08-10 15:27:30 +08:00
Daniel Jiang
5ba363657f
Merge pull request #3006 from ywk253100/170808_bug_fix
...
[BAT]Remove useless codes
2017-08-09 16:05:16 +08:00
Daniel Jiang
78bacbc80a
Merge pull request #2978 from wy65701436/issue-2975
...
Issue 2975
2017-08-09 16:05:00 +08:00
Wenkai Yin
7fedca3a4a
remove useless codes
2017-08-09 15:13:51 +08:00
Daniel Jiang
383a09e21f
Merge pull request #2982 from reasonerjt/tc-vuln-data
...
add tc for vulnerability transform
2017-08-08 12:15:54 +08:00
Steven Zou
b6b232ce6a
Merge pull request #2945 from vmware/fix_issue_#2762
...
Fix data race issues of go sources
2017-08-07 21:57:03 +08:00
Tan Jiang
5b6c53a1bf
add the json file required by UT
2017-08-07 21:12:49 +08:00
wangyan
657d3c322f
fix issue 2975
...
udpate
update
update
update
update
update
2017-08-07 18:01:37 +08:00
Tan Jiang
8f41be471d
add tc for vulnerability transform
2017-08-07 17:14:51 +08:00
Steven Zou
21d3f4a549
Fix data race issues of go sources
2017-08-07 14:50:37 +08:00
Daniel Jiang
6bd622196e
Merge pull request #2972 from reasonerjt/master
...
Fix perf issue and connection leak in Clair.
2017-08-04 19:48:26 +08:00
Tan Jiang
fa0cb8731c
Fix performance issue and connection leakage
2017-08-04 19:22:52 +08:00
Daniel Jiang
d4dce3bb60
Merge pull request #2970 from wy65701436/issue-2965
...
fix 2965
2017-08-04 19:17:01 +08:00
wangyan
5b54b554ab
update
2017-08-04 18:59:16 +08:00
wangyan
bcc1a5c41d
fix 2965
...
update package
update
2017-08-04 18:44:00 +08:00
Wenkai Yin
8963a15520
remove useless insecure flag
2017-07-31 13:45:49 +08:00
Wenkai Yin
a8dc75dd15
update
2017-07-28 13:10:26 +08:00
Wenkai Yin
1da9b8653b
update according to the comments
2017-07-27 18:23:55 +08:00
Wenkai Yin
0a74a0f1e4
update
2017-07-27 08:17:29 +08:00
Wenkai Yin
71e4c3c447
Merge remote-tracking branch 'upstream/master' into 170724_registry
...
Conflicts:
src/ui/utils/utils.go
2017-07-26 18:46:41 +08:00
Wenkai Yin
cc264f85e7
do not ping if using raw token authorizer
2017-07-26 18:41:36 +08:00
Daniel Jiang
69c49dd7d1
Merge pull request #2856 from reasonerjt/project-scan-all
...
Provide API for scanning images under a project
2017-07-26 10:58:58 +03:00
Tan Jiang
10c8573464
provide API for scanning images under a projet
2017-07-26 15:19:17 +08:00
Steven Zou
7c2699953d
Fix config change watching issue
2017-07-25 20:27:25 +08:00
Yan
274f764622
update interceptor error code ( #2836 )
...
* update interceptor error code
* update
* update error string
* update interceptor error code
update
update error string
2017-07-23 18:34:44 -07:00
Wenkai Yin
b127ba391d
Merge pull request #2827 from ywk253100/170720_replic
...
Fix replicate issue
2017-07-20 18:48:33 +08:00
Wenkai Yin
2e427bffe2
fix replicate issue
2017-07-20 16:47:14 +08:00
Wenkai Yin
603d15671a
delete the method of getting security context of specific user
2017-07-19 18:05:50 +08:00
Steven Zou
8f921db588
Refine scheduler
2017-07-19 16:57:22 +08:00
Steven Zou
5c876621ec
Merge branch 'master' into fix_issue_#2793
2017-07-19 12:34:43 +08:00
Wenkai Yin
44ad4581e5
Merge pull request #2807 from ywk253100/170718_integration
...
Support basic auth in integration mode
2017-07-19 10:14:44 +08:00
Wenkai Yin
fc2bb51582
support basic auth in integration mode
2017-07-18 19:20:19 +08:00
Steven Zou
201095a259
Enhance scanning policy notify handler and add more testing cases
2017-07-17 23:43:24 +08:00
Steven Zou
db58ca673d
Fix issue of detecting configuration changes
2017-07-17 17:39:41 +08:00
Tan Jiang
629cf29850
The password to access clair db can be configured in harbor.cfg, skip auto-scan if clair-db is not ready
2017-07-17 15:25:47 +08:00
Tan Jiang
771e26a188
fix bug
2017-07-14 14:53:12 +08:00
Tan Jiang
72b3a020e3
provide default timestamp for all distros in system info api
2017-07-13 18:48:05 +08:00
Daniel Jiang
ca6bd3b585
Merge pull request #2741 from reasonerjt/fetch-timestamp-from-clairdb
...
read last update from clair db, return in system info
2017-07-12 17:16:30 +08:00
Tan Jiang
7fdb77f6d2
fix tc
2017-07-12 16:48:57 +08:00
Tan Jiang
436f0efab8
overall timestamp returns 0 when error happens, split check and mark into two func
2017-07-12 15:57:57 +08:00
Wenkai Yin
ba22ee5022
Merge pull request #2738 from ywk253100/170711_integration
...
Disable some APIs in integration mode
2017-07-12 15:13:50 +08:00
Tan Jiang
5f233f3e21
address comment
2017-07-12 15:05:27 +08:00
Wenkai Yin
005d783463
Merge pull request #2732 from ywk253100/170710_bug_fix
...
Bug fix
2017-07-12 12:59:24 +08:00
Tan Jiang
543cf62e14
read last update from clair db, return in system info
2017-07-11 21:26:31 +08:00
Wenkai Yin
52f9e5f1c8
disable some APIs in integration mode
2017-07-11 18:13:48 +08:00
Steven Zou
cbdf49c8e9
Merge remote-tracking branch 'upstream/master'
2017-07-11 15:44:32 +08:00
Steven Zou
7ee052b9dd
Update policy scheduler according to comments
2017-07-11 15:22:00 +08:00
Wenkai Yin
0de64ed139
bug fix
2017-07-10 18:38:21 +08:00
Daniel Jiang
6fa12cdb1e
Merge pull request #2730 from reasonerjt/scan-all-control
...
restrict scan all API, it should be called once every a period of time
2017-07-10 16:17:26 +08:00
Wenkai Yin
0b282039e9
Merge pull request #2725 from ywk253100/170707_status_code
...
Return real status code returned by admiral APIs
2017-07-10 10:12:50 +08:00
Tan Jiang
eb11cda596
restrict scan all API, it should be called once every a period of time
2017-07-09 22:06:13 +08:00
Tan Jiang
e1e975096c
add int id for scan overview and revoke the change in beego
2017-07-09 12:37:08 +08:00
Steven Zou
ff889cedde
Fix conflict
2017-07-07 20:15:40 +08:00
Steven Zou
a0718385c1
Fix the import cycle issue
2017-07-07 20:12:01 +08:00
Wenkai Yin
d668730ffa
return real status code returned by admiral APIs
2017-07-07 18:40:57 +08:00
Tan Jiang
ca805759d9
update scan overview in notification handler, and return clair vuln timestamp in system info
2017-07-07 17:47:52 +08:00
Steven Zou
cadc1187c2
Merge remote-tracking branch 'upstream/master'
2017-07-07 00:39:29 +08:00
Steven Zou
44be165edf
Enable policy scheduler in ui main
2017-07-07 00:38:38 +08:00
Wenkai Yin
f7412b0c31
update auth context as Admiral's API changed
2017-07-06 18:32:22 +08:00
Wenkai Yin
cbaf24fe81
Merge pull request #2713 from ywk253100/170704_pm
...
Move some method of project manager to security context
2017-07-06 14:29:21 +08:00
Steven Zou
82e17fade1
refine scheduler according to review comments
2017-07-05 19:13:49 +08:00
Steven Zou
5a5eb1d377
Update commnets of exported methods and structs
2017-07-05 17:57:20 +08:00
Wenkai Yin
b866200e4f
Move some method of project manager to security context
2017-07-05 17:41:58 +08:00
Tan Jiang
8b31715b34
provide Clair notification handler
...
update the timestamp in DB, when handling the notification
2017-07-05 15:35:53 +08:00
Steven Zou
2bc557b559
Implement policy scheduler
2017-07-05 02:41:52 +08:00
Wenkai Yin
94507fc8a1
fix bugs found in test
2017-07-04 17:18:24 +08:00
Wenkai Yin
aac742e8ba
update
2017-07-04 12:33:11 +08:00
Wenkai Yin
3ebe1a824b
update codes of auth context
2017-07-03 13:37:55 +08:00
Daniel Jiang
ea827ffd6e
Merge pull request #2658 from ywk253100/170627_registry
...
Provide a method to get token from token service
2017-06-29 17:56:38 +08:00
Tan Jiang
af0e8c85bb
configuration api can handle scan all policy
2017-06-29 15:14:11 +08:00
Wenkai Yin
f806adaac4
update test cases of PMS project manager
2017-06-28 15:44:40 +08:00
Wenkai Yin
ab65bca2fe
Merge pull request #2649 from ywk253100/170627_service_account
...
Implement GetByMember function in PMS project manager
2017-06-28 15:25:21 +08:00
Wenkai Yin
4770aeba90
provide a method to get token from token service
2017-06-28 12:23:14 +08:00
Tan Jiang
00e86d86b6
provide an API to scan all images, and some refactory
2017-06-27 19:25:11 +08:00
Wenkai Yin
016af6bc78
implement GetByMember function in PMS project manager
2017-06-27 18:44:20 +08:00
Daniel Jiang
34871fe202
Merge pull request #2627 from reasonerjt/clair-integration
...
small refinement to clair client
2017-06-26 14:34:08 +08:00
Wenkai Yin
c50e2a5606
Merge pull request #2607 from ywk253100/170622_project
...
Fix bug: can't show the role of member
2017-06-26 10:17:36 +08:00
Tan Jiang
ed296812f0
small refinement to clair client
2017-06-25 11:44:56 +08:00
Wenkai Yin
b960565d11
Merge remote-tracking branch 'upstream/master' into 170621_auth
...
Conflicts:
src/ui/filter/security.go
2017-06-23 18:49:08 +08:00
Wenkai Yin
94822746f1
implement admiral login
2017-06-23 18:17:45 +08:00
Wenkai Yin
419cf8dfc3
fix bug: can't show the role of member
2017-06-23 17:23:00 +08:00
Wenkai Yin
0b55ce6e80
add GetAll support in PMS project manager
2017-06-23 16:53:59 +08:00
Wenkai Yin
4fe5881121
bug fix
2017-06-21 19:24:29 +08:00
Yan
38b09f9f3f
Merge pull request #2579 from ywk253100/170620_pm
...
Using project manager instead of DAO project methods
2017-06-20 05:40:55 -07:00
Wenkai Yin
d0eec5bb0d
Merge pull request #2558 from ywk253100/170618_auth
...
Add security context based on admiral
2017-06-20 17:18:28 +08:00
Wenkai Yin
de2479edee
update
2017-06-20 13:49:41 +08:00
Wenkai Yin
0aed9a1171
use project manager instead of dao method
2017-06-20 13:19:43 +08:00
Tan Jiang
a1a08ebed0
provide API to get vulnerability details
2017-06-20 12:10:55 +08:00
Wenkai Yin
8191f4a476
add security context based on admiral
2017-06-18 22:19:12 +08:00
Wenkai Yin
482f91d91a
Merge pull request #2547 from ywk253100/170616_user
...
Bug fix
2017-06-16 18:12:21 +08:00
Wenkai Yin
df56010739
bug fix
2017-06-16 17:23:22 +08:00
Wenkai Yin
9fb0ad6c0d
Merge pull request #2543 from reasonerjt/clair-integration
...
provide POST api/repostitores/xxx/tags/xxx/scan to trigger image scan
2017-06-16 17:04:34 +08:00
Wenkai Yin
b8d17eeb79
replace trimleft with trimprefix
2017-06-16 16:30:40 +08:00
Tan Jiang
41346fe8c0
provide POST api/repostitores/xxx/tags/xxx/scan to trigger image scan
2017-06-15 20:23:55 +08:00
Tan Jiang
15384317e0
add with_clair flag in systeminfo
2017-06-15 16:15:46 +08:00
Daniel Jiang
6a85012dbd
Merge pull request #2525 from reasonerjt/clair-integration
...
GET tags api includes scan overview
2017-06-15 15:34:05 +08:00
Wenkai Yin
7d595c10c5
Merge pull request #2485 from ywk253100/170608_project
...
Refactor GET /projects API
2017-06-14 21:03:28 +08:00
Tan Jiang
f016dd113c
GET tags api includes scan overview
2017-06-14 21:02:59 +08:00
Wenkai Yin
d6c084485b
Merge pull request #2497 from ywk253100/170612_user
...
Support pagination in GET /users API
2017-06-14 20:49:59 +08:00
Wenkai Yin
aecfcef51a
Merge remote-tracking branch 'upstream/master' into 170608_project
2017-06-14 20:46:23 +08:00
Wenkai Yin
421e9b114e
update
2017-06-14 20:35:51 +08:00
Wenkai Yin
802a2fbcce
update
2017-06-14 20:23:29 +08:00
Tan Jiang
8590c8d6bb
remove orm debug setting from test case
2017-06-14 16:11:23 +08:00
Tan Jiang
ae2d868fd4
handlers for image scan, store results overview in DB
2017-06-13 23:37:54 +08:00
Wenkai Yin
f0c47b990b
Merge pull request #2495 from ywk253100/170605_pm
...
Implement project manager based on PMS
2017-06-13 15:46:48 +08:00
Wenkai Yin
5a25445096
update according to the comments
2017-06-13 15:28:48 +08:00
Wenkai Yin
539c0375a1
support pagination
2017-06-12 18:36:10 +08:00
Wenkai Yin
0925fd35f1
implement project manager based on PMS
2017-06-12 14:43:26 +08:00
Wenkai Yin
20cf8de0f7
Merge remote-tracking branch 'upstream/master' into 170608_project
2017-06-09 16:41:13 +08:00
Wenkai Yin
e97d7dab85
refactor GET /projects
2017-06-09 16:41:02 +08:00
Tan Jiang
58c4993974
add handlers in statemachine
2017-06-09 14:55:15 +08:00
Wenkai Yin
f700b1bfc6
Merge pull request #2461 from ywk253100/170607_log_api
...
Support query logs according to different conditions
2017-06-09 11:08:08 +08:00
Daniel Jiang
42984fe1c9
refactory for scan job service ( #2459 )
...
* refactory for scan job service and implement ScanJob.
2017-06-08 15:04:23 +08:00
Wenkai Yin
b2380818fd
support query logs according to conditions
2017-06-08 14:44:08 +08:00
Wenkai Yin
9c4adbe8c9
Merge remote-tracking branch 'upstream/master' into 170525_log_pagination
...
Conflicts:
src/common/security/rbac/context_test.go
src/ui/api/statistic.go
src/ui/projectmanager/pm.go
2017-06-05 16:53:15 +08:00
Yan
d00aba8de8
Merge pull request #2367 from ywk253100/170524_search
...
Refactor search API
2017-06-04 22:41:55 -07:00
Yan
158d14f559
Merge pull request #2358 from ywk253100/170523_replica
...
Refactor policy, job, target API
2017-06-04 20:29:05 -07:00
Wenkai Yin
1b83c0b076
support pagination in GET recent logs API
2017-05-26 17:51:20 +08:00
Wenkai Yin
cf306ec66e
refactor statistics API
2017-05-24 16:34:33 +08:00
Wenkai Yin
97972028e1
refactor search API
2017-05-24 13:33:46 +08:00
Wenkai Yin
33e2e87b62
refactor system info API
2017-05-23 18:40:09 +08:00
Wenkai Yin
92dcf4bfd3
refactor policy, job, target API
2017-05-23 16:57:25 +08:00
Daniel Jiang
1c441b17be
refactor job service ( #2348 )
2017-05-22 22:33:20 -07:00
Wenkai Yin
7df2be19de
update
2017-05-19 13:24:31 +08:00
Wenkai Yin
b5279ea1f1
update
2017-05-17 17:54:10 +08:00
Wenkai Yin
e1c1b8ec34
refactor project api
2017-05-16 15:02:37 +08:00
Wenkai Yin
e28ad39430
Merge pull request #2290 from ywk253100/170511_merge
...
Refactor auth of token service
2017-05-12 16:42:23 +08:00
Wenkai Yin
7e805b2dd4
refactor auth of token service
2017-05-12 16:27:13 +08:00
Daniel Jiang
5892ef29c2
Merge pull request #2291 from reasonerjt/vulscan-job-refactory
...
add scan job table and dao functions
2017-05-12 02:45:55 -04:00
Tan Jiang
7d7d0c48f4
fix golin, add update status
2017-05-11 23:47:12 +08:00
Tan Jiang
dcbfb4d309
add scan job table and dao functions
2017-05-11 21:41:57 +08:00
Wenkai Yin
06ba7e0de0
update
2017-05-11 12:34:14 +08:00
Wenkai Yin
8f396b44f3
Merge remote-tracking branch 'upstream/master' into 170509_repo_api
...
Conflicts:
src/ui/api/repository.go
2017-05-10 15:53:24 +08:00
Wenkai Yin
b02bbc0adf
refactor repository API
2017-05-10 15:43:45 +08:00
Yan
8db1b2807e
Merge pull request #2197 from ywk253100/170502_change_userid
...
Delete column user_id from table access_log
2017-05-10 00:02:54 -07:00
Wenkai Yin
b5ef2c231d
Merge pull request #2254 from ywk253100/170504_security_context
...
Create different security contexts and project managers according to the request
2017-05-09 17:41:19 +08:00
Wenkai Yin
f8615e4746
create different security context according to the rquest
2017-05-09 17:02:29 +08:00
Tan Jiang
fd8fd2fbe1
Enable project level content trust, controlled by environment variable
2017-05-09 15:36:58 +08:00
Wenkai Yin
3591086259
update
2017-05-04 12:27:14 +08:00
Wenkai Yin
22826b5309
update
2017-05-03 17:22:19 +08:00
Wenkai Yin
d5db9db00b
update
2017-05-03 17:21:38 +08:00
Wenkai Yin
3be9cca0f5
delete column user_id from table accesslog
2017-05-03 14:18:07 +08:00
Wenkai Yin
ac7256efbd
implement security context interface for database
2017-05-02 17:36:38 +08:00
Wenkai Yin
4eca617916
Merge remote-tracking branch 'upstream/master' into 170427_delete_ownerid
2017-05-02 14:58:36 +08:00
Wenkai Yin
4f9d9ed5d8
delete owner_id column from table repository
2017-05-02 14:57:07 +08:00
kunw
5ed47c0316
Merge release-1.1.0
2017-05-02 13:27:06 +08:00
Wenkai Yin
80d83d97bd
Merge pull request #2158 from ywk253100/170427_pm
...
Implement security context for secret
2017-05-02 13:12:20 +08:00
Daniel Jiang
97e214c3d3
bypass some email test ( #2184 )
2017-05-02 12:48:44 +08:00
Wenkai Yin
e08b8217c3
implement security context for secret
2017-04-27 17:33:24 +08:00
Daniel Jiang
eb39fbf814
Merge pull request #2157 from vmware/release-1.1.0
...
merge 1.1.0 fix code into master
2017-04-27 17:27:23 +08:00
Wenkai Yin
f92b17e8b9
Merge remote-tracking branch 'upstream/release-1.1.0' into 170424_ldap_fix
2017-04-26 15:29:04 +08:00
Tan Jiang
da19700a1e
replace math/rand with crypto/rand
2017-04-25 17:47:40 +08:00
Tan Jiang
e17526a495
fix ldap issue
2017-04-25 16:33:01 +08:00
Wenkai Yin
b9833990c4
bug fix
2017-04-25 14:13:03 +08:00
Tan Jiang
480bbc1a0d
fix issue in LDAP support
2017-04-21 19:06:10 +08:00
wy65701436
53f7cfb967
replace go header
2017-04-13 03:54:58 -07:00
Fangyuan Li
bc30341a76
Merge branch 'master' into fix_typo
2017-04-07 00:22:53 -07:00
maplain
be96a3b17c
add a missing format string argument
2017-04-07 00:21:08 -07:00
Wenkai Yin
3b56893f3c
return createtime and updatetime, fix #1924
2017-04-06 18:18:15 +08:00
Wenkai Yin
b99ae2496d
shorten message
2017-03-30 18:53:39 +08:00
Wenkai Yin
4236d47653
Merge remote-tracking branch 'upstream/dev' into 170329_send_email
2017-03-30 14:03:25 +08:00
Wenkai Yin
ec27e2dc07
remove compress js flag
2017-03-30 12:59:47 +08:00
Wenkai Yin
705452ac04
add ut
2017-03-29 23:12:17 +08:00
Tan Jiang
9e0b16c492
fixes 1811
2017-03-27 16:34:24 +08:00
Tan Jiang
5e2598028f
remove root.json after getting the targets
2017-03-25 17:00:26 +08:00
Daniel Jiang
e02dd11703
Merge pull request #1684 from ywk253100/170320_adminserver_client
...
Abstract adminserver client into a single package
2017-03-21 16:08:31 +08:00
Wenkai Yin
67612aa2e3
abstract adminserver client into a single package
2017-03-21 01:00:26 +08:00
Yan
92d9f8516f
Merge pull request #1626 from ywk253100/170315_registry_upgrade
...
Upgrade registry to 2.6.0
2017-03-17 18:25:22 +08:00
Wenkai Yin
108aa21499
upgrade registry to 2.6.0
2017-03-16 13:44:16 +08:00
Wenkai Yin
c3626edd42
reset config
2017-03-16 11:27:45 +08:00
Tan Jiang
e8af73aff6
fix notary test error
2017-03-15 19:50:37 +08:00
Daniel Jiang
58a05c0aaf
Merge pull request #1563 from ywk253100/170310_top_repo
...
Refactor getting top repo API to return more info
2017-03-13 10:45:36 +08:00
Tan Jiang
ef906c96d0
provide systeminfo API for UI
2017-03-10 18:53:11 +08:00
Wenkai Yin
fea1ae4e26
refactor getting top repo API to return detail info
2017-03-10 15:23:22 +08:00
Wenkai Yin
d7b867ebcc
bug fix in search API: do not return duplicate projects when user does not login
2017-03-09 17:34:34 +08:00
Tan Jiang
42bc430cfd
update swagger, fix minor issues in test
2017-03-08 13:57:34 +08:00
Wenkai Yin
f7fe063436
fix conflict
2017-03-08 10:57:17 +08:00
Tan Jiang
8ec94a6d0a
fix golint issue
2017-03-07 19:34:02 +08:00
Tan Jiang
d983982d19
provide api to fetch repository's signature information from Harbor's nested notary intance
2017-03-07 19:14:00 +08:00
Daniel Jiang
c1d9d68232
Merge pull request #1518 from ywk253100/170306_search
...
Refactor search API to return more info
2017-03-07 13:12:53 +08:00
Daniel Jiang
b16a8843a2
Merge pull request #1512 from ywk253100/1703002_email_ping
...
Support email ping
2017-03-07 13:06:30 +08:00
Wenkai Yin
dfae869dce
add test cases
2017-03-06 18:03:31 +08:00
Wenkai Yin
d6a6f67596
refactor search API to return more info
2017-03-06 17:47:05 +08:00
Daniel Jiang
d5a4e5cc20
Merge pull request #1513 from reasonerjt/token-service-refactory
...
support generate UI token for notary
2017-03-06 15:59:13 +08:00
Daniel Jiang
c619bb9294
Merge pull request #1490 from ywk253100/170301_config
...
Read some configs from env when start up
2017-03-06 12:40:21 +08:00
Tan Jiang
109db458c3
support generate UI token for notary
2017-03-06 12:17:22 +08:00
Wenkai Yin
0a80d7fee2
fix bug in sending email
2017-03-03 18:10:28 +08:00
Wenkai Yin
23bf2f0ddf
support ping email server
2017-03-03 16:36:13 +08:00
Wenkai Yin
a4cb261df9
read some configs from env
2017-03-02 13:24:41 +08:00
Wenkai Yin
c4606d0383
Merge pull request #1467 from yhua123/dev
...
add new ldap auth and import user feature
2017-02-27 16:17:14 +08:00
yhua
c48d908515
add new ldap auth and import user feature
2017-02-27 15:13:49 +08:00
Tan Jiang
776c34a0ae
fix go vet and golint errors
2017-02-26 22:05:13 +08: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
a1858098c5
using different secret to mark himself when communicates with other components
2017-02-23 18:24:32 +08:00
Wenkai Yin
40eb6bb7d3
encrypt passwords enhancement
2017-02-22 16:59:28 +08:00
Wenkai Yin
385d76e6f2
Merge remote-tracking branch 'upstream/configuration' into 170214_encryption
...
Conflicts:
src/common/utils/registry/auth/tokenauthorizer.go
src/common/utils/test/adminserver.go
src/jobservice/replication/transfer.go
src/ui/api/config.go
2017-02-20 12:21:56 +08:00
Wenkai Yin
390f89ee0a
encrypt passwords and secret
2017-02-17 18:23:21 +08:00
Wenkai Yin
2e3174f404
update
2017-02-15 15:28:50 +08:00
Wenkai Yin
06519bb3f2
update
2017-02-13 17:17:46 +08:00
Wenkai Yin
6dc6b4fa79
update Makefile
2017-02-10 17:03:21 +08:00
Wenkai Yin
58d17cbd72
Merge pull request #1314 from laz2/fix-1306-admin-top-repos
...
Fix visibility of top repos for admin (#1306 )
2017-02-10 15:45:37 +08:00
Tan Jiang
1d2970c3c5
Merge branch 'master' into dev
2017-02-10 10:51:20 +08:00
Wenkai Yin
1fbb28ad8c
update
2017-02-09 15:25:52 +08:00
Wenkai Yin
9ec11ac672
add test cases
2017-02-09 11:24:23 +08:00
Wenkai Yin
f113f4a54f
update
2017-02-08 14:58:21 +08:00
Wenkai Yin
dc432d5575
support multiple namespace fix #1217
2017-02-07 13:13:42 +08:00
Dmitry Lazurkin
444b7f97bf
fix visibility of top repos for admin ( #1306 )
2017-01-21 19:06:43 +03:00
Wenkai Yin
f1f78a5649
update
2017-01-19 17:56:08 +08:00
Wenkai Yin
24a935a25f
Merge remote-tracking branch 'upstream/configuration' into 161228_config
2017-01-12 17:41:54 +08:00
Wenkai Yin
75f660fa77
Merge remote-tracking branch 'upstream/dev' into 161228_config
...
Conflicts:
make/common/templates/ui/env
src/ui/auth/ldap/ldap.go
src/ui/config/config.go
2017-01-12 17:41:14 +08:00
Wenkai Yin
b62a958250
configure harbor
2017-01-12 17:15:32 +08:00
kun wang
84509fbb3e
regulate some model attribute names. ( #1303 )
...
LGTM
2017-01-11 18:31:20 +08:00
yhua
7fbe811394
add ldap ping feature
2017-01-11 15:08:41 +08:00
Dmitry Lazurkin
3c7a09a8c4
Fix filtering top repositories ( #783 , #1281 )
2017-01-06 21:53:29 +03:00
Penghao Cen
1e57166962
Remove http timeout option on getting catalog
2016-12-12 20:42:28 +08:00
Wenkai Yin
2e9b59a20a
add test case
2016-12-08 15:18:51 +08:00
Wenkai Yin
fb9aa78f75
do not add the authentication header to requests which are not sent to registry
2016-12-07 18:20:25 +08:00
Tan Jiang
3f6301b587
remove timeout for replicating large image
2016-11-30 17:43:04 +08:00
Tan Jiang
4a603f0913
add a test case
2016-11-18 19:32:35 +08:00
Tan Jiang
aab3dfee4e
fix GetIsInsecure
2016-11-18 19:13:23 +08:00
Wenkai Yin
a64891103d
escapse % and _ in sql
2016-11-17 16:39:45 +08:00
Tan Jiang
1e599833fa
fix go vet error
2016-11-16 21:44:15 +08:00
Tan Jiang
51581d8d47
merge
2016-11-16 20:36:02 +08:00
Tan Jiang
9d7a18a0a3
fix issue in golint, support project creation restriction at backend
2016-11-16 20:31:04 +08:00
Tan Jiang
0e3cb2e3f4
ui config refactory
2016-11-16 13:33:14 +08:00
Tan Jiang
31eccec220
unset env vars in TC
2016-11-16 13:33:14 +08:00
Tan Jiang
c34b2872bc
config refactory for common pkg
2016-11-16 13:33:14 +08:00
yhua
99223fc29f
update code for statics testing
2016-11-16 11:42:16 +08:00
Tan Jiang
853a15349d
unset env vars in TC
2016-11-15 18:55:17 +08:00