Jimmy Zelinskie
1ec2759550
pkg/grpcutil: init
...
This change refactors gRPC code used within the v3 API package into
generic code that can be used for managing gRPC and gRPC Gateway.
6 years ago
Jimmy Zelinskie
dc6be5d1b0
api: remove handleShutdown func
...
This function was used for handling errors in the graceful library and
was never necessary for the v3 API.
6 years ago
Jimmy Zelinskie
e5c2e378a2
Merge pull request #613 from jzelinskie/pkg-pagination
...
Introduce pkg/pagination
6 years ago
Jimmy Zelinskie
0565938956
pkg/pagination: add token type
...
This change pulls as much pagination logic out of the database
implementation as possible. Database implementations should now be able
to marshal whatever state they need into opaque tokens with the
utilities in the pagination package.
6 years ago
Jimmy Zelinskie
d193b46449
pkg/pagination: init
...
This change refactors a lot of the code dealing with pagination so that
fernet implementation details do not leak.
- Deletes database/pgsql/token
- Introduces a pagination package
- Renames idPageNumber to Page and add a constructor and method.
6 years ago
Jimmy Zelinskie
b20482e0ae
cmd/clair: document constants
6 years ago
Jimmy Zelinskie
fffb67f137
Merge pull request #611 from jzelinskie/drop-graceful
...
Remove dependency on graceful
6 years ago
Jimmy Zelinskie
55ecf1e58a
vendor: regenerate after removing graceful
6 years ago
Jimmy Zelinskie
30644fcc01
api: remove dependency on graceful
...
This library has no longer been needed since Go 1.8.
6 years ago
Sida Chen
2bbbad393b
Merge pull request #605 from KeyboardNerd/sidchen/feature
...
Implement Ancestry Layer-wise feature API
6 years ago
Sida Chen
2827b9342b
Update Database and Worker implementation for layer-wise feature
...
Feature extraction algorithm is changed to associate features with
ancestry layer. Database is updated to keep the relationship.
6 years ago
Jimmy Zelinskie
06b257cc97
Merge pull request #606 from MackJM/wip/master_httputil
...
Adding httputil and version packages to master
6 years ago
Jimmy Zelinskie
4fd86fd518
Merge pull request #607 from jzelinskie/gofmt
...
enforce gofmt in travis
6 years ago
Jimmy Zelinskie
ce15f73501
*: gofmt -s
6 years ago
Jimmy Zelinskie
52ecf35ca6
travis: fail if not gofmt -s
6 years ago
Jean Michel MacKay
9df4f5bd70
Adding httputil and version packages
...
- Debian/RHEL/Oracle vulnsrc now use httputil to download files
- httputil sets the User-Agent to the requests as Clair/<version> (https://github.com/coreos/clair/ )
- httputil holds Status2xx() which returns if the response is a http success (2xx)
- GetClientAddr moved from api/httputil to pkg/httputil
- the version packge holds a Version string which is set at build time from the git tag and sha
- the .git directory was removed from .dockerignore so that we can use the git tag to set the version
6 years ago
Sida Chen
4b64151330
Update gRPC server implementation
6 years ago
Sida Chen
6a44052e31
Update Clair V3 API to provide layer-wise feature
6 years ago
Jimmy Zelinskie
9f2cc4e533
Merge pull request #604 from jzelinskie/nvd-urls
...
vulnmdsrc: update NVD URLs
6 years ago
Jimmy Zelinskie
ce6b00887b
vulnmdsrc: update NVD URLs
...
This connects us via a domain hosted on AWS which should provide
performance benefits for users running Clair on AWS and alleviate load
from the NIST campus network.
Fixes #575 .
6 years ago
Sida Chen
dfc3023372
Merge pull request #601 from KeyboardNerd/sidchen/status
...
Add Status endpoint with Clair configuration
6 years ago
Sida Chen
d28f3214ce
Add Status endpoint with Clair configuration
...
Implement a status endpoint providing the current lister/detector in
the current instance of Clair.
6 years ago
Jimmy Zelinskie
7f9c0b1b07
Merge pull request #594 from reasonerjt/fix-alpine-url
...
Quickfix to the URL for fetching alpine's vuln data.
6 years ago
Daniel Jiang
9e4a347ecd
Quickfix to the URL for fetching alpine's vuln data.
...
Fixes #593
Signed-off-by: Daniel Jiang <jiangd@vmware.com>
6 years ago
Jimmy Zelinskie
ddeb64339d
Merge pull request #578 from naibaf0/fix/helmtemplate/configmap/postgresql
...
Helm: change postgresql connection string format in configmap template
6 years ago
Fabian Hinz
690d26edba
Helm: change postgresql connection string format in configmap template
...
The PostgreSQL connection string in the configmap template for helm was
changed to a key-value format to reflect the currently used format in
the sample config file
Fixes #561
6 years ago
Jimmy Zelinskie
1d690bbacf
Merge pull request #586 from robertomlsoares/update-helm-chart
...
Helm Chart: Use Secret for config file. Fix some minor issues
6 years ago
Roberto Soares
bc6f37f1ae
Helm Chart: Use Secret for config file. Fix some minor issues
...
- Config file for Clair now is inside a Secret. Fixes #581 .
- Update helper template to use latest Helm conventions for "name" and
"fullname".
- Update labels to use the recommended labels by Helm. See:
https://docs.helm.sh/chart_best_practices/#standard-labels
- Remove service.name from values file because it is not used.
Service discovery for parent charts can be made by using the
"clair.fullname" template since template functions are shared
between charts.
6 years ago
Jimmy Zelinskie
c26154ab74
Merge pull request #582 from brosander/helm-alpine-postgres
...
Using alpine postgres image
6 years ago
Bryan Rosander
f3e156a46e
Using alpine postgres image
6 years ago
Jimmy Zelinskie
b1cd092319
Merge pull request #571 from ErikThoreson/nvdupdates
...
adding publisher datetime and updating nvd feed download
6 years ago
Jimmy Zelinskie
f32f438a98
Merge branch 'master' into nvdupdates
6 years ago
Jimmy Zelinskie
3babbafb2f
Merge pull request #574 from hongli-my/fix-nvd-path
...
not use path.Join, stop clair, left nvd xml like nvd-data3260521972007.xml
6 years ago
honglichang(常红立)
0d5f300c5b
fix nvd path
...
1. stop clair, not del nvd xml
6 years ago
Jimmy Zelinskie
9a9b1f7a13
Merge pull request #572 from arno01/multi-stage
...
use multi-stage build
6 years ago
Andy
921ba54152
use multi-stage build
6 years ago
ErikThoreson
df1dd5c149
adding publisher datetime and updating nvd feed download
6 years ago
Jimmy Zelinskie
158bb31b77
Merge pull request #540 from jzelinskie/document-proto
...
api/v3/clairpb: document and regenerate protos
6 years ago
Jimmy Zelinskie
027f239e1f
Merge pull request #569 from jzelinskie/ubuntu-git
...
v3: use new git-based ubuntu tracker
6 years ago
Jimmy Zelinskie
5caa821c80
*: remove bzr dependency
6 years ago
Jimmy Zelinskie
456af5f48c
vulnsrc/ubuntu: use new git-based ubuntu tracker
6 years ago
Jimmy Zelinskie
c031f8ea0c
vulnsrc/alpine: s/pull/clone
6 years ago
Jimmy Zelinskie
4c2be5285e
vulnsrc/alpine: avoid shadowing vars
6 years ago
Jimmy Zelinskie
e907e4d263
Merge pull request #553 from qeqar/master
...
mapping: add ubuntu mapping
6 years ago
Mark Eisenblaetter
07a08a4f53
mapping: add ubuntu mapping
...
add new ubuntu 18.03 bionic beaver mapping
Fixes #552
6 years ago
Jimmy Zelinskie
34c1382d9e
Merge pull request #551 from usr42/upgrade_to_1.10-alpine
...
Upgrade to go 1.10
6 years ago
usr42
db5dbbe4e9
Upgrade to golang:1.10-alpine
6 years ago
Jimmy Zelinskie
7492aa31ba
travis: fail unformatted protos
6 years ago
Jimmy Zelinskie
f550dd16a0
api/v3: remove dependency on google empty message
6 years ago
Jimmy Zelinskie
d7a751e0d4
api/v3: prototool format
6 years ago