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

Add OCI namespace mappings to registry metadata (well-known URL) #35

Open
lann opened this issue Jun 12, 2024 · 7 comments
Open

Add OCI namespace mappings to registry metadata (well-known URL) #35

lann opened this issue Jun 12, 2024 · 7 comments

Comments

@lann
Copy link
Collaborator

lann commented Jun 12, 2024

Warg has a mechanism for registries to advertise their own preferred namespace->registry mappings for federation purposes. We'd like to introduce the same for OCI-based package registries.

The simplest way I see to do this immediately would be to add this mapping to the /.well-known/wasm-pkg/registry.json's "oci" config section. A future possibility - if desired - could be to publish this mapping as an OCI artifact under some reference that doesn't collide with packages.

@thomastaylor312
Copy link
Collaborator

Like you suggested, the easiest short term thing might be to have an oci artifact at a well known name in the registry (something like registry.io/.well-known:latest).

@thomastaylor312
Copy link
Collaborator

thomastaylor312 commented Jun 14, 2024

Did some more thinking on this and I had a follow up question: How is a registry like ghcr.io supposed to handle this? Should the well known file be at each org name that is being used as a registry or should it be done another way?

I was trying to think what would be best and didn't come to any good conclusion yet

@calvinrp
Copy link
Collaborator

calvinrp commented Jun 15, 2024

The /.well-known/wasm-pkg/registry.json is intended to be hosted on different domain than the OCI registry.

For the ghcr.io case, you would have registry domain name (example.com) that hosts that .well-known JSON which specifies the OCI registry and namespace prefix and, optionally, these namespace federation mappings.

@lann
Copy link
Collaborator Author

lann commented Jun 15, 2024

We should write up instructions for serving the well-known config from a *.github.io domain.

@calvinrp
Copy link
Collaborator

calvinrp commented Jun 15, 2024

We should write up instructions for serving the well-known config from a *.github.io domain

Are those paths possible on github.io?

@calvinrp calvinrp reopened this Jun 15, 2024
@calvinrp
Copy link
Collaborator

calvinrp commented Jun 15, 2024

Mashed the wrong button on my phone. Accidentally closed the issue. But reopened.

@lann
Copy link
Collaborator Author

lann commented Jun 16, 2024

Are those paths possible on github.io?

https://lann.github.io/.well-known/wasm-pkg/registry.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants