Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

📦⚡️ CasWAF

An open-source Web Application Firewall (WAF) software developed by Go and React.

semantic-release docker pull casbin/caswaf GitHub Release Docker Image Version (latest semver)

Go Report Card license GitHub issues GitHub stars GitHub forks

Online demo

Documentation

https://caswaf.org

Architecture

CasWAF contains 2 parts:

NameDescriptionLanguageSource code
FrontendWeb frontend UI for CasWAFJavascript + Reacthttps://github.com/casbin/caswaf/tree/master/web
BackendRESTful API backend for CAsWAFGolang + Beego + MySQLhttps://github.com/casbin/caswaf

Installation

CasWAF uses Casdoor to manage members. So you need to create an organization and an application for CasWAF in a Casdoor instance.

Deployment Options

  • Kubernetes Deployment: Deploy CasWAF on Kubernetes with complete manifests and guide
  • Docker Compose: Use the provided docker-compose.yml for quick local setup
  • Manual Installation: Build and run from source

Necessary configuration

Get the code

go get github.com/casdoor/casdoor go get github.com/casbin/caswaf

or

git clone https://github.com/casdoor/casdoor git clone https://github.com/casbin/caswaf

Setup database

CasWAF will store its users, nodes and topics information in a MySQL database named: caswaf, will create it if not existed. The DB connection string can be specified at: https://github.com/casbin/caswaf/blob/master/conf/app.conf

dataSourceName = root:123@tcp(localhost:3306)/

CasWAF uses XORM to connect to DB, so all DBs supported by XORM can also be used.

Configure Casdoor

After creating an organization and an application for CasWAF in a Casdoor, you need to update clientID, clientSecret, casdoorOrganization and casdoorApplication in app.conf.

Run CasWAF

  • Configure and run CasWAF by yourself. If you want to learn more about caswaf.
  • Open browser: http://localhost:16001/

Optional configuration

Setup your WAF to enable some third-party login platform

CasWAF uses Casdoor to manage members. If you want to log in with oauth, you should see casdoor oauth configuration.

OSS, Mail, and SMS services

CasWAF uses Casdoor to upload files to cloud storage, send Emails and send SMSs. See Casdoor for more details.

Contribute

For CasWAF, if you have any questions, you can open Issues, or you can also directly start Pull Requests(but we recommend opening issues first to communicate with the community).

License

Apache-2.0

关于 About

Casbin AI & MCP security gateway for HTTP, online demo: https://door.caswaf.com
aifirewallgatewayhttplarge-language-modelllmmodsecuritymodsecurity-core-rule-setoauthproxywafweb-application-firewall

语言 Languages

Go52.5%
JavaScript44.7%
CSS1.0%
Shell1.0%
HTML0.4%
Less0.3%
Dockerfile0.1%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
60
Total Commits
峰值: 19次/周
Less
More

核心贡献者 Contributors