-
Notifications
You must be signed in to change notification settings - Fork 269
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
Problems running behind https #1485
Comments
There should be some console logging in the browser - if you could provide that it would help. But if you're getting a stack trace from the server, the implication certainly is that the request is reaching the server but then failing. The error you are seeing is what you would get if you tried accessing an endpoint that doesn't exist. For example:
Since there is no
What happens if you do this?
When I do that, I get this output:
|
Thanks for your swift reply.
Here's the response from your proposed curl command:
If I understand you correctly, URLs are transformed into a http/localhost version internally? https://apicurio-registry.internal.example.io/apis/v2/search/galaxies causes a lookup for http://localhost:8080/apis/registry/v2/search/galaxies? Then setting Is there a recommended way to host the Registry behind an HTTPS-enabled reverse proxy? Is this supported? |
Yes running behind a https enabled reverse proxy should be no problem at all! That's pretty much how we always run the registry when deployed in e.g. OpenShift or Kubernetes. SSL is enabled at the edge, not in the application. So we're always deploying the way you describe. This is very strange. If that previous
Does that also fail? @Apicurio/developers Any ideas? |
Yes, that fails with the same 404 and error message mentioning |
We're behind Cloudflare Access, if that gives you any hint? Still looks like something Registry UI-internal is getting mixed up to me, though. |
This https://apicurio-registry.internal.example.io/apis/registry/v2/search/artifacts works for example, this https://apicurio-registry.internal.example.io/apis/v2/search/artifacts doesn't. |
Oh man there is a subtle difference in those URLs that I didn't notice until you laid it out like that. :) OK, so can you provide your exact values for |
I think maybe the value of |
They were |
Yay, it works. Thank you. |
@smccarthy-ie hi, Could you please add this to the documentation updates? |
We are running the the Registry as a Kubernetes deployment (quay.io/apicurio/apicurio-registry-sql:2.0.0.Final) and accessing it behind an HTTPS reverse proxy. We had to override
REGISTRY_UI_CONFIG_APIURL=https://...
REGISTRY_UI_CONFIG_UIURL=https://...
with https:// URLs to avoid Mixed Content errors where the browser complains about plain HTTP XHR requests for the HTTPS page (somewhat related: #1152; #513; see also https://www.apicur.io/registry/docs/apicurio-registry/2.0.0.Final/getting-started/assembly-managing-registry-artifacts-ui.html).
Accessing /ui now throws this error complaining about an http:// URL:
Is this a known issue? How do we make the Registry properly work behind https? Is this even an HTTPS-related or rather a URL path problem?
https://apicurio-registry.internal.example.io/apis/ works fine.
The text was updated successfully, but these errors were encountered: