Project

Profile

Help

Story #7089

As an admin I want to define namespaces for container repositories

Added by mdellweg 9 months ago. Updated 4 months ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Sprint:
Sprint 85
Quarter:

Description

To be able to assign permissions (RBAC) for the creation of repositories in certain namespaces, pulp_container needs a Namespace model that can be created via the pulp-api. Distributions must be assigned to such a Namespace. The "global" Namespace "library" should always be available.

Associated revisions

Revision 5fdc1463 View on GitHub
Added by mdellweg 5 months ago

Add namespace to distributions

fixes #7089 https://pulp.plan.io/issues/7089

Revision 5fdc1463 View on GitHub
Added by mdellweg 5 months ago

Add namespace to distributions

fixes #7089 https://pulp.plan.io/issues/7089

History

#1 Updated by ipanova@redhat.com 9 months ago

  • Sprint/Milestone set to 2.2.0

#2 Updated by dkliban@redhat.com 9 months ago

Each repository and distribution should have a Foreign Key to a Namespace. A Namespace should just have a 'name'.

#3 Updated by mdellweg 8 months ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to mdellweg

#4 Updated by mdellweg 8 months ago

From https://docs.docker.com/registry/spec/api/#overview :

Classically, repository names have always been two path components where each path component is less than 30 characters. The V2 registry API does not enforce this. The rules for a repository name are as follows:

A repository name is broken up into path components. A component of a repository name must be at least one lowercase, alpha-numeric characters, optionally separated by periods, dashes or underscores. More strictly, it must match the regular expression [a-z0-9]+(?:[._-][a-z0-9]+)*. If a repository name has two or more path components, they must be separated by a forward slash (“/”). The total length of a repository name, including slashes, must be less than 256 characters.

These name requirements only apply to the registry API and should accept a superset of what is supported by other docker ecosystem components.

It looks like we try to support having arbitrary path's for container repositories. I am quite unsure, how this will work with a namespace concept. Can we assume a two component model for this? Should we have nested namespaces?

#5 Updated by ipanova@redhat.com 8 months ago

I heard/read about the 2+ path components however I have never witnessed that so far. We do have though a user story that would require 2+ path components https://pulp.plan.io/issues/5545 I also digged out some old pulp2 RFE https://pulp.plan.io/issues/3136 https://pulp.plan.io/issues/3128 related to having more path components

#6 Updated by ipanova@redhat.com 7 months ago

  • Sprint set to Sprint 80

#7 Updated by rchan 7 months ago

  • Sprint changed from Sprint 80 to Sprint 81

#8 Updated by rchan 7 months ago

  • Sprint changed from Sprint 81 to Sprint 82

#9 Updated by pulpbot 7 months ago

  • Status changed from ASSIGNED to POST

#10 Updated by rchan 6 months ago

  • Sprint changed from Sprint 82 to Sprint 83

#11 Updated by rchan 6 months ago

  • Sprint changed from Sprint 83 to Sprint 84

#12 Updated by rchan 6 months ago

  • Sprint changed from Sprint 84 to Sprint 85

#13 Updated by mdellweg 5 months ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#14 Updated by ipanova@redhat.com 4 months ago

  • Sprint/Milestone changed from 2.2.0 to 2.3.0

#15 Updated by pulpbot 4 months ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

Please register to edit this issue

Also available in: Atom PDF