Commit Graph

165 Commits (07a97e30c6a46c863d35ebcca6a50f6fa4904fa1)

Author SHA1 Message Date
Tianon Gravi de271820a8 Add Debian Buster (10) and update "*stable" aliases
7 years ago
Jimmy Zelinskie abd7d2e013 Merge pull request #394 from KeyboardNerd/multiplens
7 years ago
Sida Chen 75d5d40d79 featurens: added multiple namespace testing for namespace detector
7 years ago
Sida Chen bffa6499b7 added support for detect multiple namespaces in a layer
7 years ago
Jimmy Zelinskie c2d8aec157 Merge pull request #382 from caipre/patch-1
7 years ago
Nick Platt aea74550e1 pgsql: Expand layer, namespace column widths
7 years ago
Jimmy Zelinskie 0305dde964 database/models: MetadataMap decodes from string
8 years ago
Sida Chen 9306e99368 converted to structured logging by using logrus
8 years ago
Tianon Gravi b6ab5d8168 Add Ubuntu Zesty and Artful to UbuntuReleasesMapping
8 years ago
Jimmy Zelinskie 9e875f748d database/pgsql: copy whole namespace
8 years ago
Jimmy Zelinskie 6a569fd945 move config to main / decentralize config
8 years ago
Jimmy Zelinskie 9c63a63944 clair: mv updater clair and mv severity to db
8 years ago
Jimmy Zelinskie 3e4dc3834f utils: remove string.go
8 years ago
Jimmy Zelinskie e7f72ef5ad utils: rm prometheus.go
8 years ago
Jimmy Zelinskie 343e24eb7e clair: remove `types` package
8 years ago
Jimmy Zelinskie 78cef02fda pkg: cerrors -> commonerr
8 years ago
Jimmy Zelinskie 224ff82543 pgsql/migrations: fix dpkg default versionfmt
8 years ago
Jimmy Zelinskie ca9f340a91 pgsql: only select distinct layers
8 years ago
Jimmy Zelinskie ea73aa153d pgsql: searchNotificationLayerIntroducingVulnerability order by layer ID
8 years ago
Jimmy Zelinskie 627b98ef31 db/pgsql/feature: fix SQL error reporting
8 years ago
Jimmy Zelinskie 8d29bf860d versionfmt: convert to using constant over literal
8 years ago
Jimmy Zelinskie 8df8170ba5 db/pgsql/migration: convert to pure SQL
8 years ago
Jimmy Zelinskie 9e39a26f26 backfill version_format column
8 years ago
Jimmy Zelinskie 033709eaea add registerable version formats
8 years ago
Jimmy Zelinskie 9338f28e82 psql/migrations: fix ordering
8 years ago
Jimmy Zelinskie d4522e9c6e api/v1: indexed layers for notifications
8 years ago
Quentin Machu 1fcae6abb8 Merge pull request #280 from coreos/add_idx_deleted_at
8 years ago
Quentin Machu 7a3dd5c817 pgsql: Disable hashjoins to get introducing layers for notifications
8 years ago
Quentin Machu eeb13a02ba pgsql/migrations: add index on Vulnerability_Notification.deleted_at
8 years ago
Jimmy Zelinskie dab6e492b8 Merge pull request #279 from coreos/searchintro_optimize
8 years ago
Quentin Machu dc8f71024f pgsql: Reduce cost of GetNotification by 2.5
8 years ago
Jimmy Zelinskie 7cff31a058 pgsql/migrations: add ldfv compound index
8 years ago
Jimmy Zelinskie 9dc002621a psql: add useful indexes
8 years ago
Quentin Machu 7fddd68f4f Merge pull request #263 from Quentin-M/rhel_unique_fixedin
8 years ago
Quentin Machu ec0aad9b7a pgsql: Use booleans instead of varchar to return creation status
8 years ago
Quentin Machu cd23262e41 pgsql: Do not insert entry in Vulnerability_FixedIn_Feature if existing
8 years ago
Quentin Machu b8865b2106 pgsql: Replace liamstask/goose by remind101/migrate
8 years ago
Matt Moore 90cc8243ba Add Ubuntu yakkety to the namespace mapping.
8 years ago
Quentin Machu a03459d02e Merge pull request #165 from Quentin-M/db_registration
8 years ago
Jimmy Zelinskie 5d8336acb3 pgsql: use subquery to plan GetNotification query (#182)
8 years ago
Quentin Machu 836d37b275 *: use `path/filepath` instead of `path`
8 years ago
Quentin Machu b99e2b50e2 database: Add some missing copyright headers
8 years ago
Quentin Machu 629d2ce662 database: Mock Datastore interface
8 years ago
Quentin Machu a38fbf6cfe worker/database: Move upgrade detection logic out of database to worker
8 years ago
Jimmy Zelinskie 51f9c5dcb4 pgsql: remove unnecessary join used in GetNotification (#179)
8 years ago
Quentin Machu e7b960c05b database: Allow specifying datastore driver by config
9 years ago
Quentin Machu 79ba99bbea database: Fix invalid error message
9 years ago
Jimmy Zelinskie 363cde29f4 psql: add debug message for duplicate layers
9 years ago
liangchenye 1a863a06cf remove the useless pointer of NextPage field; check namespace notfound error
9 years ago
liangchenye 48ffb2687a use encrypt page in listVuln api
9 years ago
liangchenye a541e964e0 New API: list vulnerabilities by namespace
9 years ago
Quentin Machu 9b191fb598 database: Find the FeatureVersion we try to insert before doing any lock
9 years ago
Jimmy Zelinskie 500fc4e407 various: gofmt -s
9 years ago
Jimmy Zelinskie 8fd0aa162b various: spelling corrections
9 years ago
Quentin Machu 84319507df database: use constants to store queries
9 years ago
Quentin Machu 06531e01c5 database: disable hash/merge joins in FindLayer
9 years ago
Quentin Machu 18f2d7e672 database: modify join table in FindLayer to reduce cost by 3.5x
9 years ago
Quentin Machu 6d2eedf121 api/database: add the layer name that add each feature in getLayer
9 years ago
Quentin Machu b5d8f9952e database: fix notification test (wrong signature)
9 years ago
Quentin Machu f0816d2c4d database: add docs about the interface
9 years ago
Quentin Machu d3b14106a9 database: ignore insertLayer collisions to make it truly idempotent
9 years ago
Quentin Machu e3a25e5368 database: ignore min versions during new vulnerability insertions
9 years ago
Quentin Machu 7c11e4eb5d updater/database: do not create notifications during the initial update
9 years ago
Quentin Machu 883be8769f database: fix Ping() method in PostgreSQL's implementation
9 years ago
Quentin Machu f8b4a52f8a database: make notification tests more robust (old/new, update/delete vulnerabilities)
9 years ago
Quentin Machu ccaaff000e database: add created_at field for layers and vulnerabilities
9 years ago
Quentin Machu 94ece7bf2b database: fix notification design and add vulnerability history
9 years ago
Jimmy Zelinskie 99f3552470 database: add Insert/DeleteVulnerabilityFix
9 years ago
Quentin Machu 03d904c620 database: improve PostgreSQL test inits and cleanups
9 years ago
Quentin Machu 5fdd9d1a07 *: add metadata support along with NVD CVSS
9 years ago
Quentin Machu 8f9779e232 database: cache feature version upon lookup
9 years ago
Quentin Machu 1e4ded6f2b database: add ability to list namespaces
9 years ago
Quentin Machu 35df7ca0eb database: fix feature version cache
9 years ago
Quentin Machu 8be18a0a01 database: write more of the notification system
9 years ago
Quentin Machu 3ecb8b69cb updater: ignore "ubuntu-core" in the Ubuntu fetcher
9 years ago
Quentin Machu d3d689a26a database: don't prune locks when we renew one
9 years ago
Quentin Machu 2690800331 database: create notification during vulnerability insertion
9 years ago
Quentin Machu baed60e19b prometheus: add initial Prometheus support
9 years ago
Quentin Machu ad0531acc7 notifier/database: refactor notification system and add initial Prometheus support
9 years ago
Quentin Machu b8b7be3f81 *: remove health checker
9 years ago
Quentin Machu 63ebddfd36 database: add vulnerability deletion support
9 years ago
Quentin Machu 21f152c03e database: fix keyvalue/notification tests
9 years ago
Quentin Machu 563b3825d8 database: let handleErrors deal with the not found case
9 years ago
Quentin Machu c60d0054fa notifier/database: draft new notification system
9 years ago
Quentin Machu 5759af5bcf database: test and fix layer updates
9 years ago
Quentin Machu 726bd3c0c6 database/api: add layer deletion support
9 years ago
Quentin Machu 248fc7df72 database: fix cache collision (feature & feature versions)
9 years ago
Quentin Machu 82175dcfe9 *: add missing copyright headers
9 years ago
Quentin Machu 6e20993bac api: simplify getLayer route and JSON output
9 years ago
Quentin Machu 92b734d0a4 database: remove an useless query in FindLayer
9 years ago
Quentin Machu bd17dfb5e1 database: ensure that concurrent vulnerability/feature versions insertions work fine
9 years ago
Quentin Machu 74fc5b3e66 database: add missing transaction commits and close opened statement before inserting feature versions.
9 years ago
Quentin Machu c5d1a8e5f7 database: update vulnerabilities only when necessary
9 years ago
Quentin Machu 77387af2ac updater: port updater and its fetchers
9 years ago
Quentin Machu 1b53142e38 database: allow removing fixed packages in vulnerabilities
9 years ago
Quentin Machu 7c70fc1c20 database: add initial vulnerability support
9 years ago
Quentin Machu 3a786ae020 database: add lock support
9 years ago
Quentin Machu 6a9cf21fd4 database: log and mask SQL errors
9 years ago
Quentin Machu 970756cd5a database: do insert/find layers (with their features and vulnerabilities)
9 years ago
Quentin Machu 2c150b015e *: refactor & do initial work towards PostgreSQL implementation
9 years ago