Protected packages: Integrate delete protection
In GitLab 17.6, the package protection feature was made generally available. But, this realease did not include the deletion package protection, see https://gitlab.com/gitlab-org/gitlab/-/issues/472655 . The attribute `minimum_access_level_for_delete` that was introduced in the MR: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/179739 . This attribute is integrated in this MR in order to prevent the deletion of delete protected packages. At the moment, the attribute `minimum_access_level_for_delete` cannot be updated via UI, REST nor GraphQL API. This possibility will be added in a future iteration. Changelog: added
上级
8faa1d23
No related branches found
No related tags found
显示
- app/models/packages/protection/rule.rb 5 个添加, 0 个删除app/models/packages/protection/rule.rb
- app/services/packages/protection/check_delete_rule_existence_service.rb 44 个添加, 0 个删除...ackages/protection/check_delete_rule_existence_service.rb
- app/services/packages/protection/check_rule_existence_service.rb 1 个添加, 2 个删除...vices/packages/protection/check_rule_existence_service.rb
- config/feature_flags/gitlab_com_derisk/packages_protected_packages_delete.yml 9 个添加, 0 个删除.../gitlab_com_derisk/packages_protected_packages_delete.yml
- doc/api/packages.md 8 个添加, 3 个删除doc/api/packages.md
- lib/api/package_files.rb 11 个添加, 0 个删除lib/api/package_files.rb
- lib/api/project_packages.rb 11 个添加, 0 个删除lib/api/project_packages.rb
- spec/requests/api/package_files_spec.rb 108 个添加, 1 个删除spec/requests/api/package_files_spec.rb
- spec/requests/api/project_packages_spec.rb 88 个添加, 0 个删除spec/requests/api/project_packages_spec.rb
- spec/services/packages/protection/check_delete_rule_existence_service_spec.rb 83 个添加, 0 个删除...es/protection/check_delete_rule_existence_service_spec.rb
加载中
想要评论请 注册 或 登录