Commit graph

8944 commits

Author SHA1 Message Date
Sam Chow
2d0a599aab Create download modal following setup completion 2018-06-28 13:53:28 -04:00
Sam Chow
aa93d698b2 Tarball the config and give it to the front end
Download file as blob to avoid binary string encoding
2018-06-28 13:53:17 -04:00
Brad Ison
06f3a7d20a
Merge pull request #3124 from bison/update-user-schema
endpoints/api: Allow null fields in user metadata
2018-06-27 17:02:57 -04:00
Brad Ison
73cb7f3228
endpoints/api: Allow null fields in user metadata
The user metadata fields are nullable in the database, but were not in
the json sechema.  This prevented users from updating some of their
information on the site if they hadn't set the metadata fields.
2018-06-27 15:34:55 -04:00
Sam Chow
7619ab44e5 Revert inmemoryprov, skip local storage validation 2018-06-25 15:23:30 -04:00
Sam Chow
f32bbf1fdc
Merge pull request #3121 from quay/project/upload-tar
Q.E. User can upload a tarball config to modify
2018-06-22 14:50:21 -04:00
Sam Chow
872be8605a Fix error case in uploading tar, more comments 2018-06-22 13:23:08 -04:00
Joseph Schorr
92aaa23669
Merge pull request #3122 from quay/joseph.schorr/QUAY-975/disabled-routes
Audit which routes needed to be disabled for disabled users
2018-06-22 11:34:22 -04:00
Sam Chow
d6d0bb640a Modify config field to use base api endpoint
allow streaming from gzipped tarball config
2018-06-22 10:57:35 -04:00
Sam Chow
aff1a08a83 Fix main app migration pathway 2018-06-21 15:33:26 -04:00
Joseph Schorr
2b34ae74fe Add test for trying to pull the tags of a repository under a disabled namespace 2018-06-21 14:41:27 -04:00
Joseph Schorr
fdd0db7a7f Add test for trying to pull the catalog under a disabled namespace 2018-06-21 14:41:27 -04:00
Joseph Schorr
892cc82b6a Ensure that verbs cannot be performed on disabled namespaces or by disabled users 2018-06-21 14:41:27 -04:00
Brad Ison
db7e5f7cfa
Merge pull request #3123 from bison/no-parallel-tests
Revert "Parallelize pytest runs in Makefile"
2018-06-21 13:42:53 -04:00
Brad Ison
b68d3b399e
Revert "Parallelize pytest runs in Makefile"
This reverts commit 5ce15348ea.
2018-06-21 12:07:00 -04:00
Sam Chow
561522c6d3 Port cor-title and add file check endpoint
Fix some FA5 regressions

Fix uploading cert files

Add fix some icons
2018-06-20 17:36:48 -04:00
Sam Chow
b5f630ba29 Fix alembic migrations importing app
Ensure we connect to loaded config db
2018-06-20 17:17:35 -04:00
Sam Chow
bb2b28cd11 Read tarball into in-memory config provider 2018-06-20 17:15:43 -04:00
Sam Chow
8aa18a29a8 Add writing config to file, modal for validation 2018-06-20 17:15:43 -04:00
Sam Chow
c7513199df link config comp to upload files to endpoint 2018-06-20 17:15:43 -04:00
Sam Chow
b631b0f271 Add missing files changed directive to upload 2018-06-20 17:15:43 -04:00
Joseph Schorr
68f8eb5a8f
Merge pull request #3120 from quay/joseph.schorr/QUAY-989/ip-api-key
Fix the IP data lookup to take in an API key
2018-06-20 16:58:09 -04:00
Joseph Schorr
371f6f8946
Merge pull request #3118 from quay/joseph.schorr/QUAY-977/catalog-efficiency
Catalog efficiency improvements
2018-06-20 16:40:37 -04:00
Joseph Schorr
ebb5d17641
Merge pull request #3119 from quay/joseph.schorr/QUAY-976/rate-limit-audit
Audit out endpoints and ensure everything has a defined rate limit (even if quite large)
2018-06-20 15:50:48 -04:00
Joseph Schorr
d4882f0077 Fix the IP data lookup to take in an API key
Fixes https://jira.coreos.com/browse/QUAY-989
2018-06-20 15:44:40 -04:00
Joseph Schorr
2caaf84f31 Add caching support to catalog
We will now cache the results of the catalog for 60s and not hit the database at all if cached
2018-06-20 14:58:01 -04:00
Joseph Schorr
33a8099f35 Temporarily double the request limit. We'll start ratcheting it down over time. 2018-06-20 14:31:51 -04:00
Joseph Schorr
1d94e4d605 Audit out endpoints and ensure everything has a defined rate limit (even if quite large)
For registry operations, these were the numbers found at time the PR was written:

download_blob 108 per second across fleet
v2_auth 180 per second across fleet
catalog 1 per second across fleet
fetch_manifest 205 per second across fleet
list_all_tags 150 per second across fleet

With an average fleet size of 25. As a result, we went with a registry limit of 10r/s (10 * 25 = 250 requests) to bound even the most prolific puller.

Fixes https://jira.coreos.com/browse/QUAY-976
2018-06-20 13:36:24 -04:00
Joseph Schorr
a1c06042c6 Add a unique_key fields to the auth context type for tracking different instances
This will allow us to lookup a cache for the catalog without needing to make a database call
2018-06-19 11:09:58 -04:00
Joseph Schorr
7604e9842b Change repo filtering for users to use a user ID reference, rather than the username
While this means we need an additional query for initial lookup, it makes the *filtering* query (which is the heavy part) require far fewer joins, thus making it more efficient.

Also adds a new unit test to verify that our filter filters to the correct set of repositories.
2018-06-19 10:51:30 -04:00
Joseph Schorr
f2b9aa4527 Add pytest cache files to gitignore 2018-06-19 10:50:23 -04:00
Joseph Schorr
a3554a73d8
Merge pull request #3069 from quay/joseph.schorr/QUAY-913/db-test-data
Add support for populating test data during migration testing
2018-06-19 10:40:28 -04:00
Joseph Schorr
3161b60522 Switch V2 pagination back to using IDs, which should be much faster and easier on the DB
Also adds a test for the tags endpoint
2018-06-18 16:11:26 -04:00
Joseph Schorr
f6ff0d6ca0 Add support for populating test data during migration testing
This change ensures that the tables in the database during migration have at least one row of "real" data, which should help catch issues in the future where we forget to set column defaults and other such schema oversights that can only be truly tested with non-empty tables

Fixes https://jira.coreos.com/browse/QUAY-913
2018-06-18 14:14:32 -04:00
Joseph Schorr
b8b2c75822
Merge pull request #3054 from quay/v2-manifest
V2 Schema 2 manifest support
2018-06-18 11:44:26 -04:00
Joseph Schorr
a73cd9170a Add schema2 list support 2018-06-15 16:00:39 -04:00
Joseph Schorr
52b12131f7 Add schema2 manifest and schema2 config, along with tests 2018-06-15 16:00:39 -04:00
Joseph Schorr
4bd70eab3c Add basic tests for schema1 2018-06-15 16:00:39 -04:00
Joseph Schorr
02b9549a79
Merge pull request #3117 from quay/joseph.schorr/QUAY-969/extract-torrent
Extract app from torrent handling code
2018-06-15 11:24:02 -04:00
Joseph Schorr
0fdefd78e9 Extract app from torrent handling code
Fixes https://jira.coreos.com/browse/QUAY-969
2018-06-14 17:29:39 -04:00
Joseph Schorr
c92c0ca5e1
Merge pull request #3116 from quay/brackets-in-labels
Fix display of brackets in the labels view
2018-06-14 12:59:41 -04:00
Joseph Schorr
02db044e0e Fix display of brackets in the labels view
Fixes https://jira.coreos.com/browse/QUAY-983
2018-06-14 11:44:20 -04:00
Sam Chow
1f823097a8
Merge pull request #3112 from quay/project/option
Config app entrypoint screen
2018-06-14 10:40:39 -04:00
Sam Chow
690b7674e7 Create intial config setup modal
remove the registry title
2018-06-13 16:44:12 -04:00
Sam Chow
e250f4ebe6
Merge pull request #3109 from quay/project/ssl
Implement SSL for Q.E. config app user
2018-06-13 15:32:25 -04:00
Joseph Schorr
840a547fc9
Merge pull request #3115 from quay/gitlab-fixes
Small fixes for GitLab trigger handler, since the GitLab API is returning the wrong ID for the user's namespace
2018-06-13 15:15:02 -04:00
Joseph Schorr
63ed683dfa Small fixes for GitLab trigger handler, since the GitLab API is returning the wrong ID for the user's namespace
Also has a small UI improvement
2018-06-13 15:12:05 -04:00
Brad Ison
51469001c8
Merge pull request #3114 from bison/travis-slack
Add Slack notifications to Travis CI config
2018-06-13 14:55:54 -04:00
Brad Ison
86e5b87211
Add Slack notifications to Travis CI config 2018-06-13 14:51:53 -04:00
Sam Chow
69c155ef4f Sets up nginx on image for config app with ssl
Move copying entry scripts to quay-entrypoint
2018-06-13 14:29:11 -04:00