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
2019-01-02Move push size check to EE moduleDouwe Maan
# Conflicts: # ee/lib/ee/gitlab/git_access.rb # lib/gitlab/git_access.rb
2019-01-02Don't run single change checks when changes are unknownDouwe Maan
When the `changes` passed to `GitAccess` are the literal string `_any`, which indicates that this is a pre-authorization check, we now check whether the user can push to any branch in the project in question, instead of running the per-change check with `oldrev` `_any`, `newrev` `nil`, and `ref` `nil`.
2019-01-02Skip change access check for deploy keysDouwe Maan
2019-01-02Move magic '_any' string to constantDouwe Maan
2018-10-25Iterating through commit list times outTiago Botelho
Validating each commit on ChangeAccess times out if it already took too long to complete. Improves the TimedLogger specs to not make use of a stubbed class anymore
2018-10-25Refactors TimedLogger to be more OOP compliantTiago Botelho
Adds a #full_message method so that external classes do not have access to the state of the logger. Adds a #append_message to always append to the array in-place
2018-10-25Adds tracing messages for slow git pushesTiago Botelho
Whenever a git push takes more than 50 seconds the user will receive a trace from each check performed along with their timings
2018-10-22Enable frozen string for lib/gitlab/*.rbgfyoung
2018-09-20Fix SpaceInsidePercentLiteralDelimiters copSemyon Pupkov
2018-09-08Remove Gitlab::GitAccess#authed_via_jwt?Ash McKenzie
Previously overridden in EE but no longer required.
2018-09-06Update /api/v4/allowedAsh McKenzie
- Use proper HTTP codes for /api/v4/allowed response - CustomAction support
2018-09-06GitAccess#check custom action supportAsh McKenzie
- if #check_custom_action!(cmd) returns something, return from #check() - now returns :Gitlab::GitAccessResult::Success.new instead of true
2018-08-14Allow auth via JWT (always false in CE)Ash McKenzie
2018-07-09Backport some changes from EERubén Dávila
2018-05-11Allow triggered builds git accessBob Van Landuyt
Allow builds that have been triggered by a user before terms were enforced access to git. That way the builds can complete as usual.
2018-05-10Block access to API & git when terms are enforcedBob Van Landuyt
When terms are enforced, but the user has not accepted the terms access to the API & git is rejected with a message directing the user to the web app to accept the terms.
2018-04-07Support Deploy Tokens properly without hacking abilitiesKamil Trzciński
2018-04-07Implement 'read_repo' for DeployTokensMayra Cabrera
This will allow to download a repo using the token from the DeployToken
2018-04-06Automatically cleanup stale worktrees and lock files upon a pushStan Hu
git 2.16 will fail badly if there are stale worktrees. Closes #44115
2018-04-05Allow HTTP(s) when git request is made by GitLab CITomasz Maczukin
2018-03-29Merge branch 'dm-deploy-keys-default-user' into 'master'Sean McGivern
Ensure hooks run when a deploy key without a user pushes Closes #44317 See merge request gitlab-org/gitlab-ce!18057
2018-03-28Fall back on ghost user when deploy key user is not setDouwe Maan
2018-03-28Remove permanent redirectsBob Van Landuyt
Removes permanent redirects, this means that redirects will only be possible as long as the old route isn't taken by a new project/group.
2018-02-25Respond 404 when repo does not existMichael Kozono
2018-02-22Fix repo existence check in GitAccessWikiJacob Vosmaer (GitLab)
2018-02-15Only check LFS integrity for first branch in pushJames Edwards-Jones
2018-02-06Check ability ability before proceeding with project specific checksTiago Botelho
2018-02-06Moves project creationg to git access check for git pushTiago Botelho
2018-02-06Adds documentation for the featureTiago Botelho
2018-02-06Abstracts ProjectMoved and ProjectCreated into a BaseProjectTiago Botelho
2018-02-06Move new project on push logic to a serviceTiago Botelho
2018-02-06Add specsTiago Botelho
2018-02-06Adds remote messsage when project is created in a push over SSH or HTTPTiago Botelho
2018-02-06Adds option to push over SSH to create a new projectTiago Botelho
2018-02-06Adds option to push over HTTP to create a new projectTiago Botelho
2017-12-08Allow git pull/push on project redirectsMayra Cabrera
2017-12-07refactor code to match EE changesJames Lopez
2017-10-24Move all rugged operation for ff_merge inside Gitlab::GitAlejandro Rodríguez
We also delete some unused code related to the aforementioned feature.
2017-10-06Create idea of read-only databaseToon Claes
In GitLab EE, a GitLab instance can be read-only (e.g. when it's a Geo secondary node). But in GitLab CE it also might be useful to have the "read-only" idea around. So port it back to GitLab CE. Also having the principle of read-only in GitLab CE would hopefully lead to less errors introduced, doing write operations when there aren't allowed for read-only calls. Closes gitlab-org/gitlab-ce#37534.
2017-09-28[Backported from EE] Readonly flag for ProjectsGabriel Mazetto
This is used in EE for the storage migration, and we want to use this in CE as well to be able to migrate projects to hashed_storage.
2017-08-30Address review commentsNick Thomas
2017-08-30Add settings for minimum key strength and allowed key typeNick Thomas
This is an amalgamation of: * Cory Hinshaw: Initial implementation !5552 * Rémy Coutable: Updates !9350 * Nick Thomas: Resolve conflicts and add ED25519 support !13712
2017-08-18Reduce duplication in GitAccess spec around error messagesRobert Speicher
- Adds a new `ProjectMovedError` class to encapsulate that error condition. Inherits from `NotFoundError` so existing rescues should continue to work. - Separating that condition out of `NotFoundError` allowed us to simplify the `raise_not_found` helper and avoid repeating the literal string. - Spec makes use of `ERROR_MESSAGES` hash to avoid repeating literal error message strings.
2017-06-17Add “Project moved” error to Git-over-SSHMichael Kozono
2017-06-05Extract and memoize `user_access`Michael Kozono
Because it is sometimes never used.
2017-06-05Remove GitAccessStatus (no longer needed)Michael Kozono
2017-06-05Refactor to remove a special caseMichael Kozono
2017-06-05Fix would-be regressionMichael Kozono
https://gitlab.com/gitlab-org/gitlab-ce/commit/57e3e942de1adef2c8621905370f07d7da7870c4 I changed it to a separate condition rather than depending on the order of the case-when statements to prevent this mistake again.
2017-06-05Clarify error messagesMichael Kozono
And refactor to self-document a little better.
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.