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

[Feature Request] Harbor as combined registry and registry mirror #6894

Closed
tschwaller opened this issue Feb 6, 2019 · 8 comments
Closed
Assignees
Labels
area/replication kind/requirement New feature or idea on top of harbor

Comments

@tschwaller
Copy link

If you configure Harbor as a local registry mirror, then it only acts as a mirror server and no longer accepts image pushing requests. As an administrator I would like to be able to use a single Harbor instance for both use cases.

The Harbor registry could then be configured as gatekeeper, i.e. as the only allowed registry to pull images from. Images from the Internet would be automatically scanned by Harbor and disallowed to be pulled according to CVE severity level. One would also avoid downloading images and pushing them to Harbor all the time just to get them scanned, since this is now a fully automated process.

Harbor should be configurable as local registry mirror for several external registries (not just one). In a first step all needed images are cached, but in a second step one should be able to configure which images can be used (e.g. per project, using regular expressions, using Quota limits, etc.).

@tschwaller
Copy link
Author

Another use case for PKS encountered at several customers. Internal customer registries are often not using certificates (not a best practice, but simplifies internal registry use). Since PKS does not allow to connect to such registries (i.e. not using certificates) it is necessary to change the dockerd configuration of the k8s worker nodes by hand (which will be overwritten each time bosh deploys/heals nodes). So using a Harbor registry as local mirror (for the unsecured internal registry) and as a regular registry for k8s clusters deployed by PKS would solve this problem.

@ghost
Copy link

ghost commented Feb 8, 2019

Hi @tschwaller – good to hear from you. PKS? What's that? 😉

This is definitely on the radar; take a look at goharbor/community#40.

@steven-zou steven-zou self-assigned this Feb 11, 2019
@steven-zou steven-zou added kind/requirement New feature or idea on top of harbor area/replication labels Feb 11, 2019
@manojbadam
Copy link

Harbor should be configurable as local registry mirror for several external registries (not just one).

👍 Waiting for this..

@steven-zou
Copy link
Contributor

Transfer all the requirements to @xaleeks for tracking.

@mariolenz
Copy link

As an administrator I would like to be able to use a single Harbor instance for both use cases.

This would be really awesome :-)

The Harbor registry could then be configured as gatekeeper, i.e. as the only allowed registry to pull images from. Images from the Internet would be automatically scanned by Harbor and disallowed to be pulled according to CVE severity level.

That's just what we need in our (pretty restricted enterprise) environment.

In a first step all needed images are cached, but in a second step one should be able to configure which images can be used (e.g. per project, using regular expressions, using Quota limits, etc.).

Definitely useful. Our IT-Security would want to have a way to whitelist images that are allowed so people can't just pull everything. But I a agree that is a second step.

@michmike
Copy link
Contributor

related to #8082

@xaleeks
Copy link
Contributor

xaleeks commented Apr 28, 2020

@tschwaller Tom, we are tackling this in v2.1. Please track the ticket Michael linked, and I will share the prd with you as well if you want to add some more requirements

@xaleeks xaleeks closed this as completed Apr 28, 2020
@ambition-consulting
Copy link

ambition-consulting commented Jan 15, 2021

I second this requirement. Anything else will make Docker+Harbor painful in big corporate companies that require both caching and a local registry simultaneously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/replication kind/requirement New feature or idea on top of harbor
Projects
None yet
Development

No branches or pull requests

7 participants