Skip to content

Disable creation of public snippets for a namespace

Currently, when you create a new snippet, users can decide wether it should be public or private. It is possible to change the default visibility of snippets but you can't completely disable the creation of public snippets. However, public snippets pose a potential security risk for organizations wanting to prevent sharing of internal code.

Current Functionality:

  • Administrators can change the default visibility of snippets.
  • Users can access global snippets page
  • Users can create personal snippets (public or private)
  • Users can create project snippets (public or only project members)

Requested Features:

Admins should be able to completely disable the creation of public snippets for a project, group or namespace. Users should only be able to create private personal snippets or project snippets that are only accessible for project members.

This enhancement would help organizations better control their code sharing and improve their security posture.

/cc @vyaklushin , @phikai


Description was generated using AI