-
Notifications
You must be signed in to change notification settings - Fork 520
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
Sentry relay - regex issue in ingress #176
Comments
We found a solution in the NGINX ingress controller documentation : https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/ As explained in the documentation : The ingress controller supports case insensitive regular expressions in the spec.rules.http.paths.path field. This can be enabled by setting the nginx.ingress.kubernetes.io/use-regex annotation to true (the default is false). So we just need to add this annotation in ingress section into values.yaml file :
Then, the nginx configuration is much better :
|
Thanks for your help (I'm not using Nginx ingress). Would this #180 be enough to solve your issue ? |
Fixed through 5.2.1 |
Hi,
We installed sentry chart (https://github.com/sentry-kubernetes/charts/tree/develop/sentry) on Friday and we discovered some issues about relay and sentry ingress. We disabled nginx and use our ingress controller to forward events to relay which push them in sentry-web.
On this yaml ingress config file :
https://github.com/sentry-kubernetes/charts/blob/develop/sentry/templates/ingress.yaml
As nginx is disabled, second block is used, and we have something like this (interpreted) :
but this regex never matches, and queries get redirected to sentry-web, which produces a 403 error :
The full error is :
Rewriting the path like this make it work :
My configuration :
The text was updated successfully, but these errors were encountered: