Commit Graph

44 Commits

Author SHA1 Message Date
Stan Hu 831d6f5f77 Properly handle container registry redirects to fix metadata stored on a S3 backend
The previous behavior would include the Authorization header, which would
make fetching an S3 blob fail quietly.

Closes #22403

Update sh-fix-container-registry-s3-redirects.yml
2017-05-17 07:04:34 -07:00
Grzegorz Bizon f6a11d00a8 Fix duplicated container repository names 2017-04-18 22:20:47 +02:00
Grzegorz Bizon b5b6c7b175 Sanitize container repository path in model class 2017-04-13 11:54:02 +02:00
Grzegorz Bizon 259108ada3 Fix registry for projects with uppercases in path 2017-04-13 09:20:42 +02:00
Grzegorz Bizon 37ab389139 Revert "Fix registry for projects with uppercases in path"
This reverts commit 22726942fe.
2017-04-13 09:18:46 +02:00
Grzegorz Bizon 22726942fe Fix registry for projects with uppercases in path 2017-04-13 09:11:41 +02:00
Grzegorz Bizon 7ec3c2dcee Add method that returns location of registry image 2017-04-10 13:07:36 +02:00
Grzegorz Bizon 714c408f22 Add minor improvements to container registry code 2017-04-06 10:23:51 +02:00
Grzegorz Bizon 1c91d52a70 Remove unneeded char in registry repository path 2017-04-04 11:58:15 +02:00
Grzegorz Bizon 97c6cf59b3 Swap method names in containe registry path class 2017-04-04 11:56:32 +02:00
Grzegorz Bizon e10dae3e3c Improve code in container repository path class 2017-04-03 11:44:16 +02:00
Grzegorz Bizon 1a47986b3d Check registry repository name against regexp
This regexp is extracted from Docker Distribution 2.4.1 docs, contains
additional `/` element that can be a separator of components.
2017-04-03 11:38:39 +02:00
Grzegorz Bizon 83d1fe9b5a Add serveral minor improvements to container registry 2017-03-31 15:10:15 +02:00
Grzegorz Bizon f32d269cfa Remove unused method from container registry client 2017-03-31 13:16:16 +02:00
Grzegorz Bizon 7d3d1ec5a7 Create container repository on successful push auth
Because we do not have yet two way communication between container
registry and GitLab, we need to eagerly create a new container
repository objects in database. We now do that after user/build
successfully authenticates a push action using auth service.
2017-03-30 15:24:46 +02:00
Grzegorz Bizon 003a51d17a Check container repository exists for a given path 2017-03-30 13:45:54 +02:00
Grzegorz Bizon 06bae00365 Make container repository path code more readable 2017-03-29 12:53:02 +02:00
Grzegorz Bizon 8584798886 Fix rubocop offense in container registry path class 2017-03-29 12:11:38 +02:00
Grzegorz Bizon bdc1e1b9e0 Implement method matching container repository names 2017-03-28 14:57:22 +02:00
Grzegorz Bizon b15d9042e2 Implement container repository path class 2017-03-28 14:34:56 +02:00
Grzegorz Bizon af42dd29a0 Fix specs for container repository tags 2017-03-24 12:31:34 +01:00
Grzegorz Bizon 68a2fa54de Remove out-of-scope changes for multi-level images 2017-03-22 11:08:23 +01:00
Grzegorz Bizon c5912ecd73 Merge branch 'master' into feature/multi-level-container-registry-images
* master: (1327 commits)
  Merge branch 'render-json-leak' into 'security'
  Merge branch 'ssrf' into 'security'
  Merge branch 'ssrf' into 'security'
  Merge branch 'fix-links-target-blank' into 'security'
  Merge branch '28058-hide-emails-in-atom-feeds' into 'security'
  Fix karma test
  Reset filters after click
  Handle Route#name being nil after an update
  Only add frontend code coverage instrumentation when generating coverage report
  fix recompile assets step in 9.0 upgrade guide to use yarn
  Undo explicit conversion to Integer
  Make level_value accept string integers
  Make feature spec more robust
  Removed d3.js from the main application.js bundle
  Extend compound status for manual actions specs
  Update css to be nice and tidy.
  Fix pipeline status for transition between stages
  add an index to the ghost column
  Return 404 in project issues API endpoint when project cannot be found
  Improve rename projects migration
  ...

Conflicts:
	doc/ci/docker/using_docker_build.md
	spec/lib/gitlab/import_export/all_models.yml
2017-03-21 14:22:56 +01:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Andre Guedes e4fa80f3b6 Fixes broken and missing tests 2017-02-22 11:30:11 -03:00
Andre Guedes dcd4beb8eb Multi-level container image names backend implementation
- Adds Registry events API endpoint
  - Adds container_images_repository and container_images models
  - Changes JWT authentication to allow multi-level scopes
  - Adds services for container image maintenance
2017-02-22 11:29:06 -03:00
Andre Guedes e43b2e81da Added MR Road map 2017-02-22 11:27:18 -03:00
Kamil Trzcinski 2462a473c2 Make rubocop happy 2016-07-15 18:05:39 +02:00
Kamil Trzcinski 3e4dc164a7 Explicitly remove authorization token and make sure that invalid addresses are properly handled 2016-07-15 17:35:23 +02:00
Kamil Trzcinski a3d8a7e6be Allow blob to be redirected 2016-07-15 17:14:01 +02:00
Kamil Trzcinski fbdf9008c2 Make docker registry work with location redirects when external storage is used 2016-07-15 17:14:00 +02:00
Kamil Trzcinski 70606bf0c1 Show proper image ID on registry page 2016-06-21 13:08:10 +02:00
Kamil Trzcinski 35319aa4ac Use response_body 2016-06-17 17:33:03 +02:00
Kamil Trzcinski 04ffd71e53 Fix regression introduced by https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4669
When requesting tags a `application/json` is used.
2016-06-17 13:24:50 +02:00
Kamil Trzcinski f30d1fdf94 Add support for Docker Registry manifest v1 2016-06-15 12:53:23 +02:00
Kamil Trzcinski 24145592e8 Provide full test coverage to lib/container_registry API implementation 2016-05-17 13:20:11 -05:00
Kamil Trzcinski a82109eee8 Add .gitkeep 2016-05-17 09:41:47 -05:00
Kamil Trzcinski 91c4002a0c Improve test coverage 2016-05-16 18:03:55 -05:00
Kamil Trzcinski e60bbdf9d9 Fix path to tag 2016-05-16 09:49:55 -05:00
Kamil Trzcinski 5c2f2fd289 Fix CI tests 2016-05-12 13:03:04 -05:00
Kamil Trzcinski d05f0030a3 Added Docker Registry View tests 2016-05-09 23:32:18 +03:00
Kamil Trzcinski b5043d5d33 Fix review comments 2016-05-09 22:34:24 +03:00
Kamil Trzcinski d7b91fb596 Simplify Container Registry view implementation 2016-05-09 22:27:06 +03:00
Kamil Trzcinski 08396be619 Rename ImageRegistry to ContainerRegistry 2016-05-09 22:14:46 +03:00