Skip to content

GitLab Next

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 2
    • Merge requests 2
  • Requirements
    • Requirements
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Code review
    • Insights
    • Issue
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Merge requests
  • !10356

You need to sign in or sign up before continuing.
Merged
Created Mar 31, 2017 by James Edwards-Jones@jamedjo👋🏽Contributor6 of 10 tasks completed6/10 tasks

Protected Tags

  • Overview 130
  • Commits 58
  • Pipelines 24
  • Changes 83

What

Protected tags feature, similar to protected branches

Prevents tag deletion and force pushing for everyone, and uses access levels (Masters, Developers + Masters, or No one) to control who can create tags. Supports wildcard matching.

Why

To give project admins control over who can create/update/delete tags. Especially useful when tags are used to trigger deploys or official releases.

Questions

  • Should users be able to update protected tag ‘release notes’?
  • UX: Should tags index have link similar to Protected branches can be managed in project_settings_link.

Documentation preview

https://gitlab.com/gitlab-org/gitlab-ce/blob/18471-restrict-tag-pushes-protected-tags/doc/user/project/protected_tags.md

Screenshots

Settings

Protected Tags Settings

Over git

Protected Tags Over Git

Project tags

These have the delete button disabled and a Protected label

Tags Index Tags Show
Tags index with labels and disabled delete buttons Protected Tags Show Page

ProtectedTags#show

Tags Matching Protection Wildcard

Todos

  • Changelog entry added, if necessary
  • Tests added for this feature/bug
  • EE Merge request
  • Change restriction on force pushing to restriction on update in line with current git behaviour
  • Double check API access

Follow up tasks

  • Documentation created/updated
  • EE-only per user / per-group protections https://gitlab.com/gitlab-org/gitlab-ee/issues/2132
  • API support added
    • This could be done alongside updating the protected branches API which currently uses deprecated developers_can_push style permissions (https://gitlab.com/gitlab-org/gitlab-ce/issues/30102)

Relevant issues

Closes #18471 (closed)

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 18471-restrict-tag-pushes-protected-tags

Enable Gitpod?

To use Gitpod you must first enable the feature in the integrations section of your user preferences.

Cancel Enable Gitpod