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
harbor.yml option for registry http.relativeurls
/ back-port fix for "unknown blob" issue from helm-chart to photon
#12135
Comments
I understand the problem and the fix But I personally think we have to refrain from adding too many options to the installer to satisfy all kinds of customization. We'll discuss it, but can't commit to fix it in the short term. |
Having harbor (or any kind of service for that matter) behind a proxy or firewall is a really common practice. Thus it really would make sense to add that setting to harbor.yml so our setups don't potentially break every So, please add this feature. 👍 |
I can only agree that this is a major problem. Basically we have to change the default with every update/upgrade. Why not change it in the default template when there is no downside in setting it? The upside is that it works out-of-the-box for more setups. The only thing that we needed to add to the "goharbor/registry-photon" container in the docker-compose file:
However, it makes much more sense to add this as an option in case it has some downside. Allowing that in the Helm Chart but not in the docker-compose file looks to me like a mishap because the argument is then invalid to not allow too many options becauase the option is already in the Helm chart but not in the docker-compose file. Say the word and i will do the PR if that is what is the problem. |
Maybe this can be fixed in a more abstract manner. For example, maybe In this specific case though, I agree that |
|
@llitfkitfk How is this resolved? Harbor still doesn't allow us to set |
Just did a new install with harbor v2.4.1 - problem still exists! |
Ok i added the Header add X-Forwarded-Proto "https" header to my proxy conf and now everything is working like expected +1 |
This issue is being marked stale due to a period of inactivity. If this issue is still relevant, please comment or remove the stale label. Otherwise, this issue will close in 30 days. |
Thanks, I solved my problem by this |
I am reverse-proxying an http-only deployment of harbor behind a manually-managed nginx proxy.
When pushing existing layers to the registry, I got the
unknown blob
error.The workaround posted in goharbor/harbor-helm#174 (comment) is to set
common/config/registry/config.yml
http.relativeurls=true
.However, those changes get overriden when running
./install.sh
.This issue was previously discovered and fixed in the helm chart:
goharbor/harbor-helm#174 fixes
I think that this should be fixed in the docker-compose.yml deploy as well, either automatically (by detecting if harbor.yml
external_url
is set, or through another option in harbor.yml.manually-managed (=external) nginx.conf
harbor.yml
harbor release: v2.0.0
The text was updated successfully, but these errors were encountered: