summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/validators/namespace_validator.rb16
-rw-r--r--changelogs/unreleased/30272-bvl-reject-more-namespaces.yml4
2 files changed, 20 insertions, 0 deletions
diff --git a/app/validators/namespace_validator.rb b/app/validators/namespace_validator.rb
index 77ca033e97f..9601013f2d2 100644
--- a/app/validators/namespace_validator.rb
+++ b/app/validators/namespace_validator.rb
@@ -33,6 +33,22 @@ class NamespaceValidator < ActiveModel::EachValidator
u
unsubscribes
users
+ api
+ autocomplete
+ search
+ member
+ explore
+ uploads
+ import
+ notification_settings
+ abuse_reports
+ invites
+ help
+ koding
+ health_check
+ jwt
+ oauth
+ sent_notifications
].freeze
WILDCARD_ROUTES = %w[tree commits wikis new edit create update logs_tree
diff --git a/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml b/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml
new file mode 100644
index 00000000000..56bce084546
--- /dev/null
+++ b/changelogs/unreleased/30272-bvl-reject-more-namespaces.yml
@@ -0,0 +1,4 @@
+---
+title: Improve validation of namespace & project paths
+merge_request: 10413
+author: