Commit Graph

122 Commits

Author SHA1 Message Date
Quentin Machu
c055c33cf8 updater: Fix Ubuntu's partial update bug.
Deferring file closing causes `too many open files` (exceeding fs.file-max) on some platforms!
2015-12-16 15:42:32 -05:00
Quentin Machu
510b901da6 Merge pull request #46 from coreos/fix_sql_tovalue
database: Fix incorrect behavior of toValue when reading empty strings.
2015-12-16 15:09:31 -05:00
Quentin Machu
8c1d3c9a86 *: Fix authentification typo 2015-12-16 12:01:51 -05:00
Liang Chenye
4b11491067 add ImageFormat to worker_test and programs under contrib
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
2015-12-15 21:01:22 -08:00
Liang Chenye
41509ccd3e add imageFormt to API.md; add xz to Dockerfile; fix bugs
Signed-off-by: Liang Chenye <liangchenye@huawei.com>
2015-12-15 20:29:53 -08:00
Quentin Machu
32747a5f25 database: Don't ignore empty results in toValue(s)()
There is apparently no reason to ignore empty results - it was probably the case in the past (`null` value).

["", "v"] should be considered invalid by toValue() because it represents two values.
["", "v"] should be returned as it by toValues(), not trimming "".

Tests passes, it will hopefully not cause any issue in prod.
2015-12-15 15:20:38 -05:00
Quentin Machu
172693b604 Merge pull request #47 from coreos/sn
notifier: add ServerName configuration for TLS
2015-12-15 14:31:59 -05:00
Jimmy Zelinskie
34870a2a2b move LoadTLSClientConfigForServer into API package
This isn't reused any where just yet, so we're best off leaving it local
to the place that needs it.
2015-12-15 12:09:46 -05:00
Jimmy Zelinskie
b3828c9c4c notifier: add ServerName configuration for TLS 2015-12-15 12:09:46 -05:00
liangchenye
8b649af666 detect bzip2/xz; add test data
Signed-off-by: liangchenye <liangchenye@huawei.com>
2015-12-15 16:08:27 +08:00
liangchenye
354c4b3672 always trim './'
Signed-off-by: liangchenye <liangchenye@huawei.com>
2015-12-15 11:34:22 +08:00
Quentin Machu
d3ebc3df33 Merge pull request #51 from coolljt0725/update_analyze_local_image_doc
Update README.md of analyze_local_image
2015-12-14 22:30:47 -05:00
Lei Jitang
5f876d20a6 Update README.md of analyze_local_image
The latest Clair use config file for configuration, the command line to
run Clair instance is outdate in the README.md

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2015-12-14 22:35:38 -05:00
Quentin Machu
231e16a72f Merge pull request #50 from coolljt0725/fix_stop
updater: fix type ctrl^C not stop updating
2015-12-14 10:18:56 -05:00
Lei Jitang
cd1106dcdc fix type ctrl^C not stop updating
when clair has network problem during updating vulnerability and failed
to update vulnerability, it will keep updating and even if type ctrl^C
can't stop the clair. This patch make clair to stop updating if type
ctrl^C.

Signed-off-by: Lei Jitang <leijitang@huawei.com>
2015-12-14 00:48:01 -05:00
liangchenye
d402ae818e use imageFormat in params for consistence
Signed-off-by: liangchenye <liangchenye@huawei.com>
2015-12-11 19:41:32 +08:00
liangchenye
b1775ed3dc add data detector to support ACI and other format in the future
Signed-off-by: liangchenye <liangchenye@huawei.com>
2015-12-11 19:37:25 +08:00
Quentin Machu
9f0ed4dcfb Merge pull request #44 from Quentin-M/configfile
main: Use configuration file instead of flags and simplify app extension
2015-12-08 11:56:28 -05:00
Quentin Machu
eb7e5d5c74 main: Use configuration file instead of flags and simplify app extension.
Clair will now use a YAML configuration file instead of command line
arguments as the number of parameters grows.

Also, Clair now exposes a Boot() func that allows everyone to easily
create their own project and load dynamically their own fetchers/updaters.
2015-12-08 11:50:52 -05:00
Quentin Machu
ec0decfcaf docs: fix a typo in the model
Fixes #43
2015-12-07 18:23:18 -05:00
Quentin Machu
a4dcd3c13a Merge pull request #42 from Quentin-M/triple
database: Update cayley and use Triple instead of Quad
2015-12-06 22:27:45 -05:00
Quentin Machu
3fe3f3a4c7 database: Update cayley and use Triple instead of Quad 2015-12-06 20:15:40 -05:00
Quentin Machu
941a10cc2b Merge pull request #35 from mrqwer88/check_openvz_mirror_with_clair
add tool for check openvz mirrors with clair to contrib
2015-12-04 18:04:04 -05:00
Quentin Machu
d05a97a0a1 Merge pull request #29 from Quentin-M/notifier_tls
notifier: Refactor and add client certificate authentification support.
2015-12-04 16:59:47 -05:00
Quentin Machu
9946382223 api: Extracted client cert & HTTP JSON Render to utils. 2015-12-04 16:56:20 -05:00
Quentin Machu
20a126c84a notifier: Refactor and add client certificate authentification support.
Fixes #23
2015-12-04 16:53:54 -05:00
Quentin Machu
f106b64bc4 Merge pull request #22 from Quentin-M/predcst
database: put missing predicates in consts and un-expose some of them
2015-12-04 16:53:35 -05:00
Quentin Machu
9fc29e291c database: put missing predicates in consts and un-expose some of them
Fixes #16
2015-12-04 16:50:18 -05:00
Quentin Machu
1fefacfa63 Merge pull request #41 from coreos/travisfix
travis: disable install step
2015-12-04 16:33:55 -05:00
Jimmy Zelinskie
02d38843cb travis: disable install step 2015-12-04 16:24:03 -05:00
Quentin Machu
46fffdfc81 Merge pull request #33 from Quentin-M/insertvulns
database: Improve InsertVulnerabilities.
2015-12-04 15:49:56 -05:00
Quentin Machu
15bc682f60 Merge pull request #36 from coreos/gc
api/database: Add the ability to delete layers
2015-12-04 15:21:01 -05:00
Quentin Machu
8285c567c8 database: Improve InsertVulnerabilities. 2015-12-04 14:42:58 -05:00
Quentin Machu
e444e93c97 api/database: Add the ability to delete layers 2015-12-04 14:42:21 -05:00
Jimmy Zelinskie
cadc182cc4 readme: add travis-ci badge
[ci skip]
2015-12-02 13:45:14 -05:00
Jimmy Zelinskie
1b55d387f6 travis: add missing rpm dependency 2015-12-02 13:39:59 -05:00
Quentin Machu
07268a7b5e Merge pull request #39 from coreos/travis
travis: initial travis.yml
2015-12-02 13:25:14 -05:00
Quentin Machu
46f356e890 Merge pull request #37 from Quentin-M/updater_refactor
updater: Refactor and merge fetcher responses
2015-12-02 13:23:30 -05:00
Jimmy Zelinskie
5873ab892c travis: initial travis.yml 2015-12-02 12:39:13 -05:00
Barak Michener
326ad7fc13 Merge pull request #38 from Quentin-M/causedby
api: Specify what packages cause the layer to have vulnerabilities.
2015-12-01 17:05:45 -05:00
Quentin Machu
9db0e63401 api: Specify what packages cause the layer to have vulnerabilities. 2015-12-01 17:02:49 -05:00
Quentin Machu
a7b683d4ba updater: Refactor and merge fetcher responses
Fixes #17 and lays the groundwork for #19.
2015-12-01 16:18:45 -05:00
Sergei A Mamonov
75aff0382a contrib: check-openvz-mirror-with-clair fix license 2015-11-30 23:11:18 +03:00
Sergei A Mamonov
8b137e8a95 contrib: add copyright in check-openvz-mirror-with-clair 2015-11-30 00:13:19 +03:00
Quentin Machu
7df8e7fb1a contrib: add copyright in analyze-local-images 2015-11-29 15:56:34 -05:00
Sergei A Mamonov
0919113d8b add tool for check openvz mirrors with clair to contrib 2015-11-29 23:11:36 +03:00
Quentin Machu
867279a5c9 contrib: Improve analyze-local-images docs and launch command.
Fixes #32
2015-11-24 16:37:11 -05:00
Quentin Machu
9391417b2d contrib: Wait for extraction to finish before continuing. 2015-11-24 11:11:01 -05:00
Jonathan Boulle
73f2221955 Merge pull request #26 from stapelberg/patch-1
Fix installation command in README.md
2015-11-23 13:53:09 -08:00
Michael Stapelberg
f81bc29b9e Fix installation command in README.md
The package name was missing an “s”, and “go install” only works when you already have downloaded the package.
2015-11-23 22:35:09 +01:00