Skip to content

proxy: add Anubis bot protection#2017

Open
nuclearcat wants to merge 1 commit into
kernelci:mainfrom
nuclearcat:anubis-bot-protection
Open

proxy: add Anubis bot protection#2017
nuclearcat wants to merge 1 commit into
kernelci:mainfrom
nuclearcat:anubis-bot-protection

Conversation

@nuclearcat

Copy link
Copy Markdown
Member

Route public dashboard traffic through an Anubis sidecar before it reaches the existing NGINX API and static-file handlers. Pin the stable v1.25.0 image and wait for its health check before starting the proxy.\n\nImport Anubis's default policy after an explicit allow rule for curl, wget, python-requests, and kci-dev user agents so documented API clients bypass browser challenges. Document the deployment and secure-cookie override.

Route public dashboard traffic through an Anubis sidecar before it reaches the existing NGINX API and static-file handlers. Pin the stable v1.25.0 image and wait for its health check before starting the proxy.\n\nImport Anubis's default policy after an explicit allow rule for curl, wget, python-requests, and kci-dev user agents so documented API clients bypass browser challenges. Document the deployment and secure-cookie override.

Signed-off-by: Denys Fedoryshchenko <denys.f@collabora.com>
Comment thread docker-compose.yml
volumes:
- ./anubis/botPolicy.yaml:/data/cfg/botPolicy.yaml:ro
healthcheck:
test: ["CMD", "anubis", "--healthcheck"]

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Anubis does give you a nice metrics URL too, which we can wire into grafana in a later date (see how many bots/honeytraps it catches)

@tales-aparecida

Copy link
Copy Markdown

Can we deploy this to staging pre merge? (assuming it would not land in front of prod, given they share the server)

@nuclearcat

Copy link
Copy Markdown
Member Author

Can we deploy this to staging pre merge? (assuming it would not land in front of prod, given they share the server)

Yes, as they are routed externally (host nginx), and anubis are injected between dashboard internal nginx and frontend

@tales-aparecida

Copy link
Copy Markdown

Can we deploy this to staging pre merge? (assuming it would not land in front of prod, given they share the server)

Yes, as they are routed externally (host nginx), and anubis are injected between dashboard internal nginx and frontend

Great! Then let's please see how it interacts with kci-dev , mobile and desktop 😁

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

Successfully merging this pull request may close these issues.

3 participants