Skip to content

doc/spec: namespaces and discovery - #303

Closed
dmcgowan wants to merge 1 commit into
distribution:masterfrom
dmcgowan:namespace-proposal-revised
Closed

dmcgowan wants to merge 1 commit into
distribution:masterfrom
dmcgowan:namespace-proposal-revised

Conversation

@dmcgowan

Copy link
Copy Markdown
Collaborator

Includes description of namespace and discovery process.

  • Add aliases
  • Finalize HTTP Discovery specification
  • Rename Namespace to Remotes (or better name?)
  • Add UX design (modeled after git remotes?) @stevvooe
  • Add examples to illustrate terminology

Comment thread doc/spec/namespace.md Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

"certificate" is not specific. Do you mean an X.509 v3 certificate?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

x509 is the only thing being discussed right now. I am intentionally not specifying right here because the trust proposal is still being drafted with the specifics. I will likely track those changes then point there later.

@dmcgowan
dmcgowan force-pushed the namespace-proposal-revised branch from e0abb2d to 069fef1 Compare March 30, 2015 17:26
@dmcgowan dmcgowan mentioned this pull request Apr 27, 2015
6 of 11 tasks
Comment thread doc/spec/namespace.md Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why ~ instead of `?}

@mattmoor

Copy link
Copy Markdown
Contributor

Per moby/moby#13089

It would be fantastic if the grammar could be partitioned in such a fashion that discovery also captured naming restrictions for a registry. The way the v2 naming restrictions stand today, we (gcr.io) have a large number of customer scenarios that will be broken by its lack of backward compatibility.

When talking about naming, we consider backwards-compatibility a minimum bar, but would love to see some flexibility opened up here to enable registry providers some leeway. Federating the restrictions, possibly by using a discovery service like this, it one way of achieving that.

@dmcgowan

Copy link
Copy Markdown
Collaborator Author

@mattmoor when you mention lack of backward compatibility are you referring to the lack of support for <path-part> beginning with a _? The grammar is intended to be a superset while trying to avoid "bad" names such images with path parts of consecutive ._-.

@mattmoor

Copy link
Copy Markdown
Contributor

I outlined a few discrepancies in the v2 grammar.

The biggest known issue is the "_" prefix, but it is very possible that the new length restrictions will affect our customers as well.

@dmcgowan

Copy link
Copy Markdown
Collaborator Author

This proposal is attempting to define a clear and wide standard for images names. We intended it to be a superset but the v1 image name specification is not clearly defined, making it hard to make a clean specification that captures all the edge cases with the names. Prefixing images with "_" is something we put in the category of a dirty edge cases (along with consecutive non-alphanumeric characters).

The intent of this proposal is not to suggest that different registries can/should support a different grammar for names, but rather the grammar is valid in any registry and image names can be uniform. If this is a problem I encourage you to join the distribution IRC channel or working group so we can discuss further the use case.

Comment thread doc/spec/namespace.md Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

namespace

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.