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

Server certificate cannot be validated #5

Open
booltype opened this issue Oct 24, 2022 · 7 comments
Open

Server certificate cannot be validated #5

booltype opened this issue Oct 24, 2022 · 7 comments

Comments

@booltype
Copy link

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

@booltype
Copy link
Author

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

@gbip gbip reopened this Jan 2, 2023
@gbip
Copy link
Owner

gbip commented Jan 2, 2023

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

@kittenswolf
Copy link

Having the same issue here.

@fritjofbuettner
Copy link

fritjofbuettner commented Feb 20, 2023

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...

@gbip
Copy link
Owner

gbip commented Feb 20, 2023

I try to take a look tonight.

@gbip
Copy link
Owner

gbip commented Feb 27, 2023

Looking at this right now.

@gbip
Copy link
Owner

gbip commented Feb 27, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants