cat ./registry-service-credentials.json | base64 | wrangler --env production secrets put GCR_PASSWORD
This is an experimental feature. Oauth authentication is still very barebones.
We haven't tested yet what happens when the registry returns 302 on the HTTP client, that's still a TODO here.
To make this work, a rewrite had to happen with the R2 registry where we have to move most logic to a different file that implements the "Registry" interface.
Most endpoints are implemented by the R2Registry class (that tries to implement the new Registry interface), except content management ones.
What to expect from this changes:
When R2 fails retrieving content in any way, we will fallback to the configured registries in REGISTRIES_JSON.
If R2 failed retrieving the content with a 404, we will try to synchronise the successful registry with R2. (limited to 5GB layers atm).
Addresses #4.
This has been tested with 1 R2 as fallback and then a Docker Registry with Google Cloud's Artifact solution.
How to configure:
And do
This is an experimental feature. Oauth authentication is still very barebones. We haven't tested yet what happens when the registry returns 302 on the HTTP client, that's still a TODO here.
To make this work, a rewrite had to happen with the R2 registry where we have to move most logic to a different file that implements the "Registry" interface.
Most endpoints are implemented by the R2Registry class (that tries to implement the new Registry interface), except content management ones.
What to expect from this changes: