Protected containers: Provide CRUD operations ContainerRegistryProtectionRules in GraphQL API
Context
- As part of the epic &9825 , project maintainer or owner need to have a way to define the
ContainerRegistry::Protection::Rule
- There are different ways to realize this => however, we decided to start by offering a GraphQL API interface
- This GraphQL interface is minimal should allow basic manipulation of the defined container protection rules
Proposal
- Authorization:
ContainerRegistry::Protection::Rule
can only changed by project maintainer or higher => consider implementation with declarative framework
GraphQL Operations | MR |
---|---|
Mutation: Create new container registry protection rule | Protected containers: Graphql mutation for crea... (!133527 - merged) |
Mutation: Delete existing container registry protection rule | Protected containers: Add graphql mutation to d... (!137176 - merged) |
Query: All container registry protection rules (incl. pagination) | Protected packages: GraphQL api for querying pa... (!127022 - merged) |
Mutation: Update existing container registry protection rule | Protected containers: Graphql mutation update c... (!137175 - merged) |
Checklist
-
Create MRs for each endpoint
Edited by Gerardo Navarro