Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

registry: add support for extended repository names (PROJQUAY-1535) #814

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

kleesc
Copy link
Member

@kleesc kleesc commented Jun 21, 2021

Allows forward slashes to be used in repository names according to
https://docs.docker.com/docker-hub/repos/.

NOTE: This change simply allows the use of "/" in repository
names needed for certain Openshift use cases. This does not implement
any new permission model for nested paths. i.e A repository with a
nested path is treated as a single repository under a single
namespace.

util/names.py Outdated

# Extended repostitory name regex: allows "/" in repo names
REPOSITORY_NAME_EXTENDED_REGEX = re.compile(
"^(?=.{0,255}$)[a-z0-9][\.a-z0-9_-]*(?:\/[a-z0-9][\.a-z0-9_-]*)*$"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kleesc - should this be a raw string (r"...") as well like the REPOSITORY_NAME_REGEX?

@kleesc kleesc force-pushed the extended-repo-names branch 2 times, most recently from c6de924 to dd3b2c1 Compare June 30, 2021 15:55
@kleesc kleesc force-pushed the extended-repo-names branch 25 times, most recently from a461e52 to 2d4dc7a Compare July 14, 2021 17:20
@kleesc kleesc force-pushed the extended-repo-names branch from 2d4dc7a to ddd8f71 Compare July 15, 2021 14:06
@kleesc
Copy link
Member Author

kleesc commented Jul 15, 2021

@jonathankingfc @thomasmckay Ping

@kleesc kleesc force-pushed the extended-repo-names branch 3 times, most recently from 18ae3d3 to 5fc803c Compare July 16, 2021 18:58
jonathankingfc
jonathankingfc previously approved these changes Jul 23, 2021
jonathankingfc
jonathankingfc previously approved these changes Jul 28, 2021
Allows forward slashes to be used in repository names according to
https://docs.docker.com/docker-hub/repos/.

NOTE: This change simply allows the use of "/" in repository
names needed for certain Openshift use cases. This does not implement
any new permission model for nested paths. i.e A repository with a
nested path is treated as a single repository under a _single_
namespace.
@kleesc kleesc requested a review from thomasmckay July 28, 2021 15:42
Copy link
Contributor

@thomasmckay thomasmckay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kleesc kleesc merged commit b0adc96 into quay:master Jul 28, 2021
@kleesc kleesc deleted the extended-repo-names branch July 28, 2021 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants