Skip to content
代码片段 群组 项目
未验证 提交 2c31176b 编辑于 作者: Evan Read's avatar Evan Read 提交者: GitLab
浏览文件

Merge branch 'docs-rake-tasks-secrets-reset' into 'master'

Fix rake tasks for resetting secrets

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/184180



Merged-by: default avatarEvan Read <eread@gitlab.com>
Co-authored-by: default avatarAlexandr Tanayno <atanayno@gitlab.com>
No related branches found
No related tags found
2 合并请求!3031Merge per-main-jh to main-jh by luzhiyuan,!3030Merge per-main-jh to main-jh
......@@ -311,10 +311,18 @@ To reset broken tokens:
1. Identify the broken tokens. For example `runners_token`.
1. To reset broken tokens, run `gitlab:doctor:reset_encrypted_tokens` with `VERBOSE=true MODEL_NAMES=Model1,Model2 TOKEN_NAMES=broken_token1,broken_token2`. For example:
```shell
VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token bundle exec rake gitlab:doctor:reset_encrypted_tokens
```
- Linux package installations:
```shell
VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token gitlab-rake gitlab:doctor:reset_encrypted_tokens
```
- Self-compiled installations:
```shell
bundle exec rake gitlab:doctor:reset_encrypted_tokens RAILS_ENV=production VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token
```
You will see every action this task would try to perform:
```plain
......@@ -338,9 +346,17 @@ To reset broken tokens:
1. If you are confident that this operation resets the correct tokens, disable dry-run mode and run the operation again:
```shell
DRY_RUN=false VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token bundle exec rake gitlab:doctor:reset_encrypted_tokens
```
- Linux package installations:
```shell
DRY_RUN=false VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token gitlab-rake gitlab:doctor:reset_encrypted_tokens
```
- Self-compiled installations:
```shell
bundle exec rake gitlab:doctor:reset_encrypted_tokens RAILS_ENV=production DRY_RUN=false VERBOSE=true MODEL_NAMES=Project,Group TOKEN_NAMES=runners_token
```
## Troubleshooting
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册