Commit Graph

908 Commits

Author SHA1 Message Date
Sida Chen
75d5d40d79 featurens: added multiple namespace testing for namespace detector 2017-05-24 17:18:11 -04:00
Sida Chen
bffa6499b7 added support for detect multiple namespaces in a layer
created table layer_namespace to store the many to many unique mapping of layers and namespaces
changed v1 api to provide a list of namespaces for each layer
changed namespace detector to use all registered detectors to detect namespaces
updated tests for multiple namespaces

Fixes #150
2017-05-24 17:01:51 -04:00
Jimmy Zelinskie
c2d8aec157 Merge pull request #382 from caipre/patch-1
pgsql: Change layer name column data type
2017-05-19 20:07:53 -04:00
Nick Platt
aea74550e1 pgsql: Expand layer, namespace column widths
Presently the layer and namespace tables use type `varchar(128)` for
their respective name columns. For layer, this width works fine enough
using the sha256 digests provided by docker. However, if one wishes to
encode the image name into the layer  name (eg, to avoid collisions like
in [0]), the limit of 128 bytes starts to feel a bit cramped. Bump to
256 bytes, since that "ought to be enough for anybody." (TM)

[0]: https://github.com/coreos/clair/issues/319
2017-05-19 18:22:04 -04:00
Jimmy Zelinskie
f2f213470b Merge pull request #395 from knqyf263/handle_tilde
versionfmt/rpm: handle a tilde correctly
2017-05-15 14:52:31 -04:00
knqyf263
db8a133d21 versionfmt/rpm: handle a tilde correctly 2017-05-14 19:18:57 +09:00
Jimmy Zelinskie
8816aedb68 Merge pull request #392 from jzelinskie/https-sec-db
ext/vulnsrc/alpine: use HTTPS
2017-05-11 15:31:13 -04:00
Jimmy Zelinskie
0891bbac00 ext/vulnsrc/alpine: use HTTPS 2017-05-11 15:18:37 -04:00
Jimmy Zelinskie
1119fdfea6 Merge pull request #390 from KeyboardNerd/fernet
cmd: make pagination key error clearer
2017-05-09 18:59:10 -04:00
Sida Chen
0342a2a3e5 cmd: make pagination key error clearer 2017-05-09 15:13:42 -04:00
Jimmy Zelinskie
d07183ee74 Merge pull request #389 from jzelinskie/revendor
Regenerate vendor redirectory
2017-05-08 16:26:37 -04:00
Jimmy Zelinskie
0305dde964 database/models: MetadataMap decodes from string
github.com/lib/pq began decoding text-like fields as strings to
Scanners.

See lib/pq@e2402a7cd1
2017-05-06 17:01:41 -04:00
Jimmy Zelinskie
35df9d5846 vendor: regenerate vendor directory with glide 2017-05-05 11:46:41 -04:00
Jimmy Zelinskie
d846c508c3 glide: refresh dependencies
The previous configuration had dependencies from contrib projects that
are now removed.
2017-05-05 11:46:40 -04:00
Jimmy Zelinskie
50d07ccf59 vendor: rm everything to prep for regeneration 2017-05-05 11:46:24 -04:00
Jimmy Zelinskie
257bb325a1 Merge pull request #387 from jzelinskie/rm-analyze-local-images
contrib: delete unsupported tools
2017-05-04 19:31:26 -04:00
Jimmy Zelinskie
821a608bb1 docs: add links to contrib tools 2017-05-04 17:22:29 -04:00
Jimmy Zelinskie
5540d02bc2 contrib: delete unsupported tools
These tools are either unsupported or should be supported outside of the
Clair repository.
2017-05-04 17:11:36 -04:00
Jimmy Zelinskie
ee1702b176 Merge pull request #385 from KeyboardNerd/logrus
convert to structured logging using logrus #383
2017-05-04 14:09:59 -04:00
Sida Chen
aa6a81c60c updated glide and vendor folder 2017-05-04 13:59:57 -04:00
Sida Chen
9306e99368 converted to structured logging by using logrus
changed from capnslog to logrus for logging JSON structured message.

finished issue #383
2017-05-04 13:59:57 -04:00
Jimmy Zelinskie
ac24a8703d Merge pull request #381 from KeyboardNerd/bill-of-materials
*: added bill-of-materials
2017-05-01 17:18:05 -04:00
Sida Chen
d0ca4d1fe6 *: added bill-of-materials 2017-05-01 17:15:40 -04:00
Jimmy Zelinskie
99a859fe67 Merge pull request #373 from josuesdiaz/fix_analyze_local
contrib: Fix analyze_local_images when image has missing layers
2017-04-28 13:00:25 -04:00
Josue Diaz
f3840f30b9
contrib: Revert "Merge pull request #367 from jzelinskie/analyze-layers-v2"
This reverts commit e639367a30, reversing
changes made to f3848d9726. Issue involved
the docker history command providing missing fs layers that were not in
the saved image. Revert commit to using the manifest file again.
2017-04-28 10:52:31 -04:00
Jimmy Zelinskie
b02714c1ae Merge pull request #378 from jzelinskie/oracle-update-fix
ext/vulnsrc/oracle: ensure flag is largest elsa
2017-04-27 19:10:59 -04:00
Jimmy Zelinskie
09cbfe325b ext/vulnsrc/oracle: ensure flag is largest elsa
If the Oracle Linux directory is ever in the wrong order, this should
ensure that the updaterFlag is always set the latest ELSA value.
2017-04-27 18:57:19 -04:00
Jimmy Zelinskie
0160ef6d53 Merge pull request #374 from tianon/new-ubuntu-releases
Add Ubuntu Zesty and Artful to UbuntuReleasesMapping
2017-04-26 22:06:59 -04:00
Tianon Gravi
b6ab5d8168 Add Ubuntu Zesty and Artful to UbuntuReleasesMapping
See also https://wiki.ubuntu.com/Releases
2017-04-26 14:45:32 -07:00
Jimmy Zelinskie
ce4f8327ec Merge pull request #371 from caipre/add-logging
Add logging
2017-04-25 15:48:59 -04:00
Nick Platt
ce6eba9fcb worker: Rewrite unknown namespace warning 2017-04-25 15:51:39 +00:00
Nick Platt
edfadc2f87 updater: Log fetch completion 2017-04-25 15:50:51 +00:00
Jimmy Zelinskie
558661e44b Merge pull request #370 from jzelinskie/featurens
ext/featurens: add empty filesmap tests for all
2017-04-21 16:35:54 -04:00
Jimmy Zelinskie
34bc722794 ext/featurens: add empty filesmap tests for all 2017-04-21 15:08:47 -04:00
Jimmy Zelinskie
ae78bdc586 Merge pull request #369 from jzelinskie/fix-ali
contrib: add missing :=
2017-04-20 14:00:34 -04:00
Jimmy Zelinskie
d76c549dfb contrib: add missing :=
I accidentally didn't push this commit to #367.
Fixes #368.
2017-04-20 13:39:08 -04:00
Jimmy Zelinskie
e639367a30 Merge pull request #367 from jzelinskie/analyze-layers-v2
contrib: only extract layers from history
2017-04-19 16:27:23 -04:00
Jimmy Zelinskie
e772be5f6f contrib: only extract layers from history
This tool was written before v2 existed and deduplicated and listed
layers out of order in their manifests.
2017-04-19 16:23:23 -04:00
Jimmy Zelinskie
f3848d9726 Merge pull request #366 from jzelinskie/fixoracle
ext/vulnsrc/oracle: fix ELSA version comparison
2017-04-19 15:15:53 -04:00
Jimmy Zelinskie
bcf47f53ee ext/vulnsrc/oracle: fix ELSA version comparison
Previously we naively compared integers. However, not all versions have
the same length.
2017-04-19 15:15:41 -04:00
Jimmy Zelinskie
8dbd4f3947 Merge pull request #361 from jzelinskie/ROADMAP.md
ROADMAP: refresh with current priorities
2017-04-12 15:03:04 -04:00
Jimmy Zelinskie
e9eb761db6 ROADMAP: refresh with current priorities 2017-04-12 12:57:13 -04:00
Jimmy Zelinskie
d2c397b2b3 Merge pull request #363 from davidxia/patch-1
Fix typo in API V1 docs
2017-04-12 10:18:38 -04:00
David Xia
9a5341724a Fix typo in API V1 docs 2017-04-12 10:13:41 -04:00
Jimmy Zelinskie
b5f4e0f3a3 Merge pull request #362 from jzelinskie/malformedpkg
Handle Parsing of Malformed Packages
2017-04-11 22:31:40 -04:00
Jimmy Zelinskie
b2f2b2c854 ext/featurefmt/apk: handle malformed packages 2017-04-11 15:48:27 -04:00
Jimmy Zelinskie
590e7e2602 ext/featurefmt/dpkg: handle malformed packages 2017-04-11 15:48:27 -04:00
Jimmy Zelinskie
8227165a78 Merge pull request #360 from jzelinskie/cleanup
README: clean up after README refactor
2017-04-11 15:23:20 -04:00
Jimmy Zelinskie
f36aa12024 README: clean up after README refactor 2017-04-11 15:01:29 -04:00
Jimmy Zelinskie
de75bf6180 Merge pull request #359 from matslina/patch-1
minor correction s/maybe/may/
2017-04-11 14:12:32 -04:00