Skip to content

About

CrowdSec bouncer for OpenResty

Resources

Stars

24 stars

Watchers

9 watching

Forks

Repository files navigation

CrowdSec

📚 Documentation 💠 Hub 💬 Discourse

CrowdSec OpenResty Bouncer

A lua bouncer for OpenResty.

How does it work ?

This bouncer leverages OpenResty lua's API, namely access_by_lua_file.

New/unknown IP are checked against crowdsec API, and if request should be blocked, a 403 is returned to the user, and put in cache.

Installation

Please follow the official documentation.

Vendored dependencies

Pure-Lua dependencies (currently lua-resty-http) are vendored under vendor/, pinned by tag and commit in vendor/vendor.conf, and installed with the bouncer in /usr/local/openresty/lualib/plugins/crowdsec/, not in OpenResty's shared lualib/. lua-cjson is bundled with OpenResty, so opm is no longer needed.

./scripts/vendor.sh list                          # pinned versions
./scripts/vendor.sh outdated                      # newer upstream tags
./scripts/vendor.sh update lua-resty-http [tag]   # bump (default: latest tag)
./scripts/vendor.sh verify                        # vendor/ matches upstream
./scripts/vendor.sh advisories                    # upstream security advisories (needs gh)

The vendored-dependencies workflow runs weekly, opens a PR for each outdated dependency and reports upstream security advisories.

About

CrowdSec bouncer for OpenResty

Resources

Stars

24 stars

Watchers

9 watching

Forks

Releases

Packages

Used by

Contributors

Languages