Commit Graph

69 Commits

Author SHA1 Message Date
GitLab Bot e32b42405d Add latest changes from gitlab-org/gitlab@master 2025-03-28 15:09:30 +00:00
GitLab Bot d044a84456 Add latest changes from gitlab-org/gitlab@master 2025-03-27 12:07:11 +00:00
GitLab Bot df697c947a Add latest changes from gitlab-org/gitlab@master 2024-10-29 18:30:01 +00:00
GitLab Bot fcbd6d16e7 Add latest changes from gitlab-org/gitlab@master 2024-08-05 21:11:31 +00:00
GitLab Bot 28bc811a3e Add latest changes from gitlab-org/gitlab@master 2024-05-07 06:10:18 +00:00
GitLab Bot 39b47b75cf Add latest changes from gitlab-org/gitlab@master 2024-04-24 18:10:01 +00:00
GitLab Bot 67b171dd34 Add latest changes from gitlab-org/gitlab@master 2023-12-04 03:07:01 +00:00
GitLab Bot 08775893a8 Add latest changes from gitlab-org/gitlab@master 2023-12-01 00:11:54 +00:00
GitLab Bot 49abdb108a Add latest changes from gitlab-org/gitlab@master 2023-06-21 09:09:11 +00:00
GitLab Bot 201a883bdf Add latest changes from gitlab-org/gitlab@master 2023-02-24 03:07:49 +00:00
GitLab Bot 5a73318262 Add latest changes from gitlab-org/gitlab@master 2022-12-06 18:08:22 +00:00
GitLab Bot 054378fd4a Add latest changes from gitlab-org/gitlab@master 2022-08-12 21:11:43 +00:00
GitLab Bot a16398e10f Add latest changes from gitlab-org/gitlab@master 2022-07-29 18:08:58 +00:00
GitLab Bot be8b477154 Add latest changes from gitlab-org/gitlab@master 2021-06-29 03:07:32 +00:00
GitLab Bot d4194db620 Add latest changes from gitlab-org/gitlab@master 2021-06-04 15:10:25 +00:00
GitLab Bot 9d5573c70a Add latest changes from gitlab-org/gitlab@master 2021-06-03 03:09:45 +00:00
GitLab Bot be4b3134a2 Add latest changes from gitlab-org/gitlab@master 2021-05-04 15:10:36 +00:00
GitLab Bot b5820a6bcd Add latest changes from gitlab-org/gitlab@master 2021-03-03 12:11:16 +00:00
GitLab Bot 654281e682 Add latest changes from gitlab-org/gitlab@master 2020-09-25 06:09:42 +00:00
GitLab Bot 8e35232810 Add latest changes from gitlab-org/gitlab@master 2020-09-02 15:10:54 +00:00
GitLab Bot 4fa04f789e Add latest changes from gitlab-org/gitlab@master 2020-09-02 12:10:35 +00:00
GitLab Bot bdca097916 Add latest changes from gitlab-org/gitlab@master 2020-08-11 03:11:00 +00:00
GitLab Bot fa7ac2663b Add latest changes from gitlab-org/gitlab@master 2020-06-24 06:09:01 +00:00
GitLab Bot c6acc1681a Add latest changes from gitlab-org/gitlab@master 2020-04-23 12:09:46 +00:00
GitLab Bot f7dae0cdcb Add latest changes from gitlab-org/gitlab@master 2020-02-25 12:08:48 +00:00
GitLab Bot d10a462fed Add latest changes from gitlab-org/gitlab@master 2019-12-16 12:07:43 +00:00
GitLab Bot 8cc5f27909 Add latest changes from gitlab-org/gitlab@master 2019-12-13 12:07:41 +00:00
GitLab Bot b86f474bf5 Add latest changes from gitlab-org/gitlab@master 2019-12-11 12:08:10 +00:00
GitLab Bot abfafe3c57 Add latest changes from gitlab-org/gitlab@master 2019-10-29 00:06:10 +00:00
GitLab Bot 5707f305f4 Add latest changes from gitlab-org/gitlab@master 2019-09-26 12:06:00 +00:00
GitLab Bot 80f61b4035 Add latest changes from gitlab-org/gitlab@master 2019-09-18 14:02:45 +00:00
Roger Meier 946ffc67b7 refactor: remove Sentry from application settings 2019-06-25 21:17:19 +02:00
Bob Van Landuyt 4c2f681490 Add correlation id to all sentry errors
Before this, we were only adding the correlation id to the "acceptable
exceptions" which we handle in code.

But we need to add it to the default raven context so the information
would be available for uncaught exceptions.
2019-05-13 13:27:41 -05:00
Andrew Newdigate 4f4de36cac Migrate correlation and tracing code to LabKit
This change is a fairly straightforward refactor to extract the tracing
and correlation-id code from the gitlab rails codebase into the new
LabKit-Ruby project.

The corresponding import into LabKit-Ruby was in
https://gitlab.com/gitlab-org/labkit-ruby/merge_requests/1

The code itself remains very similar for now.

Extracting it allows us to reuse it in other projects, such as
Gitaly-Ruby. This will give us the advantages of correlation-ids and
distributed tracing in that project too.
2019-04-18 09:57:16 +02:00
blackst0ne b44a2c801a Update specs to rails5 format
Updates specs to use new rails5 format.

The old format:
`get :show, { some: params }, { some: headers }`

The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
Kamil Trzciński 39c1731a53 Log and pass correlation-id between Unicorn, Sidekiq and Gitaly
The Correlation ID is taken or generated from received X-Request-ID.
Then it is being passed to all executed services (sidekiq workers
or gitaly calls).

The Correlation ID is logged in all structured logs as `correlation_id`.
2018-12-06 20:46:14 +01:00
Imre Farkas bd3a484032
Add config to disable impersonation
Adds gitlab.impersonation_enabled config option defaulting to true to
keep the current default behaviour.

Only the act of impersonation is modified, impersonation token
management is not affected.
2018-11-29 09:37:16 +01:00
William George 1b153d497b Make getting a user by the username case insensitive 2018-10-18 09:06:44 +00:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
Bob Van Landuyt 7a139c1602 Add username to terms message in git and API calls
This will make it clearer to users which account is being used to make
the API/git call. So they know which account needs to be used to
accept the terms.

Closes #46649
2018-05-24 18:19:48 +02:00
Bob Van Landuyt f7f13f9db0 Block access to API & git when terms are enforced
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-05-10 17:02:27 +02:00
Stan Hu eaf9088ba8 Save user ID and username in Grape API log (api_json.log)
This will enable admins to identify who actually made the API request.

Relates to #36960
2018-01-08 21:23:24 -08:00
Francisco Lopez 1436598e49 Moved Exceptions to Gitlab::Auth 2017-11-17 10:02:11 +01:00
Francisco Lopez aa84ef1e1a Moving exceptions to UserAuthFinders 2017-11-17 10:02:11 +01:00
Francisco Lopez 21153a4f47 Homogenising the type of the request handled by UserAuthFinder. Also tests fixed 2017-11-17 10:02:11 +01:00
Francisco Lopez d948e67913 First refactor 2017-11-17 10:00:08 +01:00
Douwe Maan b7c8f7d76d Update specs for sudo behavior 2017-11-02 11:39:03 +01:00
Douwe Maan 3f24f9ed18 Add sudo API scope 2017-11-02 11:39:03 +01:00
Douwe Maan 294fa6fcdc Remove authentication using user.private_token 2017-11-02 11:39:02 +01:00
Douwe Maan 025c6eeaa1 Move all API authentication code to APIGuard 2017-10-12 11:13:37 +02:00