Skip to content

Protected containers: Add basic model and migrations

What does this MR do and why?

🛠 with at Siemens

Screenshots or screen recordings

No visuals to show. This MR contains mostly backend -related code, see the next section

How to set up and validate locally

  1. rails db:migrate
  2. Open the rails console (rails c) and start playing around with the new model
ContainerRegistry::Protection::Rule.create!(
  project: Project.find_by_full_path("flightjs/Flight"),
  container_path_pattern: "flightjs/flight/*",
  push_protected_up_to_access_level: Gitlab::Access::OWNER
)

Todos

  • Rename factory for container registry protecftion rule

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #424367 (closed)

Edited by Gerardo Navarro

Merge request reports