1
0
mirror of https://github.com/quay/quay.git synced 2026-01-27 18:42:52 +03:00
Commit Graph

29 Commits

Author SHA1 Message Date
Alec Merdler
7b827d953c add new 'ManifestSecurityStatus' database model for Clair v4 (#216) 2020-03-17 15:31:15 -07:00
Joseph Schorr
0844256a71 Major post-OCI cleanup (#225)
* Remove V3_UPGRADE_MODE

* Remove tag backfill worker and all callers to tag backfill and upgrades

* Change initdb to create all test data via the manifest builder, rather than manually via legacy images

* Convert various code paths to use the registry_model where we previously did not do so

* Convert the GC test suite to build via the manifest builder

* Delete an old, unused tool

* Delete the Pre OCI registry model

* Add additional error handling to the manifest creation code path

* Add additional error handling to the OCI tag creation code path

* Change how we respond to invalid manifest content types to better handle unknowns

* Change legacy secscan test suite to use the registry model

* Change the repo build badge to use the registry model (also fixes a bug)

* Delete now-unused data model code

* Remove old model adjustment code from OCI model

* Mark older data models as deprecated which will prevent new rows from being inserted

* Remove references to old registry test suite from various testing files

* Remove tag backfill worker (again; got re-added during rebase)

* Move all deprecated model checks into a central function

* Make data_migration more Pythonic

* Small requested fixes to Tag module styling

* Have tag backfill worker fail to migrate if there are TagManifest's

Since this backfill should only be called in future releases for empty models, this should catch someone attempting to upgrade from a too-old version

* Remove labelbackfillworker as it is no longer needed

* Remove unused invalid import

* Reimplement the tag test for the remaining method used
2020-03-17 13:27:29 -04:00
Joseph Schorr
5619452776 Add ability to filter user lookups in LDAP user system (#252)
This allows customers to specify additional restrictions on the users
that are allowed to be used

Fixes https://issues.redhat.com/browse/PROJQUAY-226
2020-03-16 11:38:14 -04:00
Jake Moshenko
7f56b221e8 Gen migrations (#240)
* Move truthy_bool to a neutral location.

* Add dba operator migration version generation code.
Change existing migrations to use an injected and wrapped op.

* Generate databasemigration hints files for all existing migrations.

* Reformat with black.
2020-03-11 13:54:08 -04:00
Kurtis Mullins
82d1a0d160 [PROJQUAY-329] Only allow lowercase characters in repository names. (#235) 2020-02-28 10:02:52 -05:00
Jimmy Zelinskie
a57f7ecc4b reverts histograms to default buckets
This is in attempts to keep the codebase as idiomatic as possible.
An addition benefit of reverting to the default histogram buckets is
that the slowest route durations more accurate.
2020-02-11 11:49:37 -05:00
alecmerdler
3dd5f045ff fix all the docstrings 2020-02-05 19:55:07 -08:00
Joseph Schorr
f3c887899a Merge pull request #134 from josephschorr/joseph.schorr/QUAY-1747/better-tagging
Add better tagging options for build triggers.
2020-02-04 13:31:57 -05:00
Joseph Schorr
c061e78697 Add support for blacklisting V2_2 by namespace
Customer has reported an issue only reproducible under V2_2 from an old Docker version, so add a blacklist so we can turn V2_2 off for them until we can identify the root issue
2020-01-31 21:20:54 -05:00
Joseph Schorr
89ec88c3c1 Merge pull request #175 from josephschorr/joseph.schorr/PROJQUAY-177/abstract-sec-api
Place all security scanner access behind a new data model interface
2020-01-29 16:29:21 -05:00
Joseph Schorr
d9d6083ad6 Place all security scanner access behind a new data model interface
This is in preparation for the beginning of support for the new API for ClairCore (V4)

Fixes https://issues.redhat.com/browse/PROJQUAY-177
2020-01-29 13:02:14 -05:00
Joseph Schorr
6db1910a97 Change repository deletion to occur in the background
Fixes https://issues.redhat.com/browse/PROJQUAY-124
2020-01-27 14:16:01 -05:00
Joseph Schorr
22ad056192 Add better tagging options for build triggers.
Users can now configure whether they want the default tagging options enabled (tag `latest` for the default branch, and tag with the git branch or tag name), and can also specify custom tags, including static tags and dynamic templated tags.

Fixes https://jira.coreos.com/browse/QUAY-1747
2020-01-23 15:45:55 -05:00
Jimmy Zelinskie
6cb4e4b285 Merge pull request #169 from jzelinskie/prom-route
metrics: s/endpoint/route
2020-01-17 10:51:21 -05:00
Jimmy Zelinskie
6137546f3c metrics: s/endpoint/route
Endpoint already has semantic meaning as a label in existing Prometheus
scraping. In order to avoid conflicts and simplify aggregation, this
label is being renamed.
2020-01-16 16:41:00 -05:00
Joseph Schorr
945a18052a Add a configurable limit for app registry responses
https://issues.redhat.com/browse/PROJQUAY-170
2020-01-16 10:48:53 -05:00
Joseph Schorr
9a05ca9795 Add a timeout to queuefile to ensure it doesn't block forever
https://issues.redhat.com/browse/PROJQUAY-132
2020-01-09 17:01:35 -05:00
Joseph Schorr
d619ecdd23 Merge pull request #109 from josephschorr/joseph.schorr/QUAY-1322/custom-webhook-body
Add support for custom webhook bodies
2020-01-06 14:07:10 +02:00
Joseph Schorr
a563ec186f Add support for custom webhook bodies
This will allow users to configure the body content of outgoing webhooks for notifications

Fixes https://jira.coreos.com/browse/QUAY-1322
2019-12-18 15:37:05 +02:00
Joseph Schorr
0395f52660 This PR adjusts the fresh login check so that it will be skipped if a password is set for the user in any auth system.
This PR also makes the fresh login check time configurable

Fixes https://jira.coreos.com/browse/QUAY-1312
2019-12-18 14:55:29 +02:00
Jimmy Zelinskie
1e8b15ef0c util/metrics: use basename for processname
This fixes the description of workers to represent just the file being
executed by Python.
2019-12-11 11:22:49 -05:00
Jimmy Zelinskie
9755eb2715 util/metrics: fix unqualified identifier 2019-12-10 15:54:52 -05:00
Jimmy Zelinskie
6a83a52cad util/metrics: log groupkey and add more host data 2019-12-10 13:18:38 -05:00
Jimmy Zelinskie
2241d6693b util/metrics: add process based grouping key 2019-12-09 16:04:23 -05:00
Jimmy Zelinskie
e8a1f74ed3 metrics: add debug logging for pushgateway 2019-12-06 14:14:56 -05:00
Jimmy Zelinskie
7687e16fc1 conf: replace prometheus aggregator w/ pushgateway
This change replaces the homegrown Prometheus aggregation process that
runs inside the container with the upstream Prometheus PushGateway.
2019-12-05 12:05:43 -05:00
Jimmy Zelinskie
5b3db536ef util/metrics: remove metricqueue abstraction
This change replaces the metricqueue library with a native Prometheus
client implementation with the intention to aggregated results with the
Prometheus PushGateway.

This change also adds instrumentation for greenlet context switches.
2019-12-05 12:05:43 -05:00
Tom McKay
e6ae94db8b 'make black' results 2019-12-02 12:23:08 -05:00
Jimmy Zelinskie
9c0dd3b722 initial import for Open Source 🎉 2019-11-12 11:09:47 -05:00