Commit Graph

856 Commits

Author SHA1 Message Date
Sida Chen
f7e54c1a28
Merge pull request #695 from saromanov/fix-unchecked-error
pgsql: fix unchecked error
2019-02-27 13:05:52 -05:00
Sida Chen
76081864c9
Merge pull request #712 from KeyboardNerd/builder
clair: Ancestry Builder
2019-02-26 12:05:44 -05:00
Sida Chen
5bf8365f7b pgsql: Prevent inserting invalid entry to database 2019-02-26 10:26:49 -05:00
Sida Chen
465687fa94 clair: Add more logging on ancestry cache hit 2019-02-26 10:26:49 -05:00
Sida Chen
8aae73f1c8 pgsql: Remove unnecessary logs 2019-02-26 10:26:49 -05:00
Sida Chen
5b2376498b clair: Use builder pattern for constructing ancestry
- Add Ancestry builder
- Change RPC to use the ancestry builder
2019-02-26 10:26:49 -05:00
Sida Chen
891ce1697d imagefmt: Move layer blob download logic to blob.go 2019-02-22 11:31:47 -05:00
Sida Chen
dd239762f6 v3: Move services to top of the file 2019-02-22 11:31:47 -05:00
Sida Chen
73bc2bc36b
Merge pull request #672 from KeyboardNerd/source_package/feature_type
Implement Feature types
2019-02-20 15:58:50 -05:00
Sida Chen
5a94499fdb update according to comments 2019-02-19 17:57:38 -05:00
Sida Chen
32b11e54eb api/v3: Add feature type to API feature
API now returns every feature found by the detectors and also indicates
the type of feature.
2019-02-19 17:03:44 -05:00
Sida Chen
870e812376 Travis: Drop support for postgres 9.4
postgres 9.4 doesn't support ON CONFLICT, which is required in our
implementation.
2019-02-19 16:48:42 -05:00
Sida Chen
23ccd9b53b worker: Fix tests for feature_type 2019-02-19 16:48:42 -05:00
Sida Chen
79af05e67d pgsql: Fix postgres queries for feature_type 2019-02-19 16:48:42 -05:00
Sida Chen
5fa1ac89b9 database: Add StorageError type 2019-02-19 16:48:42 -05:00
Sida Chen
073c685c5b pgsql: Add proper tests for database migration 2019-02-19 16:48:42 -05:00
Sida Chen
f61675355e database: Update feature model
Remove source name/version fields
Add Type field to indicate if it's binary package or source package
2019-02-19 16:48:42 -05:00
Sida Chen
0e0d8b38bb featurefmt: Extract source packages and binary packages
The featurefmt now extracts both binary packages and source packages
from the package manager infos.
2019-02-19 16:48:42 -05:00
Sida Chen
7dd989c0f2 database: Rename affected Type to feature type 2019-02-19 16:48:42 -05:00
Sida Chen
00eed77b45 database: Add feature_type database model 2019-02-19 16:48:42 -05:00
Sida Chen
c6c8fce39a pgsql: Add feature_type to initial schema
feature_type is for differentiating the binary packages and source
packages.
2019-02-19 16:43:35 -05:00
Jimmy Zelinskie
cafe0976a4
Merge pull request #685 from jzelinskie/updater-cleanup
updater: remove FindLock(), use errgroup to avoid races
2019-02-14 14:57:59 -05:00
Jimmy Zelinskie
dd91597f19 database: remove FindLock from mock 2019-02-14 14:27:29 -05:00
Jimmy Zelinskie
f64bd117b2 updater,pkg/timeutil: minor cleanups 2019-02-14 11:26:22 -05:00
Jimmy Zelinskie
aa8682947e
Merge pull request #701 from dustinspecker/patch-1
docs: fix typo in running-clair
2019-01-30 10:33:15 -05:00
Jimmy Zelinskie
11b26b3857
Merge pull request #700 from traum-ferienwohnungen/master
Make nodePort configurable with helm
2019-01-30 10:32:51 -05:00
Dustin Specker
49b5621d73
docs: fix typo in running-clair 2019-01-29 16:35:16 -06:00
Jelto Wodstrcil
4505fcea32 make nodePort configurable with helm 2019-01-29 09:58:23 +01:00
Jimmy Zelinskie
cc8d1152c4
Merge pull request #680 from Allda/slices
Replace arrays with slices
2019-01-22 17:01:49 -05:00
Sergey
a57d806717
pgsql: fix unchecked error 2019-01-21 17:57:52 +05:00
Ales Raszka
015a79fd5a Layer: replace arrays with slices
The current code is much cleaner because it doesn't use indexes + it
should be more memory efficient.
2019-01-16 09:12:34 +01:00
Ales Raszka
90f5592095 Feature: replace arrays with slices
The current code is much cleaner because it doesn't use indexes + it
should be more memory efficient.
2019-01-16 09:12:33 +01:00
Jimmy Zelinskie
97b4b1ac33
Merge pull request #687 from jzelinskie/suse-config
config: enable suse updater
2019-01-14 14:49:44 -05:00
Jimmy Zelinskie
162e8cdafc config: enable suse updater 2019-01-14 14:39:46 -05:00
Jimmy Zelinskie
bafe45db2d
Merge pull request #686 from jzelinskie/fix-presentations
documentation: fix links to presentations
2019-01-14 13:51:03 -05:00
Jimmy Zelinskie
3e6896c6a4 documentation: fix links to presentations
Closes #661.
Closes #665.
Closes #560.
2019-01-10 14:22:24 -05:00
Jimmy Zelinskie
165c397f16 glide: add errgroup and regenerate vendor 2019-01-10 13:50:47 -05:00
Jimmy Zelinskie
7084a226ae updater: extract deduplicate function 2019-01-10 13:50:47 -05:00
Jimmy Zelinskie
25078ac838 ext: add CleanAll() utility functions 2019-01-10 13:50:46 -05:00
Jimmy Zelinskie
e16d17dda9 updater: remove original RunUpdate() 2019-01-10 13:50:46 -05:00
Jimmy Zelinskie
0d41968acd updater: reimplement fetch() with errgroup
This adds context support to a few more functions in the update process.
This makes progress towards to goal of having cancellable updates.
2019-01-10 13:50:46 -05:00
Jimmy Zelinskie
6c5be7e1c6 updater: refactor to use errgroup
This addresses a race condition and makes this code much more
understandable.
2019-01-10 13:50:46 -05:00
Jimmy Zelinskie
399deab100 database: remove FindLock() 2019-01-10 13:50:46 -05:00
Jimmy Zelinskie
effe1552fb
Merge pull request #679 from kubeshield/master
Fix cert and key file mix up
2019-01-08 19:06:41 -05:00
Jimmy Zelinskie
45ecf18815 pkg/timeutil: init 2019-01-07 14:18:23 -05:00
Jimmy Zelinskie
b08ad9b8e6
Merge pull request #506 from openSUSE/reintroduce-suse-opensuse
Reintroduce image scanning for openSUSE and SLE
2019-01-07 13:21:57 -05:00
Flavio Castelli
1105102b84
Update documentation: talk about SUSE support
Expand the documentation about the available data sources to mention
openSUSE and SLE.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2019-01-07 18:48:55 +01:00
Flavio Castelli
5a4d4913c1
Reintroduce image scanning for openSUSE and SLE
Handle scanning of openSUSE and SUSE Linux Enterprise images.

Signed-off-by: Flavio Castelli <fcastelli@suse.com>
2019-01-07 18:48:55 +01:00
Jimmy Zelinskie
5cd6a8cc92
Merge pull request #681 from Allda/rhel_severity
Vulnsrc rhel: handle "none" CVE impact
2019-01-02 15:58:23 -05:00
Tamal Saha
0ed4126240 Fix cert and key file mix up
Signed-off-by: Tamal Saha <tamal@appscode.com>
2019-01-02 12:31:58 -08:00