Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab GitLab
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 43,065
    • Issues 43,065
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 1,358
    • Merge requests 1,358
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #31133
Closed
Open
Created Aug 21, 2019 by Darva Satcher@dsatcherMaintainer

Make GitLab more robust through Snippet Size limits

Goal

Make GitLab search more stable and robust against unintentional or intentional abuses and scenarios where "noisy neighbors" (users, projects, groups) are able to disrupt the snippet functionality by just doing one action.

Background

The Create Teams have been asked via Epic &1737, to proactively find application limits within the Editor code. The Editor Team identified limits in create-stage#40

Solution

Application Limit Limit size of snippets to X MBs, or limit indexed size to first X MBs
What is the risk of not adopting this new limit? Causes indexing failures (https://gitlab.com/gitlab-org/gitlab-ee/issues/12111). Can be abused for e.g. hosting files (but this applies to all text fields like e.g. issue descriptions, so more of a general concern)
Estimated Weight 1
Configurable/ Not Configurable Is Configurable
Are there existing limits? Yes
Include this in the implementation Add length validation, figure out what to do with existing snippets that exceed the limit, possibly add a setting for this
Existing Limits unlimited from the app side / limited by DB field to ~1GB
Existing Limits Documented Properly? No
Edited Aug 23, 2019 by Darva Satcher
Assignee
Assign to
Time tracking