Commit Graph

76 Commits

Author SHA1 Message Date
GitLab Bot aa54e0c45f Add latest changes from gitlab-org/gitlab@master 2024-11-26 00:26:35 +00:00
GitLab Bot 639a34f955 Add latest changes from gitlab-org/gitlab@master 2024-10-30 21:24:20 +00:00
GitLab Bot 06e48d0168 Add latest changes from gitlab-org/gitlab@master 2024-10-08 00:13:36 +00:00
GitLab Bot b8bf288b92 Add latest changes from gitlab-org/gitlab@master 2024-09-26 06:14:20 +00:00
GitLab Bot af2edb33e5 Add latest changes from gitlab-org/gitlab@master 2024-09-18 18:12:22 +00:00
GitLab Bot 43c1f6104a Add latest changes from gitlab-org/gitlab@master 2024-08-07 18:07:25 +00:00
GitLab Bot 5acb134776 Add latest changes from gitlab-org/gitlab@master 2024-06-25 18:15:14 +00:00
GitLab Bot bcc887fb11 Add latest changes from gitlab-org/gitlab@master 2024-04-24 21:11:40 +00:00
GitLab Bot c35b5c40f4 Add latest changes from gitlab-org/gitlab@master 2024-04-17 21:09:22 +00:00
GitLab Bot c96623caf3 Add latest changes from gitlab-org/gitlab@master 2024-04-16 18:14:04 +00:00
GitLab Bot 46e1fdb8bb Add latest changes from gitlab-org/gitlab@master 2023-12-13 18:16:51 +00:00
GitLab Bot 519f46346b Add latest changes from gitlab-org/gitlab@master 2023-11-09 18:13:03 +00:00
GitLab Bot a34d7fd9a7 Add latest changes from gitlab-org/gitlab@master 2023-11-08 15:07:19 +00:00
GitLab Bot 7badd9fd55 Add latest changes from gitlab-org/gitlab@master 2023-10-27 18:12:28 +00:00
GitLab Bot a0686b4653 Add latest changes from gitlab-org/gitlab@master 2023-10-23 21:12:16 +00:00
GitLab Bot 6081c12244 Add latest changes from gitlab-org/gitlab@master 2023-10-17 12:10:51 +00:00
GitLab Bot e22c3819ad Add latest changes from gitlab-org/gitlab@master 2023-03-06 18:08:12 +00:00
GitLab Bot 119c999cf1 Add latest changes from gitlab-org/gitlab@master 2022-09-15 00:14:10 +00:00
GitLab Bot 6619ed911f Add latest changes from gitlab-org/gitlab@master 2022-08-30 18:09:50 +00:00
GitLab Bot eda321fc0b Add latest changes from gitlab-org/gitlab@master 2022-08-17 21:09:50 +00:00
GitLab Bot 846dc476d8 Add latest changes from gitlab-org/gitlab@master 2022-04-19 15:08:32 +00:00
GitLab Bot 7a20b3758e Add latest changes from gitlab-org/gitlab@master 2021-07-27 12:10:54 +00:00
GitLab Bot a11e5bac52 Add latest changes from gitlab-org/gitlab@master 2020-12-16 09:10:26 +00:00
GitLab Bot 54f170b699 Add latest changes from gitlab-org/gitlab@master 2020-12-11 12:09:43 +00:00
GitLab Bot c2a6cc8675 Add latest changes from gitlab-org/gitlab@master 2020-12-03 18:10:10 +00:00
GitLab Bot 5460c19548 Add latest changes from gitlab-org/gitlab@master 2020-10-05 12:08:47 +00:00
GitLab Bot 31a340adab Add latest changes from gitlab-org/gitlab@master 2020-05-15 18:07:52 +00:00
GitLab Bot 6217d19741 Add latest changes from gitlab-org/gitlab@master 2020-05-11 15:09:37 +00:00
James Edwards-Jones e00b07b978 JwtController avoids activating session checks
This used without a session and issues a sessionless token, so we
should avoid causing access checks based on the session.
2019-08-22 16:44:09 +01:00
Martin Wortschack 9e753eeb9f Externalize several strings in
- app/services
- app/controllers
- app/presenters
2019-04-16 10:32:05 +00:00
Horatiu Eugen Vlad 0aa56d895d Added write_repository scope for personal access token 2019-04-15 13:05:55 +00:00
gfyoung 73322a0e55 Enable frozen string in app/controllers/**/*.rb
Enables frozen string for the following:

* app/controllers/*.rb
* app/controllers/admin/**/*.rb
* app/controllers/boards/**/*.rb
* app/controllers/ci/**/*.rb
* app/controllers/concerns/**/*.rb

Partially addresses #47424.
2018-09-18 21:22:45 -07:00
Kamil Trzciński 34ec29b956 Support multiple scopes when using authing container registry scopes 2018-08-01 13:03:16 +02:00
Lin Jen-Shin 4ee08b77bc Updates from `rubocop -a` 2018-07-09 21:13:08 +08:00
Mayra Cabrera 5bc58bac26 Handle limit for datetime attributes on MySQL
The TIMESTAMP data type is used for values that contain both date and
time parts. TIMESTAMP has a range of '1970-01-01 00:00:01' UTC to
'2038-01-19 03:14:07' UTC.

A Forever lib class was included to handle future dates for PostgreSQL
and MySQL, also changes were made to DeployToken to enforce Forever.date

Also removes extra conditional from JwtController
2018-04-06 22:28:44 -05:00
Mayra Cabrera 7deab31722 Removes logic from Jwt and handle different scenarios on Gitlab::Auth
- When using 'read_repo' password and project are sent, so we used both
  of them to fetch for the token
- When using 'read_registry' only the password is sent, so we only use
  that for fetching the token
2018-04-06 21:20:16 -05:00
Mayra Cabrera aaa6d80870 Implement read_registry for DeployTokens 2018-04-06 21:20:16 -05:00
Douwe Maan a1781a4941 Consistently use PersonalAccessToken instead of PersonalToken 2017-11-02 11:39:02 +01:00
Grzegorz Bizon 0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Robin Bobbitt cb5a5eb892 Instruct user to use a personal access token for Git over HTTP
If internal auth is disabled and LDAP is not configured on the instance,
present the user with a message to create a personal access token if his
Git over HTTP auth attempt fails.
2017-06-07 21:12:51 -04:00
Z.J. van de Weg 9fcc3e5982 Fix test failures 2017-06-06 16:19:15 +02:00
Z.J. van de Weg 0b81b5ace0 Create read_registry scope with JWT auth
This is the first commit doing mainly 3 things:
1. create a new scope and allow users to use it
2. Have the JWTController respond correctly on this
3. Updates documentation to suggest usage of PATs

There is one gotcha, there will be no support for impersonation tokens, as this
seems not needed.

Fixes gitlab-org/gitlab-ce#19219
2017-06-05 12:26:49 +02:00
Rémy Coutable d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Douwe Maan 1fe7501b49 Revert "Prefer leading style for Style/DotPosition"
This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
2017-02-23 09:33:05 -06:00
Douwe Maan eacae00516 Enable Style/MultilineHashBraceLayout 2017-02-23 09:32:22 -06:00
Douwe Maan 206953a430 Prefer leading style for Style/DotPosition 2017-02-23 09:32:22 -06:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Rydkin Maxim 170efaaba2 Enable Style/MultilineOperationIndentation in Rubocop, fixes #25741 2016-12-16 21:37:22 +03:00
Alejandro Rodriguez 32042ef56a
Merge branch 'unauthenticated-container-registry-access' into 'security'
Restore unauthenticated access to public container registries

Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/24284

See merge request !2025

Signed-off-by: Rémy Coutable <remy@rymai.me>
2016-11-09 12:28:29 +01:00
Kamil Trzcinski 137a801615 Be nice to Docker Clients talking to JWT/auth 2016-09-27 16:59:05 +02:00