Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@gitlab.com>2017-04-05 14:44:23 +0300
committerBob Van Landuyt <bob@gitlab.com>2017-05-01 12:14:23 +0300
commit536f2bdfd17ac3bab38851de2973dd1c89dccc3f (patch)
tree92767ac968ebaabb4caadeb26417530f715d2690 /app/validators
parentf76a5abb3462a4bfeacca254c0cbda4f313d4ecd (diff)
Add forbidden paths to the namespace validator
Diffstat (limited to 'app/validators')
-rw-r--r--app/validators/namespace_validator.rb14
1 files changed, 13 insertions, 1 deletions
diff --git a/app/validators/namespace_validator.rb b/app/validators/namespace_validator.rb
index 9601013f2d2..2aef4204e31 100644
--- a/app/validators/namespace_validator.rb
+++ b/app/validators/namespace_validator.rb
@@ -53,7 +53,19 @@ class NamespaceValidator < ActiveModel::EachValidator
WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree
preview blob blame raw files create_dir find_file
- artifacts graphs refs badges].freeze
+ artifacts graphs refs badges info git-upload-pack
+ git-receive-pack gitlab-lfs autocomplete_sources
+ templates avatar commit pages compare network snippets
+ services mattermost deploy_keys forks import merge_requests
+ branches merged_branches tags protected_branches variables
+ triggers pipelines environments cycle_analytics builds
+ hooks container_registry milestones labels issues
+ project_members group_links notes noteable boards todos
+ uploads runners runner_projects settings repository
+ transfer remove_fork archive unarchive housekeeping
+ toggle_star preview_markdown export remove_export
+ generate_new_export download_export activity
+ new_issue_address registry].freeze
STRICT_RESERVED = (RESERVED + WILDCARD_ROUTES).freeze