Move Gitea bot controls into encrypted data bag #703
Labels
Clear labels
monitoring
bug
design
dev environment
docs
duplicate
enhancement
feature
good first issue
idea
invalid
kredits-1
kredits-2
kredits-3
on hold
ops
question
security
ui/ux
wontfix
Infrastructure metrics, alerts, notifications, etc.
service
discourse
Kosmos Community Forums
service
accounts
Kosmos Accounts
service
drone-ci
Kosmos Drone CI
service
email
mail.kosmos.org
service
garage
S3-compatible object storage
service
gitea
Kosmos Gitea
service
ipfs
Kosmos IPFS
service
lightning
Lightning address, lndhub, etc.
service
mastodon
kosmos.social
service
nostr
Relays, Blossom server, etc.
service
postgres
Database cluster
service
remotestorage
Portable data storage for the Web
service
wiki
Kosmos Wiki
service
xmpp
Kosmos Chat
Something is not working
Graphic/visual design
Config, builds, CI, deployment, etc.
Documentation
This issue or pull request already exists
Improving existing functionality
New functionality
Dive in, and start contributing
Something to consider
Not a bug
Small contribution
Medium contribution
Large contribution
Currently not actionable
Manual IT ops activities
Looking for an answer
All your base are belong to us
User interface, process design, etc.
This won't be fixed
release
major
release
minor
release
patch
Milestone
No items
No Milestone
Projects
Clear projects
No projects
No Assignees
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: kosmos/chef#703
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Broadens the Gitea edge bot blocking and moves the bot/IP lists out of the cookbook into the encrypted
credentials/giteadata bag (bot_filter), so the rate-limited crawler names, hard-banned user agents and denied networks are no longer published in this public repository and can be changed by editing the data bag.rate_limits.confandrobots.txtare now rendered from the data bag. The rate values and the expensive-route/robots route patterns stay static in the templates. This also adds several AI crawlers to the rate-limited set, tightens the bots zone to 60r/m so the limit actually engages, hard-blocks a datacenter scraper network and disallows combinatorial commit-browsing routes in robots.txt.The
bot_filterschema islimit(list of{match, key}),deny_user_agents(list of user-agent patterns) anddeny_networks(list of CIDRs). The cookbook is bumped to 0.3.9 and the nodes submodule ref is updated for gitea-2's zerotier state.👍