Gitlab 清空token

登录Gitlab postgresql

su - gitlab-psql     //登陆用户
psql -h /var/opt/gitlab/postgresql -d gitlabhq_production   //连接到gitlabhq_production库
输这五个清空
#Clear project tokens
gitlabhq_production=>UPDATE projects SET runners_token = null, runners_token_encrypted = null;

#Clear group tokens
gitlabhq_production=>UPDATE namespaces SET runners_token = null, runners_token_encrypted = null;

#Clear instance tokens
gitlabhq_production=>UPDATE application_settings SET runners_registration_token_encrypted = null;

#Clear key used for JWT authentication
#This may break the $CI_JWT_TOKEN job variable:
#https://gitlab.com/gitlab-org/gitlab/-/issues/325965
gitlabhq_production=>UPDATE application_settings SET encrypted_ci_jwt_signing_key = null;

#Clear runner tokens
评论