This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/data/migrations/versions
Joseph Schorr 8aac3fd86e Add support for an external JWT-based authentication system
This authentication system hits two HTTP endpoints to check and verify the existence of users:

Existance endpoint:
GET http://endpoint/ with Authorization: Basic (username:) =>
    Returns 200 if the username/email exists, 4** otherwise

Verification endpoint:
GET http://endpoint/ with Authorization: Basic (username:password) =>
    Returns 200 and a signed JWT with the user's username and email address if the username+password validates, 4** otherwise with the body containing an optional error message

The JWT produced by the endpoint must be issued with an issuer matching that configured in the config.yaml, and the audience must be "quay.io/jwtauthn". The JWT is signed using a private key and then validated on the Quay.io side with the associated public key, found as "jwt-authn.cert" in the conf/stack directory.
2015-06-05 13:20:10 -04:00
..
1c3decf6b9c4_add_revert_tag_log_entry_kind.py Add ability to revert tags via time machine 2015-04-16 17:18:00 -04:00
1c5b738283a5_backfill_user_uuids.py Add a migration for backfilling user UUIDs. 2014-11-20 18:28:54 -05:00
1d2d86d09fcd_actually_remove_the_column.py Trap migration exceptions for the migration that we expect to fail in prod. 2015-02-13 13:11:50 -05:00
1f116e06b68_add_gitlab_trigger_type.py Add migration to add gitlab trigger type 2015-05-03 10:49:13 -07:00
2b4dc0818a5e_add_a_unique_index_to_prevent_deadlocks_.py Add the migration for the unique index which helps prevent tag deadlocks. 2015-03-24 18:00:04 -04:00
2b2529fd23ff_add_aggregate_size_column.py Add aggregate size column and a migration to backfill it 2015-03-16 18:03:17 -04:00
2fb36d4be80d_remove_the_namespace_column.py Temporarily put user rename behind a feature flag. Switch queue names back to using the username for namespace while we figure out a real migration strategy. 2014-11-20 15:36:39 -05:00
3b4d3a4461dc_add_support_for_squashed_images.py Fix the squashed image migration to insert the proper image transformation type. 2014-10-08 11:47:02 -04:00
3e2d38b52a75_add_access_token_kinds_type.py Add tracking of the kind of temporary access tokens, so we can display if a pull/push by token is for a build worker 2015-02-17 12:35:16 -05:00
3f4fe1194671_backfill_the_namespace_user_fields.py Fix all of the upgrades and downgrades to work on both mysql and postgres. 2014-10-06 16:41:49 -04:00
3fee6f979c2a_make_auth_token_nullable.py migration: make auth_token for builds nullable 2015-03-27 11:20:30 -04:00
4a0c94399f38_add_new_notification_kinds.py Merge remote-tracking branch 'origin/master' into yellowalert 2014-09-05 11:30:30 -04:00
4b7ef0c7bdb2_add_the_maintenance_notification_type.py Inject the tables metadata into the upgrade and downgrade functions. Fix a bunch of the downgrades to actually work. 2014-09-04 20:58:29 -04:00
4ce2169efd3b_add_reversion_column_to_the_tags_table.py migration: use SA boolean value for server_default 2015-05-15 19:04:54 -04:00
4ef04c61fcf9_allow_tags_to_be_marked_as_hidden.py Allow tags to be marked as hidden. Create a hidden tag on every image during a push to prevent them from getting GCed. 2015-02-18 17:05:16 -05:00
4fdb65816b8d_add_brute_force_prevention_metadata_to_.py Fix migration issues: 2014-11-03 15:25:55 -05:00
5a07499ce53f_set_up_initial_database.py Explicitly declare length of large MySQL indices. 2015-01-06 14:55:31 -05:00
5ad999136045_add_signature_storage.py Fixes 2015-02-05 17:37:58 -05:00
5b84373e5db_convert_slack_webhook_data.py move slackwebhook migration from tools to util 2014-12-18 13:22:13 -05:00
6f2ecf5afcf_add_the_uncompressed_size_to_image_.py Fix the migration to use the proper base. 2014-09-23 14:04:20 -04:00
9a1087b007d_allow_the_namespace_column_to_be_.py Fix all of the upgrades and downgrades to work on both mysql and postgres. 2014-10-06 16:41:49 -04:00
13da56878560_migrate_registry_namespaces_to_.py Fix the migration to use the proper column name that peewee expects. 2014-09-23 14:20:15 -04:00
14fe12ade3df_add_build_queue_item_reference_to_the_.py Handle internal errors in a better fashion: If a build would be marked as internal error, only do so if there are retries remaining. Otherwise, we mark it as failed (since it won't be rebuilt anyway) 2015-02-12 16:19:44 -05:00
17f11e265e13_add_uuid_field_to_user.py Remove backfill from UUID migration 2014-11-20 14:04:12 -05:00
30c044b75632_add_repositoryactioncount_table.py Add a RepositoryActionCount table so we can use it (instead of LogEntry) when scoring repo search results 2015-04-13 13:31:07 -04:00
34fd69f63809_add_support_for_build_log_migration.py Set up the service monitoring for the log migration script. Add a database migration to add the logs_archived column. 2014-09-12 11:57:47 -04:00
37c47a7af956_add_custom_git_trigger_type_to_database.py migration: add custom-git service to database 2015-04-24 16:11:58 -04:00
41f4587c84ae_add_jwt_authentication_login_service.py Add support for an external JWT-based authentication system 2015-06-05 13:20:10 -04:00
43e943c0639f_add_log_kind_for_regenerating_robot_.py - Add a log entry for repo verb handling and make the container usage calculation take it into account 2014-10-29 15:42:44 -04:00
51d04d0e7e6f_email_invites_for_joining_a_team.py Allow the namespace column to be null, and also non-unique. Fix the uncompressed size clobbering the size on the wire field. Add metadata constraints so that foreign key constraints get predictable names. Fix all downgrade migrations. 2014-10-02 10:46:20 -04:00
67eb43c778b_add_index_for_repository_datetime_to_.py Add migration for properly creating the repository_id+datetime index 2015-04-19 16:03:06 -04:00
201d55b38649_remove_fields_from_image_table_that_.py Fix all of the upgrades and downgrades to work on both mysql and postgres. 2014-10-06 16:41:49 -04:00
204abf14783d_add_log_entry_kind_for_verbs.py Strip whitespace from ALL the things. 2014-11-24 16:07:38 -05:00
228d1af6af1c_mysql_max_index_lengths.py Continuation of baa4918d89. 2015-01-06 15:11:37 -05:00
313d297811c4_add_an_index_to_the_docker_image_id_.py Add an index to the docker_image_id for faster lookup 2014-11-13 12:51:50 -05:00
325a4d7c79d9_prepare_the_database_for_the_new_.py Strip whitespace from ALL the things. 2014-11-24 16:07:38 -05:00
509d2857566f_track_the_lifetime_start_and_end_for_.py Merge remote-tracking branch 'origin/master' into rockyhorror 2015-02-18 10:56:01 -05:00
707d5191eda_change_build_queue_reference_from_.py Fix queue handling to remove the dependency from repobuild, and have a cancel method 2015-02-23 13:38:01 -05:00
1594a74a74ca_add_metadata_field_to_external_logins.py Inject the tables metadata into the upgrade and downgrade functions. Fix a bunch of the downgrades to actually work. 2014-09-04 20:58:29 -04:00
2088f2b81010_add_stars.py Fix revision 2015-03-05 15:06:46 -05:00
2430f55c41d5_calculate_uncompressed_sizes_for_all_.py Switch postgres to a non-transactional DDL to allow us to use peewee to modify data in migrations: enterprise customers are running postgres migrations offline already. Move the image backfill script back to a migration since it will now work. Unify the interface to sending a DB URI to env.py for the migration script. 2014-11-18 14:07:33 -05:00
31288f79df53_make_resource_key_nullable.py migration: make resource_key nullable 2015-03-23 15:46:35 -04:00
47670cbeced_migrate_existing_webhooks_to_.py Inject the tables metadata into the upgrade and downgrade functions. Fix a bunch of the downgrades to actually work. 2014-09-04 20:58:29 -04:00
82297d834ad_add_us_west_location.py Inject the tables metadata into the upgrade and downgrade functions. Fix a bunch of the downgrades to actually work. 2014-09-04 20:58:29 -04:00
214350b6a8b1_add_private_key_to_build_triggers.py Merge branch 'master' into git 2015-04-20 10:58:49 -04:00
313179799c8b_add_bitbucket_build_trigger_type.py Add bitbucket trigger type 2015-04-30 15:55:57 -04:00
b1d41e2071b_add_an_index_to_the_uuid_in_the_image_.py Add an index to the image storage uuid to improve performance. 2014-10-06 18:44:37 -04:00
bcdde200a1b_add_placements_and_locations_to_the_db.py Inject the tables metadata into the upgrade and downgrade functions. Fix a bunch of the downgrades to actually work. 2014-09-04 20:58:29 -04:00
f42b0ea7a4d_remove_the_old_webhooks_table.py Fix all of the upgrades and downgrades to work on both mysql and postgres. 2014-10-06 16:41:49 -04:00