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

Allow pushes to proxy-cache projects #21228

Open
ianseyer opened this issue Nov 21, 2024 · 0 comments
Open

Allow pushes to proxy-cache projects #21228

ianseyer opened this issue Nov 21, 2024 · 0 comments

Comments

@ianseyer
Copy link

ianseyer commented Nov 21, 2024

Is your feature request related to a problem? Please describe.
We want to be able to use an offsite registry as a pull-through cache for a proejct, but want users to be able to push to the project repository (it is not required to replicate that image back to the offsite registry).

This would be similar to a replication, but we want to only pull them in if they are in use (JIT replication, essentially)

Describe the solution you'd like
Enable pushes to proxy-cache projects.

Describe the main design/architecture of your solution
I am not familiar with why this would not be possible.

If the requested image exists, it will serve from onsite Harbor. If it doesn't, reach out to the offsite and pull it in.

If you push an image, the above process should be unaffected.

Pushes to existing images that came from the offsite registry should follow normal tag immutability rules.

Describe the development plan you've considered
Enable pushing, see what breaks.

func DisableBlobAndManifestUploadMiddleware() func(http.Handler) http.Handler {

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

1 participant