Skip to content

Commit 9bc993a

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent c3b89d0 commit 9bc993a

File tree

16 files changed

+116
-15
lines changed

16 files changed

+116
-15
lines changed

app/models/concerns/spammable.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def recaptcha_error!
8484
end
8585

8686
def unrecoverable_spam_error!
87-
self.errors.add(:base, "Your #{spammable_entity_type} has been recognized as spam and has been discarded.")
87+
self.errors.add(:base, _("Your %{spammable_entity_type} has been recognized as spam and has been discarded.") \
88+
% { spammable_entity_type: spammable_entity_type })
8889
end
8990

9091
def spammable_entity_type

app/services/ci/job_artifacts/destroy_all_expired_service.rb

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ def initialize
2424
# preventing multiple `ExpireBuildArtifactsWorker` CRON jobs run concurrently,
2525
# which is scheduled every 7 minutes.
2626
def execute
27-
return 0 unless ::Feature.enabled?(:ci_destroy_all_expired_service, default_enabled: :yaml)
28-
2927
in_lock(EXCLUSIVE_LOCK_KEY, ttl: LOCK_TIMEOUT, retries: 1) do
3028
if ::Feature.enabled?(:ci_destroy_unlocked_job_artifacts)
3129
destroy_unlocked_job_artifacts

config/feature_flags/development/ci_destroy_all_expired_service.yml

-8
This file was deleted.

config/feature_flags/development/deployment_approval_rules.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/354726
55
milestone: '14.10'
66
type: development
77
group: group::release
8-
default_enabled: false
8+
default_enabled: true

doc/administration/pages/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,10 @@ control over how the Pages daemon runs and serves content in your environment.
293293
| `rate_limit_source_ip_burst` | Rate limit per source IP maximum burst allowed per second. |
294294
| `rate_limit_domain` | Rate limit per domain in number of requests per second. Set to `0` to disable this feature. |
295295
| `rate_limit_domain_burst` | Rate limit per domain maximum burst allowed per second. |
296+
| `server_read_timeout` | Maximum duration to read the request headers and body. For no timeout, set to `0` or a negative value. Default: `5s` |
297+
| `server_read_header_timeout` | Maximum duration to read the request headers. For no timeout, set to `0` or a negative value. Default: `1s` |
298+
| `server_write_timeout` | Maximum duration to write all files in the response. Larger files require more time. For no timeout, set to `0` or a negative value. Default: `5m` |
299+
| `server_keep_alive` | The `Keep-Alive` period for network connections accepted by this listener. If `0`, `Keep-Alive` is enabled if supported by the protocol and operating system. If negative, `Keep-Alive` is disabled. Default: `15s` |
296300

297301
## Advanced configuration
298302

doc/administration/reference_architectures/10k_users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1790,6 +1790,7 @@ To configure the Sidekiq nodes, on each one:
17901790
# Object Storage
17911791
## This is an example for configuring Object Storage on GCP
17921792
## Replace this config with your chosen Object Storage provider as desired
1793+
gitlab_rails['object_store']['enabled'] = true
17931794
gitlab_rails['object_store']['connection'] = {
17941795
'provider' => 'Google',
17951796
'google_project' => '<gcp-project-name>',
@@ -1936,6 +1937,7 @@ On each node perform the following:
19361937

19371938
# This is an example for configuring Object Storage on GCP
19381939
# Replace this config with your chosen Object Storage provider as desired
1940+
gitlab_rails['object_store']['enabled'] = true
19391941
gitlab_rails['object_store']['connection'] = {
19401942
'provider' => 'Google',
19411943
'google_project' => '<gcp-project-name>',

doc/administration/reference_architectures/25k_users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1794,6 +1794,7 @@ To configure the Sidekiq nodes, on each one:
17941794
# Object Storage
17951795
# This is an example for configuring Object Storage on GCP
17961796
# Replace this config with your chosen Object Storage provider as desired
1797+
gitlab_rails['object_store']['enabled'] = true
17971798
gitlab_rails['object_store']['connection'] = {
17981799
'provider' => 'Google',
17991800
'google_project' => '<gcp-project-name>',
@@ -1942,6 +1943,7 @@ On each node perform the following:
19421943

19431944
# This is an example for configuring Object Storage on GCP
19441945
# Replace this config with your chosen Object Storage provider as desired
1946+
gitlab_rails['object_store']['enabled'] = true
19451947
gitlab_rails['object_store']['connection'] = {
19461948
'provider' => 'Google',
19471949
'google_project' => '<gcp-project-name>',

doc/administration/reference_architectures/2k_users.md

+1
Original file line numberDiff line numberDiff line change
@@ -667,6 +667,7 @@ On each node perform the following:
667667
# Object Storage
668668
# This is an example for configuring Object Storage on GCP
669669
# Replace this config with your chosen Object Storage provider as desired
670+
gitlab_rails['object_store']['enabled'] = true
670671
gitlab_rails['object_store']['connection'] = {
671672
'provider' => 'Google',
672673
'google_project' => '<gcp-project-name>',

doc/administration/reference_architectures/3k_users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1718,6 +1718,7 @@ To configure the Sidekiq nodes, one each one:
17181718
# Object Storage
17191719
## This is an example for configuring Object Storage on GCP
17201720
## Replace this config with your chosen Object Storage provider as desired
1721+
gitlab_rails['object_store']['enabled'] = true
17211722
gitlab_rails['object_store']['connection'] = {
17221723
'provider' => 'Google',
17231724
'google_project' => '<gcp-project-name>',
@@ -1904,6 +1905,7 @@ On each node perform the following:
19041905
# Object storage
19051906
# This is an example for configuring Object Storage on GCP
19061907
# Replace this config with your chosen Object Storage provider as desired
1908+
gitlab_rails['object_store']['enabled'] = true
19071909
gitlab_rails['object_store']['connection'] = {
19081910
'provider' => 'Google',
19091911
'google_project' => '<gcp-project-name>',

doc/administration/reference_architectures/50k_users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1803,6 +1803,7 @@ To configure the Sidekiq nodes, on each one:
18031803
# Object storage
18041804
## This is an example for configuring Object Storage on GCP
18051805
## Replace this config with your chosen Object Storage provider as desired
1806+
gitlab_rails['object_store']['enabled'] = true
18061807
gitlab_rails['object_store']['connection'] = {
18071808
'provider' => 'Google',
18081809
'google_project' => '<gcp-project-name>',
@@ -1958,6 +1959,7 @@ On each node perform the following:
19581959

19591960
# This is an example for configuring Object Storage on GCP
19601961
# Replace this config with your chosen Object Storage provider as desired
1962+
gitlab_rails['object_store']['enabled'] = true
19611963
gitlab_rails['object_store']['connection'] = {
19621964
'provider' => 'Google',
19631965
'google_project' => '<gcp-project-name>',

doc/administration/reference_architectures/5k_users.md

+2
Original file line numberDiff line numberDiff line change
@@ -1715,6 +1715,7 @@ To configure the Sidekiq nodes, one each one:
17151715
# Object Storage
17161716
## This is an example for configuring Object Storage on GCP
17171717
## Replace this config with your chosen Object Storage provider as desired
1718+
gitlab_rails['object_store']['enabled'] = true
17181719
gitlab_rails['object_store']['connection'] = {
17191720
'provider' => 'Google',
17201721
'google_project' => '<gcp-project-name>',
@@ -1889,6 +1890,7 @@ On each node perform the following:
18891890
18901891
# This is an example for configuring Object Storage on GCP
18911892
# Replace this config with your chosen Object Storage provider as desired
1893+
gitlab_rails['object_store']['enabled'] = true
18921894
gitlab_rails['object_store']['connection'] = {
18931895
'provider' => 'Google',
18941896
'google_project' => '<gcp-project-name>',

doc/install/requirements.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ the minimum requirements needed to install and use GitLab.
1313

1414
### Supported Linux distributions
1515

16-
- Ubuntu (16.04/18.04/20.04)
17-
- Debian (9/10)
16+
- Ubuntu (18.04/20.04)
17+
- Debian (9/10/11)
1818
- AlmaLinux (8)
1919
- CentOS (7)
20-
- openSUSE Leap (15.2)
20+
- openSUSE Leap (15.3)
2121
- SUSE Linux Enterprise Server (12 SP2/12 SP5)
2222
- Red Hat Enterprise Linux (use the AlmaLinux or CentOS instructions)
2323
- Scientific Linux (use the CentOS instructions)

doc/integration/alicloud.md

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
stage: Ecosystem
3+
group: Integrations
4+
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
5+
---
6+
7+
# Use AliCloud as an OmniAuth authentication provider **(FREE)**
8+
9+
You can enable the AliCloud OAuth 2.0 OmniAuth provider and sign in to
10+
GitLab using your AliCloud account.
11+
12+
## Create an AliCloud application
13+
14+
Sign in to the AliCloud platform and create an application on it. AliCloud generates a client ID and secret key for you to use.
15+
16+
1. Sign in to the [AliCloud platform](https://account.aliyun.com/login/login.htm).
17+
18+
1. Go to the [OAuth application management page](https://ram.console.aliyun.com/applications).
19+
20+
1. Select **Create Application**.
21+
22+
1. Fill in the application details:
23+
24+
- **Application Name**: This can be anything.
25+
- **Display Name**: This can be anything.
26+
- **Callback URL**: This URL should be formatted as `'GitLab instance URL' + '/users/auth/alicloud/callback'`. For example, `http://test.gitlab.com/users/auth/alicloud/callback`.
27+
28+
Select **Save**.
29+
30+
1. Add OAuth scopes in the application details page:
31+
32+
1. Under the **Application Name** column, select the name of the application you created. The application's details page opens.
33+
1. Under the **Application OAuth Scopes** tab, select **Add OAuth Scopes**.
34+
1. Select the **aliuid** and **profile** checkboxes.
35+
1. Select **OK**.
36+
37+
![AliCloud OAuth scope](img/alicloud_scope.png)
38+
39+
1. Create a secret in the application details page:
40+
41+
1. Under the **App Secrets** tab, select **Create Secret**.
42+
1. Copy the SecretValue generated.
43+
44+
## Enable AliCloud OAuth in GitLab
45+
46+
1. On your GitLab server, open the configuration file.
47+
48+
- **For Omnibus installations**
49+
50+
```shell
51+
sudo editor /etc/gitlab/gitlab.rb
52+
```
53+
54+
- **For installations from source**
55+
56+
```shell
57+
cd /home/git/gitlab
58+
59+
sudo -u git -H editor config/gitlab.yml
60+
```
61+
62+
1. [Configure the initial settings](omniauth.md#configure-initial-settings).
63+
64+
1. Add the provider configuration. Replace `YOUR_APP_ID` with the ID on the application details page
65+
and `YOUR_APP_SECRET` with the **SecretValue** you got when you registered the AliCloud application.
66+
67+
- **For Omnibus installations**
68+
69+
```ruby
70+
gitlab_rails['omniauth_providers'] = [
71+
{
72+
name: "alicloud",
73+
app_id: "YOUR_APP_ID",
74+
app_secret: "YOUR_APP_SECRET"
75+
}
76+
]
77+
```
78+
79+
- **For installations from source**
80+
81+
```yaml
82+
- { name: 'alicloud',
83+
app_id: 'YOUR_APP_ID',
84+
app_secret: 'YOUR_APP_SECRET' }
85+
```
86+
87+
1. Save the configuration file.
88+
89+
1. [Reconfigure GitLab](../administration/restart_gitlab.md#omnibus-gitlab-reconfigure)
90+
if you installed using Omnibus, or [restart GitLab](../administration/restart_gitlab.md#installations-from-source)
91+
if you installed from source.
105 KB
Loading

doc/integration/omniauth.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ GitLab supports the following OmniAuth providers.
2121

2222
| Provider documentation | OmniAuth provider name |
2323
|---------------------------------------------------------------------|----------------------------|
24+
| [AliCloud](alicloud.md) | `alicloud` |
2425
| [Atlassian Crowd](../administration/auth/crowd.md) | `crowd` |
2526
| [Atlassian](../administration/auth/atlassian.md) | `atlassian_oauth2` |
2627
| [Auth0](auth0.md) | `auth0` |

locale/gitlab.pot

+3
Original file line numberDiff line numberDiff line change
@@ -43513,6 +43513,9 @@ msgstr ""
4351343513
msgid "Your %{plan} subscription expires on %{expiry_date}"
4351443514
msgstr ""
4351543515

43516+
msgid "Your %{spammable_entity_type} has been recognized as spam and has been discarded."
43517+
msgstr ""
43518+
4351643519
msgid "Your %{spammable_entity_type} has been recognized as spam. Please, change the content or solve the reCAPTCHA to proceed."
4351743520
msgstr ""
4351843521

0 commit comments

Comments
 (0)