summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorPatrick Bajao <ebajao@gitlab.com>2019-04-17 23:12:40 -0800
committerPatrick Bajao <ebajao@gitlab.com>2019-04-17 23:12:40 +0800
commitb853bcd5877278b915204dcf0ac4d6ddd9a4e86e (patch)
tree3f5abe6a5aba151ab0e1eebdc55e8a421f84808a /README.md
parentf8df8976d039358c60522fcabb4cf56274f07f9f (diff)
downloadgitlab-shell-b853bcd5877278b915204dcf0ac4d6ddd9a4e86e.tar.gz
Add doc about Go migration feature flags
Diffstat (limited to 'README.md')
-rw-r--r--README.md37
1 files changed, 37 insertions, 0 deletions
diff --git a/README.md b/README.md
index 5bd0024..c22ca28 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,43 @@ Remove all keys from authorized_keys file:
Starting with GitLab 8.12, GitLab supports Git LFS authentication through ssh.
+## Migration to Go feature flags
+
+We are starting to migrate some features from Ruby to Go. To be able to do this
+incrementally, we hide the Go implementation behind a feature flag.
+
+To enable a feature, modify `migration` option in `config.yml` and ensure `enabled`
+is set to `true` and feature to be enabled is added to `features`.
+
+It should look something like this:
+
+```yaml
+migration:
+ enabled: true
+ features: ['discover']
+```
+
+Here are the following features that can be enabled:
+
+- `discover`
+- `2fa_recovery_codes`
+
+### Configuring using Omnibus
+
+If you're using Omnibus, these features can be enabled by adding something like this to `gitlab.rb`:
+
+```ruby
+gitlab_shell['migration'] = { enabled: true, features: ['discover', '2fa_recovery_codes'] }
+```
+
+This is equivalent to having this in `config.yml`:
+
+```yaml
+migration:
+ enabled: true
+ features: ['discover', '2fa_recovery_codes']
+```
+
## Releasing a new version
GitLab Shell is versioned by git tags, and the version used by the Rails