Commit 1f87cfed authored by Stan Hu's avatar Stan Hu
Browse files

Add a HOWTO on how to block projects and users

parent 4e6da390
...@@ -67,6 +67,7 @@ The aim of this project is to have a quick guide of what to do when an emergency ...@@ -67,6 +67,7 @@ The aim of this project is to have a quick guide of what to do when an emergency
* [GitLab registry is down](troubleshooting/ * [GitLab registry is down](troubleshooting/
* [Sidekiq stats no longer showing](troubleshooting/ * [Sidekiq stats no longer showing](troubleshooting/
* [Gemnasium is down](troubleshooting/ * [Gemnasium is down](troubleshooting/
* [Blocking a project causing high load](howto/
### Supporting Services ### Supporting Services
* [Redis replication has stopped](troubleshooting/ * [Redis replication has stopped](troubleshooting/
# Blocking a project causing high load
## Steps
1. Start a rails console issuing the command `sudo gitlab-rails console`.
1. Set the project in question to private. For example, `my-namespace/my-group/my-project` would be:
project = Project.find_by_full_path('my-namespace/my-group/my-project')
project.visibility_level = Gitlab::VisibilityLevel::PRIVATE
1. If that fails for some reason, navigate to the project via an admin
account and disable that. For example, the URL for the example above would be:
Under `Permissions`, click `Expand`, and set `Project visibility` from `Public` to `Private`.
1. For good measure, you may also want to toggle the `Repository` button from on to off.
1. To avoid having these settings changed by the project owner, you may also
want to block the owner of the project. For example:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment