probo icon indicating copy to clipboard operation
probo copied to clipboard

Compliance page on self-hosted server

Open dgr-ednl opened this issue 4 months ago • 9 comments

I am trying to enable the compliance page on a custom domain but I keep getting DNS is not configured correctly.

Context: Probo is running on a self-hosted server with only an internal IP addess. The public proxy (different server) redirects requests to (internal IP of probo):8080.

The interface shows that a CNAME record must be created pointing to custom.getprobo.com. However this is not the self-hosted server so then the domain would never reach the server. I pointed the custom domain to my proxy and also forwarded all requests to (internal IP):8080. Then the interface showed that the DNS is not configured correctly. So, I pointed it to the internal IP address of the server, same result.

So my question is, what should the DNS values be and how can I expose the compliance page endpoint properly using the proxy.

dgr-ednl avatar Jul 24 '26 10:07 dgr-ednl

Probo has two inbound network ports. Port 8080 handles the API and console. For the compliance portal, you should expose Probo through a Layer 4 load balancer or directly on the internet, since Probo handles TLS termination itself.

gearnode avatar Jul 29 '26 15:07 gearnode

I now have given the VM a public IP. The docker image exposes port 8080 and 8443 and those ports are not blocked by any firewall. I have NGINX to proxy the domain compliance.ednl.nl on port 443 to port 8080, NGINX handles the SSL. For the domain trust.ednl.nl I also proxy 80 and 443 to port 8080 on localhost, but without SSL, just proxy. However, the console still says failed to verify domain ownership. The domain trust.ednl.nl is pointed to CNAME compliance.ednl.nl.

Why is it still showing this message?

dgr-ednl avatar Jul 30 '26 07:07 dgr-ednl

Yeah, also having a problem related to this. Couldn't find any way to have Compliance Page on a Probo deployed to Railway. Railway always terminates TLS, so I assume it's the issue. Tried Tunnels, TCP proxy, Nginx, nothing helps. The portal itself does work.

I guess need it either to support external TLS termination or DNS-01.

MrLightful avatar Aug 14 '26 07:08 MrLightful

The patch proposed by @MrLightful has been merge it should close the issue now.

gearnode avatar Aug 18 '26 06:08 gearnode

I still have issues with this.

I now have compliance.myorg.com to the public IP of the probo server and trust.myorg.com with a CNAME to compliance.myorg.com.

NGINX proxies compliance.myorg.com and trust.myorg.com (port 443) to localhost:8080 (docker container of probo). But now I get the message domain ownership could not be verified.

What should I change?

dgr-ednl avatar Aug 19 '26 08:08 dgr-ednl

Ignore ownership/domain verification in UI. It's expected that it's not verified. You should be able to access your compliance page without it. But I assume you can't? Do you get any other errors? In server logs or browser console? Can you maybe elaborate your setup?

MrLightful avatar Aug 19 '26 08:08 MrLightful

Alright. No I get the signin to your account page from the probo console, insead of the compliance portal.

compliance.myorg.com points to the public IP of the VM that runs Probo. trust.myorg.com points to compliance.myorg.com as CNAME. Just as the compliance portal page in Probe describes.

Both domains are forwarded to localhost:8080 via NGINX. NGINX handles SSL certificates. I run probo inside a docker container with the production compose.yml.

Should the trust.myorg.com be forwarded to another port? Or not forwarded at all?

dgr-ednl avatar Aug 19 '26 10:08 dgr-ednl

Did you configure your instance to use new tls termination mode? https://www.probo.com/docs/deployment/configuration/environment-variables#compliance-portal-tls

So if nginx terminates tls, then you need external mode and make nginx forward to port in PROBOD_TRUST_CENTER_HTTP_ADDR (which is different from portal itself, thus you getting login page).

MrLightful avatar Aug 19 '26 10:08 MrLightful

I have the compliance page working now.

I still have another issue. When I try to request rights, subscribe to updates or other buttons, the compliance page (hosted at trust.myorg.com) redirects me to compliance.myorg.com (the probo console base url) on path /api/connect/v1/oauth2/authorize. The client_id parameter in the URL is https://trust.myorg.com/.well-known/oauth-client-metadata

But that returns: {"error":"invalid_client","error_description":"client_id is not allowed for client metadata documents"}

I have trust.myorg.com configured as domain in the probo console under custom domains for the complance page. I have added trust.myorg.com in the cors allowed origins parameter. What else should I do?

dgr-ednl avatar Aug 19 '26 12:08 dgr-ednl