debian-mirror-gitlab/doc/administration/package_information/deprecation_policy.md

98 lines
4.8 KiB
Markdown
Raw Normal View History

2021-11-11 11:23:49 +05:30
---
stage: Enablement
group: Distribution
2021-12-11 22:18:48 +05:30
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
2021-11-11 11:23:49 +05:30
---
2021-11-18 22:05:49 +05:30
# Deprecation policy **(FREE SELF)**
2021-11-11 11:23:49 +05:30
The Omnibus GitLab packages come with number of different libraries and services which offers users plethora of configuration options.
As libraries and services get updated, their configuration options change
and become obsolete. To increase maintainability and preserve a working
setup, various configuration requires removal.
## Configuration deprecation
### Policy
2022-01-26 12:08:38 +05:30
The Omnibus GitLab package retains configuration for at least **one major**
version. We can't guarantee that deprecated configuration
is available in the next major release. See [example](#example) for more details.
2021-11-11 11:23:49 +05:30
### Notice
2022-01-26 12:08:38 +05:30
If the configuration becomes obsolete, we announce the deprecation:
2021-11-11 11:23:49 +05:30
- via release blog post on `https://about.gitlab.com/blog/`. The blog post item
2022-01-26 12:08:38 +05:30
contains the deprecation notice together with the target removal date.
2021-11-11 11:23:49 +05:30
- via installation/reconfigure output (if applicable).
2022-01-26 12:08:38 +05:30
- via official documentation on `https://docs.gitlab.com/`. The documentation update contains the corrected syntax (if applicable) or a date of configuration removal.
2021-11-11 11:23:49 +05:30
### Procedure
This section lists steps necessary for deprecating and removing configuration.
We can differentiate two different types of configuration:
2021-12-11 22:18:48 +05:30
- Sensitive: Configuration that can cause major service outage (like data integrity,
installation integrity, or preventing users from reaching the installation)
- Regular: Configuration that can make a feature unavailable but still makes the
installation useable (like a change in default project/group settings, or
miscommunication with other components)
2021-11-11 11:23:49 +05:30
We also need to differentiate deprecation and removal procedure.
#### Deprecating configuration
Deprecation procedure is similar for both `sensitive` and `regular` configuration. The only difference is in the removal target date.
Common steps:
1. Create an issue at the [Omnibus GitLab issue tracker](https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues) with details on deprecation type and other necessary information. Apply the label `deprecation`.
1. Decide on the removal target for the deprecated configuration
1. Formulate deprecation notice for each item as noted in [Notice section](#notice)
Removal target:
For regular configuration, removal target should always be the date of the **next major** release. If the date is not known, you can reference the next major version.
For sensitive configuration things are a bit more complicated.
We should aim to not remove sensitive configuration in the *next major* release if the next major release is 2 minor releases away (This number is chosen to match our security backport release policy).
See the table below for some examples:
2021-11-18 22:05:49 +05:30
| Configuration type | Deprecation announced | Final minor release | Remove |
2021-11-11 11:23:49 +05:30
| -------- | -------- | -------- | -------- |
| Sensitive | 10.1.0 | 10.9.0 | 11.0.0 |
| Sensitive | 10.7.0 | 10.9.0 | 12.0.0 |
| Regular | 10.1.0 | 10.9.0 | 11.0.0 |
| Regular | 10.8.0 | 10.9.0 | 11.0.0 |
#### Removing configuration
When deprecation is announced and removal target set, the milestone for the issue
should be changed to match the removal target version.
The final comment in the issue **has to have**:
1. Text snippet for the release blog post section
1. Documentation MR ( or snippet ) for introducing the change
1. Draft MR removing the configuration OR details on what needs to be done. See [Adding deprecation messages](https://docs.gitlab.com/omnibus/development/adding-deprecation-messages.html) for more on this
## Example
2022-01-26 12:08:38 +05:30
User configuration available in `/etc/gitlab/gitlab.rb` was introduced in GitLab version 10.0, `gitlab_rails['configuration'] = true`. In GitLab version 10.4.0, a new change was introduced that requires rename of this configuration option. New configuration option is `gitlab_rails['better_configuration'] = true`. Development team translates the old configuration into a new one
and triggers a deprecation procedure.
2021-11-11 11:23:49 +05:30
This means that these two configuration
2022-01-26 12:08:38 +05:30
options are valid through GitLab version 10. In other words,
2021-11-11 11:23:49 +05:30
if you still have `gitlab_rails['configuration'] = true` set in GitLab 10.8.0
2022-01-26 12:08:38 +05:30
the feature continues working the same way as if you had `gitlab_rails['better_configuration'] = true` set.
However, setting the old version of the configuration prints out a deprecation
2021-11-11 11:23:49 +05:30
notice at the end of installation/upgrade/reconfigure run.
2022-01-26 12:08:38 +05:30
In GitLab 11, `gitlab_rails['configuration'] = true` no longer works and you must manually change the configuration in `/etc/gitlab/gitlab.rb` to the new valid configuration.
2021-11-11 11:23:49 +05:30
**Note** If this configuration option is sensitive and can put integrity of the installation or
2022-01-26 12:08:38 +05:30
data in danger,the installation or upgrade is aborted.