Story #7089
closedAs an admin I want to define namespaces for container repositories
100%
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.
Updated by dkliban@redhat.com over 4 years ago
Each repository and distribution should have a Foreign Key to a Namespace. A Namespace should just have a 'name'.
Updated by mdellweg over 4 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to mdellweg
Updated by mdellweg about 4 years 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?
Updated by ipanova@redhat.com about 4 years 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
Updated by pulpbot about 4 years ago
- Status changed from ASSIGNED to POST
Added by mdellweg about 4 years ago
Added by mdellweg about 4 years ago
Revision 5fdc1463 | View on GitHub
Add namespace to distributions
Updated by mdellweg about 4 years ago
- Status changed from POST to MODIFIED
- % Done changed from 0 to 100
Applied in changeset 5fdc1463861d8cd81dd3d654bd6fa30387d8dfe7.
Updated by ipanova@redhat.com almost 4 years ago
- Sprint/Milestone changed from 2.2.0 to 2.3.0
Updated by pulpbot almost 4 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Add namespace to distributions
fixes #7089 https://pulp.plan.io/issues/7089