-
Notifications
You must be signed in to change notification settings - Fork 19
[BUG] Unclear error "appsecQuery:unreachable" #238
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
Comments
Hi, Which version of Crowdsec are you using ? |
Just a thought, you mentionned CrowdsecAppsecHost
string
default: "crowdsec:7422"
Crowdsec Appsec Server available on which host and port. The scheme will be handled by the CrowdsecLapiScheme var. If your appsec/crowdsec is remote and you are using Appsec, you have to specify it also |
Of course, I use the following compose file for traefik:
I run the LAPI centrally on a host (crowdsec.example.com), while the log reading and the AppSec component runs separately on each host and can be accessed by traefik via crowdsec:7422.
That means I have to specify |
Hi @ZzenlD, If I understand correctly LAPI is working as https://domainlapi, and Traefik, appsec run in a host and can talk using docker dns style I see one thing that might be the issue: From documentation for the You config mentionned
Running http and https for both is not supported currently but will be in the future, it is tracked in the issue: #131 Please let me know if that helps you |
Yes, the LAPI is accessible via HTTPS, AppSec only locally via HTTP. So I fear that this is the problem. However, everyone in a distributed setup is likely to have this problem, as probably very few have a central AppSec instance. After all, in such a case, every request would otherwise have to be transmitted over the network. |
Hello, to solve the http issue, just create a dns record for Appsec like crowdsec-appsec.your-domain and use a dynamic routing on your traefik instance. http: |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug 🐛
I am running crowdsec and traefik in the container, but traefik always displays the following error message:
Unfortunately, switching to debug level does not provide any more information.
Expected behavior 👀
The Traefik forwards the request to crowdsec-appsec, is successfully validated and the user is shown the website.
Context 🔎
traefik-log:
crowdsec-log:
I have successfully tested the following:
Version (please complete the following information):
The text was updated successfully, but these errors were encountered: