liangchenye
48ffb2687a
use encrypt page in listVuln api
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-03-07 14:07:07 +08:00
liangchenye
a541e964e0
New API: list vulnerabilities by namespace
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-03-07 14:07:07 +08:00
Jimmy Zelinskie
ee28073d61
Merge pull request #90 from jzelinskie/README-deps
...
readme: add dependencies to getting started
2016-03-03 15:56:30 -05:00
Jimmy Zelinskie
b3837673fe
readme: add dependencies to getting started
2016-03-03 15:44:49 -05:00
Quentin Machu
1202a25b46
Merge pull request #89 from Quentin-M/fv_find_before_lock
...
database: Find the FeatureVersion we try to insert before doing any lock
2016-03-03 14:33:54 -05:00
Quentin Machu
9b191fb598
database: Find the FeatureVersion we try to insert before doing any lock
...
This commit is issued in order to limit the bottleneck that the
exclusive database lock on Vulnerability_Affects_FeautreVersion
introduces, when we inserting FeatureVersions. This slowdowns a bit
the FeatureVersion insertion on a mostly empty database but should
increase a lot the throughput and parallelism on a populated database.
2016-03-03 14:15:06 -05:00
Quentin Machu
5a716f93ad
Merge pull request #83 from coreos/readme-feature-namespace
...
README: Add FeatureDetector and NamespaceDetector
2016-02-28 15:38:06 -05:00
Quentin Machu
20ecc847d9
README: Add FeatureDetector and NamespaceDetector
2016-02-27 21:19:36 -05:00
Jimmy Zelinskie
0979b01a44
readme: add terminology and generic customization
2016-02-27 15:02:52 -05:00
Jimmy Zelinskie
8ae93abffe
Merge pull request #81 from coolljt0725/fix_readme
...
docs: fix the docker cli of running clair in README.md
2016-02-27 14:27:57 -05:00
Lei Jitang
859b1942a5
docs: fix the docker cli of running clair in README.md
...
Signed-off-by: Lei Jitang <leijitang@huawei.com>
2016-02-27 16:49:41 +08:00
Quentin Machu
76c7136f8e
Merge pull request #79 from liangchenye/v1doc
...
readme: make API description consistence
2016-02-26 09:22:49 -05:00
liangchenye
d47616a339
readme: make API description consistence
...
Signed-off-by: liangchenye <liangchenye@huawei.com>
2016-02-26 15:54:59 +08:00
Jimmy Zelinskie
af0ddceaa2
readme: s/notification/notifications
2016-02-25 15:52:21 -05:00
Jimmy Zelinskie
2140995a54
readme: clarify "marked as read" notifications
2016-02-25 13:49:24 -05:00
Jimmy Zelinskie
d1e9a21e0e
Merge pull request #77 from coreos/simplify
...
various: gofmt -s
2016-02-24 19:44:43 -05:00
Jimmy Zelinskie
500fc4e407
various: gofmt -s
2016-02-24 19:29:36 -05:00
Jimmy Zelinskie
440b5d58cd
README: fix godoc badge copypasta
2016-02-24 18:08:16 -05:00
Jimmy Zelinskie
9445fef35a
Merge pull request #76 from coreos/sp
...
various: spelling corrections
2016-02-24 18:03:53 -05:00
Jimmy Zelinskie
8fd0aa162b
various: spelling corrections
2016-02-24 18:00:36 -05:00
Jimmy Zelinskie
548a2be262
Merge pull request #71 from Quentin-M/sql
...
Clair 1.0 Mega PR
2016-02-24 17:56:34 -05:00
Jimmy Zelinskie
001c0a73d3
contrib: adapt analyze-local-images for new API
2016-02-24 16:43:19 -05:00
Jimmy Zelinskie
ec8cf9fb26
README: add documentation with links
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
1557a27a8c
Revert "v1: pagination now deterministic"
...
This reverts commit 24f329fea674e04c76f5e87c22eea1800e6bc413.
This was unnecessary.
2016-02-24 16:40:40 -05:00
Quentin Machu
3563cf9061
api: fix pagination token that's returned to match what has been passed
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
4fd4049fee
v1: update documented error codes
2016-02-24 16:40:40 -05:00
Quentin Machu
e78d076d02
api/worker: adjust error codes in postLayer
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
136b907050
notifier: add README
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
8c282fdb5a
webhook: add JSON envelope
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
a19365123f
remove docs directory
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
bb7745f3fe
config: better document example
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
f48f94cbd0
readme: continue to nitpick
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
fe1e06669f
README: nitpick
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
452c32d7d7
v1: pagination now deterministic
...
The standard JSON encoding has no guarantee of the order of keys, thus
token values could differ, but still be equivalent.
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
dc431c22f3
v1: add readme
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
771e35def0
v1: return object on PUT/POST
...
This change also improves error handling around InsertVulnerability.
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
c06df1affd
v1: 200 on PUT
2016-02-24 16:40:40 -05:00
Quentin Machu
6b8e198ef9
README: fix link
2016-02-24 16:40:40 -05:00
Quentin Machu
84319507df
database: use constants to store queries
2016-02-24 16:40:40 -05:00
Quentin Machu
904ce6004f
notifier: add a timeout on the http client
2016-02-24 16:40:40 -05:00
Quentin Machu
274a1620a5
api: log instead of panic when a response could not be marshaled
...
In order to avoid killing Clair when there is simply a broken pipe..
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
80977f233e
README: add go report card
2016-02-24 16:40:40 -05:00
Quentin Machu
8d76700506
api: add call duration in logs
2016-02-24 16:40:40 -05:00
Quentin Machu
06531e01c5
database: disable hash/merge joins in FindLayer
...
Our experiments have shown that PostgreSQL 9.4 makes bad
planning decisions about:
- joining the layer tree to feature versions and feature
- joining the feature versions to affected/fixed feature version and vulnerabilities
It would for instance do a merge join between affected feature versions (300 rows, estimated
3000 rows) and fixed in feature version (100k rows). In this case, it is much more
preferred to use a nested loop.
2016-02-24 16:40:40 -05:00
Quentin Machu
18f2d7e672
database: modify join table in FindLayer to reduce cost by 3.5x
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
c61eebafdf
README: move diagram to architecture section
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
6e196e416d
README: add diagram & custom data sources
2016-02-24 16:40:40 -05:00
Quentin Machu
bae5a5e3ad
worker: remove duplicated tests
2016-02-24 16:40:40 -05:00
Quentin Machu
418ab08c4b
api: adjust postLayer error codes
...
- return 422 when layer could not be analyzed (extraction failed or layer unsupported)
- return 404 if the parent is not found or the download path leads to a 404 page
2016-02-24 16:40:40 -05:00
Jimmy Zelinskie
4f4dbd5b61
reboot README
2016-02-24 16:40:40 -05:00