Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-01-11Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉
2018-01-08Backport authorized_keys branch 'find-key-by-fingerprint'Pablo Carranza
Add find key by base64 key or fingerprint to the internal API See merge request !250 Squashed changes: Add unique index to fingerprint Add new index to schema Add internal api to get ssh key by fingerprint Change API endpoint to authorized_keys Add InsecureKeyFingerprint that calculates the fingerprint without shelling out Add require for gitlab key fingerprint Remove uniqueness of fingerprint index Remove unique option from migration Fix spec style in fingerprint test Fix rubocop complain Extract insecure key fingerprint to separate file Change migration to support building index concurrently Remove those hideous tabs
2017-12-24Gracefully handle orphaned write deploy keys in /internal/post_receiveStan Hu
On GitLab.com, there are write deploy keys with no associated users. Pushes with these deploy keys end with an Error 500 since we attempt to look up redirect message. If there is no user, don't attempt to display a redirect message. Closes #41466
2017-12-08Allow git pull/push on project redirectsMayra Cabrera
2017-11-14Use relative git object paths to construct absolute ones before setting EnvAhmad Sherif
2017-09-30add username to authorized result, so that gitlab-shell can pass it to hooksDavid Turner
2017-09-28refactor users update serviceJames Lopez
2017-09-28refactor services to match EE signatureJames Lopez
2017-09-06Implement /internal/pre-receive for shell operationsAlejandro RodrĂ­guez
2017-09-06Return a value to check if redis is available on /internal/checkAlejandro RodrĂ­guez
2017-08-31Implement /internal/post_receive unified endpoint for PostReceive tasksAlejandro RodrĂ­guez
2017-07-18Renamed Gitaly servicesAndrew Newdigate
2017-07-14Handle case when BroadcastMessage.current is nilStan Hu
Somehow Rails.cache.fetch occasionally returns `nil` values, which causes this endpoint to crash. Closes #35094
2017-07-07Send Gitaly Repository with /api/internal/allowedKim "BKC" CarlbÀcker
- Make single gitaly payload - Add feature-flag specs to verify payload
2017-06-23update code based on feedbackJames Lopez
2017-06-23refactor update user service not to do auth checksJames Lopez
2017-06-23more refactoring based on feedbackJames Lopez
2017-06-23added service in the rest of controllers and classesJames Lopez
2017-06-20Allow discover by userid - issue 28517Matt Walsh
2017-06-17Add “Project moved” error to Git-over-SSHMichael Kozono
2017-06-15#13336 - display multiple messages in both the UI and git outputMike Ricketts
2017-06-05Remove unnecessary variableMichael Kozono
2017-06-05Refactor construction of responseMichael Kozono
2017-06-05Refactor to let GitAccess errors bubble upMichael Kozono
No external behavior change. This allows `GitHttpController` to set the HTTP status based on the type of error. Alternatively, we could have added an attribute to GitAccessStatus, but this pattern seemed appropriate.
2017-05-18Prevent errors from non-functional notify_post_receive endpointAlejandro RodrĂ­guez
2017-05-10Enable the Style/TrailingCommaInLiteral copRĂ©my Coutable
Use the EnforcedStyleForMultiline: no_comma option. Signed-off-by: RĂ©my Coutable <remy@rymai.me>
2017-05-05Pass GL_REPOSITORY in Workhorse responsesAlejandro RodrĂ­guez
2017-05-03Generate and handle a gl_repository param to pass around componentsAlejandro RodrĂ­guez
This new param allows us to share project information between components that don't share or don't have access to the same filesystem mountpoints, for example between Gitaly and Rails or between Rails and Gitlab-Shell hooks. The previous parameters are still supported, but if found, gl_repository is prefered. The old parameters should be deprecated once all components support the new format.
2017-04-27Wrong method call on notify_post_receive.Luigi Leoni
2017-04-14Remove unused user activities codeSean McGivern
2017-04-14Add user activity service and spec. Also added relevant - NOT offline - ↔James Lopez
migration It uses a user activity table instead of a column in users. Tested with mySQL and postgreSQL
2017-04-10Set Git-specific env in /api/internal/allowedRĂ©my Coutable
Signed-off-by: RĂ©my Coutable <remy@rymai.me>
2017-04-07Use Gitlab::Git::Repository#gitaly_... moreJacob Vosmaer
2017-04-04Incorporate Gitaly client for refs serviceAlejandro RodrĂ­guez
2017-03-29Separate GRPC channels per repository storageJacob Vosmaer
2017-03-02Add internal endpoint to notify post-receive to GitalyAlejandro RodrĂ­guez
2017-01-08Record and show last used date of SSH KeysVincent Wong
Addresses: Issue #13810 1. Adds a last_used_at attribute to the Key table/model 2. Update a key's last_used_at whenever it gets used 3. Display how long ago an ssh key was last used
2016-12-16Accept environment variables from the `pre-receive` script.Timothy Andrew
1. Starting version 2.11, git changed the way the pre-receive flow works. - Previously, the new potential objects would be added to the main repo. If the pre-receive passes, the new objects stay in the repo but are linked up. If the pre-receive fails, the new objects stay orphaned in the repo, and are cleaned up during the next `git gc`. - In 2.11, the new potential objects are added to a temporary "alternate object directory", that git creates for this purpose. If the pre-receive passes, the objects from the alternate object directory are migrated to the main repo. If the pre-receive fails the alternate object directory is simply deleted. 2. In our workflow, the pre-recieve script (in `gitlab-shell) calls the `/allowed` endpoint, which calls out directly to git to perform various checks. These direct calls to git do _not_ have the necessary environment variables set which allow access to the "alternate object directory" (explained above). Therefore these calls to git are not able to access any of the new potential objects to be added during this push. 3. We fix this by accepting the relevant environment variables (GIT_ALTERNATE_OBJECT_DIRECTORIES, GIT_OBJECT_DIRECTORY) on the `/allowed` endpoint, and then include these environment variables while calling out to git. 4. This commit includes (whitelisted) these environment variables while making the "force push" check. A `Gitlab::Git::RevList` module is extracted to prevent `ForcePush` from being littered with these checks.
2016-11-16Fix POST /internal/allowed to cope with gitlab-shell v4.0.0 project pathsNick Thomas
gitlab-shell v3.6.6 would give project paths like so: * namespace/project gitlab-shell v4.0.0 can give project paths like so: * /namespace1/namespace2/project * /namespace/project * /path/to/repository/storage/namespace1/namespace2/project * /path/to/repository/storage/namespace/project
2016-10-28Refactor storage path extraction from full repo pathDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-10-27Make internal api work with full repo path instead of nameDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-09-28Handle LFS token creation and retrieval in the same method, and in the same ↔Patricio Cano
Redis connection. Reset expiry time of token, if token is retrieved again before it expires.
2016-09-19Revert "Revert all changes introduced by ↔Kamil Trzcinski
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043" This reverts commit 6d43c95b7011ec7ec4600e00bdc8df76bb39813c.
2016-09-19Revert all changes introduced by ↔Kamil Trzcinski
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/6043
2016-09-16Rename capabilities to authentication_abilitiesKamil Trzcinski
2016-09-15Merge remote-tracking branch 'origin/lfs-support-for-ssh' into per-build-tokenKamil Trzcinski
# Conflicts: # app/controllers/projects/git_http_client_controller.rb # app/helpers/lfs_helper.rb # lib/gitlab/auth.rb # spec/requests/lfs_http_spec.rb
2016-09-15Better authentication handling, syntax fixes and better actor handling for ↔Patricio Cano
LFS Tokens
2016-09-15Refactored handling of the `LfsToken` and added functionality to it to ↔Patricio Cano
simplify external code.
2016-09-15Refactored LFS auth logic when using SSH to use its own API endpoint ↔Patricio Cano
`/lfs_authenticate` and added tests.
2016-09-15Refactor LFS token logic to use a Redis key instead of a DB field, making it ↔Patricio Cano
a 1 use only token.