sentry_tunnel icon indicating copy to clipboard operation
sentry_tunnel copied to clipboard

Server certificate cannot be validated

Open bltpc opened this issue 3 years ago • 7 comments

Hello,

using the latest docker image as of today I receive an error message that the server certificate cannot be validated (copied verbatim below). The server is using Let's encrypt certificates which work fine when visiting the domain by browser (it's self-hosting sentry).

Any quick suggestions on what might be going? I saw there was a fix a while back dealing with missing SSL certs and think this should still be active. I haven't dug deeper into building the image myself and for whatever reasons cannot run a shell in the container to dig around in there myself (slightly puzzled by that actually).

Thanks!

sentry_tunnel | ERROR - the server certificate could not be validated - Host = not-shown-here

bltpc avatar Oct 24 '22 14:10 bltpc

Closing this as I am using a Cloudflare worker now instead.

bltpc avatar Oct 25 '22 03:10 bltpc

I'll try to dive into that I think that the root certificates are hardcoded into the image which might create some issues.

gbip avatar Jan 02 '23 14:01 gbip

Having the same issue here.

kittenswolf avatar Feb 15 '23 17:02 kittenswolf

I just ran into the same problem, I tried to integrate sentry_tunnel as a service within the docker-compose stack behind a traefik proxy. I got rid of the certificate errors by building the image instead of pulling it:

services:
  sentry_tunnel:
    build: https://github.com/gbip/sentry_tunnel.git
    environment:
      - TUNNEL_IP=0.0.0.0
      - TUNNEL_REMOTE_HOST=https://oXXXXXX.ingest.sentry.io
      - TUNNEL_PATH=/sentry
      - TUNNEL_PROJECT_IDS=XXXXXX
    labels:
      - traefik.enable=true
      - traefik.http.routers.sentry-http.rule=PathPrefix(`/sentry`)
      - traefik.http.services.sentry.loadbalancer.server.port=7878

however, all POST requests to http://localhost/sentry made by the Sentry JS SDK still fail with a 400 code and no additional information in the response or the container logs...

fritjofbuettner avatar Feb 20 '23 10:02 fritjofbuettner

I try to take a look tonight.

gbip avatar Feb 20 '23 14:02 gbip

Looking at this right now.

gbip avatar Feb 27 '23 21:02 gbip

I pushed a new image that should solve the problem at least for now.

gbip avatar Feb 27 '23 23:02 gbip