Allow enabling and disabling admin features

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Hello!

It could be nice to have something to disabled completly admin part on a node.

Config example

api["admin_features_enable"] = false
# or
web["admin_features_enable"] = false

or via rails

gitlab_rails["api_features_enable"] = false
gitlab_rails["web_features_enable"] = false

Disabling api admin features will disable some standalone resources https://docs.gitlab.com/ee/api/api_resources.html#standalone-resources (for example only allow register runner and not remove a runner)

Disabling web admin features will disable /admin

If I need an admin node, I could setup internal node not exposed to the world for admin tasks.

Edited by 🤖 GitLab Bot 🤖