-
Notifications
You must be signed in to change notification settings - Fork 11
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
Enable Cloudflare bad bot protection #4802
Comments
We cannot currently put job-server behind cloudflare, for security reasons. Cloudflare used shared IPs, and our firewall rules in TPP allow egress to that IP. So it would be possible for an attacker to use cloudflare to get that same IP, and then egress from TPP to their hosting. This is true for all services hosted on dokku4. We used to have cloudflare in front of job-server - we disabled it for this reasons. |
I think we can do this, but the backends will need to continue to use the original IP to talk directly to dokku4 and we will need to configure things so that the backends (and only the backends) are allowed to do direct connections and bypass Cloudflare. For our own services on the backend we use hardcoded The only question will be whether TPP use the hostname or the IP in their firewall config. I'm pretty sure it's the IP but obviously we'd need to confirm that first. There was a tiny bit of discussion about this ages ago, but it fizzled out: |
Yes, we do have control of backend DNS now, so this is possible, good point.
So I thought it was IP based, but I think it may be domain based. When the DNS for archive.ubuntu.com changed recently, the TPP firewall tracked the change, and with our hardcoded DNS entries for the old IP address, we lost access. We'd need to check with TPP whether its IP or domain based. And whilst this is possible, it's adding a level of network complexity, and that is generally the last place you want to add complexity. |
A slightly more involved option, but still achievable without major architectural changes, would be to change the hostname the backends use to refer to job-server e.g. to If TPP are using domains to configure to their firewall then we'll have to use a different domain anyway if we want to go down that route. (Re-opening as I'm assuming that was an inadvertent close.) |
We believe that Job Server is seeing an increase in bot-related traffic and that this is having an impact on page load times, which is affecting users (thread 1, 2, 3).
Moving Job Server behind Cloudflare and enabling its bad bot protection would demonstrate whether or not that's the case, and if so, it will resolve the issue.
We need to:
The text was updated successfully, but these errors were encountered: