- Rust 58.5%
- TypeScript 32.8%
- CSS 4.1%
- Python 1.9%
- JavaScript 1.7%
- Other 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .forgejo/workflows | ||
| builtins/blocks | ||
| deploy | ||
| docs | ||
| examples | ||
| integrations | ||
| migrations | ||
| scripts | ||
| src | ||
| tests | ||
| web | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| AGENTS.md | ||
| build.rs | ||
| Cargo.lock | ||
| Cargo.toml | ||
| compose.build.yaml | ||
| compose.ci.yaml | ||
| compose.yaml | ||
| Dockerfile | ||
| README.md | ||
TAZR
A self-hosted AI SOAR foundation: Rust backend, visual automation, customizable applications, incident ingestion, and an assistant available across the workspace.
Vocabulary | Playbook guide | Documentation index | User guide | CI/CD help | Screenshots and logo
Deploy without a repository checkout
Download one self-contained file: use your existing reverse proxy, use your existing Cloudflare tunnel, private/VPN, or include Caddy for public HTTPS. Each pulls the published image and generates private credentials automatically. Complete standalone instructions.
mkdir tazr && cd tazr
curl -fSL https://git.tazna.do/taznado/TAZR/raw/branch/main/deploy/compose.vpn.yaml -o compose.yaml
docker compose up -d --wait
docker compose exec app tazr admin-password
For public HTTPS, download compose.https.yaml instead and set TAZR_DOMAIN=soar.example.com in .env. Caddy handles HTTPS; no proxy configuration file is needed.
If you already run a reverse proxy in Docker, use compose.proxy.yaml, set PROXY_NETWORK to its existing network, and forward your domain to http://tazr:8080. For an existing cloudflared container, use compose.cloudflare.yaml and CLOUDFLARE_NETWORK. These two files join the proxy's network and publish no host ports; see the standalone guide for the public URL and trusted proxy settings.
Run from a source checkout
Requirements: Docker with Compose 2.24.4+, and a reverse proxy for public deployments using this checkout's default file. The standalone HTTPS file includes its own proxy.
git clone https://git.tazna.do/taznado/TAZR.git
cd TAZR
docker compose up -d
Compose pulls git.tazna.do/taznado/tazr:latest when available, or automatically builds this checkout when the image cannot be pulled. The bootstrap service generates unique credentials in the persistent bootstrap volume; no .env or setup command is required. To force a local source build, use docker compose -f compose.yaml -f compose.build.yaml up -d. CI publishes tested images after the registry secret is configured; publishing setup.
Open http://localhost:8080. Retrieve the generated password with docker compose exec app tazr admin-password, sign in as admin, then change it when prompted. Existing .env credentials are imported on first startup. Bootstrap credentials only apply to an empty database. The application never stores a universal default password.
Optionally create .env to set PUBLIC_URL to the URL users actually visit before configuring SSO. Compose binds to loopback by default; set BIND_ADDRESS to the server's VPN address for direct VPN access. Database ports are not published. Deployment instructions include image selection, reverse proxy, backups, and recovery.
Build your workspace
- Applications: open the seeded Incident response application, or create an application. Customize related record types, fields, form order/sections, table columns, and kanban grouping. Publish a schema before adding records. Each incident has independent data, notes, evidence attachments, and related records.
- Integrations: click Install to expose triggers, actions, and Blocks without credentials. Create vendor profiles under Integration connections or reusable authentication under HTTP & webhook credentials, then bind them in playbooks. Administrators can import custom YAML packages from folders or ZIPs. Installation and credentials, source setup, Defender response, and CrowdSec notifications and decisions.
- Playbooks: drag actions onto the canvas and connect their outputs. Save drafts, publish an immutable revision, and run it with JSON input. Available triggers are manual, webhook, cron, record events, application record buttons, and vendor receive/API-fetch events. Multiple triggers can share actions. Add buttons to incident records. Use data dropdowns, visual or JSONata transforms, isolated Python scripts, record actions, waits, AI, automatic parallel branches/merges, and For each loops. Integrations bundle reusable ingestion and response Blocks. Test individual draft flows and inspect the results in the playbook's Run history.
- AI: set
OPENROUTER_API_KEYin your private.envor storeopenrouter.api_keyin Settings -> Secrets. In Models & routing, check the key source and choose a model and provider routing policy. Free-only mode starts enabled unlessOPENROUTER_API_KEYis set in the server environment. Saved workspace routing policies take precedence. Open the assistant on any page to inspect data, propose configuration changes, or set up integrations and credentials. Review each proposal before applying it. - Workspaces: open the sidebar workspace selector to create workspaces and manage membership as an administrator. Cases, automation, integrations, settings, and AI history are isolated; accounts and SSO are shared. Workspace administration.
- SSO: configure your own OIDC, OAuth2, or SAML IdP under Settings -> Single sign-on. Authentication and MCP configuration. The local admin login remains available for breakglass access.
The overview includes incidents over time. Use Customize overview to add charts, choose fields and time ranges, resize/reorder them, and save a layout for your account and workspace. Chart builder guide.
Built-in webhook triggers, reusable credentials, Cron + HTTP polling, the transform/Python IDE, and canvas context menus are covered in Built-in tools.
Development
Before every push, update the relevant documentation and test coverage, run the required checks, and fix failures. Follow AGENTS.md for the repository rules and docs/testing.md for verification commands. Respect any explicit instruction to hold a push.
Contribute HTTP integrations with a YAML manifest, icon, documentation, and fixtures
under integrations/. Copy the included template and run
cargo run -- integrations validate integrations; no Rust or React changes are
needed for supported HTTP integrations. Administrators can also import packages at
runtime from folders or ZIPs; try Demo alerts.
Save selected playbook actions as
reusable Blocks and drag editable copies into other
playbooks, with JSON import/export for sharing.
Use Rust 1.94+, Node 22.12+ or 24, PostgreSQL 17, OpenSSL CLI, and xmlsec1 with its OpenSSL backend. SAML protocol handling is in Rust; XML signatures are verified by xmlsec1, with no custom cryptography.
python3 scripts/init-env.py
# Add DATABASE_URL=postgres://user:password@localhost:5432/tazr to .env.
# Add TAZR_INLINE_WORKER=true to run the worker inside the API process.
cd web
npm ci
npm run build
cd ..
cargo run
Alternatively run cargo run -- worker separately. For Vite hot reload, run npm run dev in web/, set PUBLIC_URL=http://localhost:5173, and use that origin consistently. Vite proxies the API and MCP to Rust on port 8080.
TAZR_MASTER_KEY must remain stable: it encrypts stored credentials. Keep native-development .env private. Compose stores its credentials and key in the private bootstrap volume; back up that volume separately from the database. The supplied testing key is intentionally absent from source, build artifacts, and fixtures; add it privately through Settings or OPENROUTER_API_KEY.
Tests
cargo fmt --check
cargo clippy --all-targets --locked -- -D warnings
cargo test --lib --locked
DATABASE_URL=postgres://postgres:password@localhost/postgres cargo test --locked
cd web
npm test
npm run build
npx playwright install chromium
TAZR_ADMIN_PASSWORD=your-initial-password npm run test:e2e
Database tests create isolated databases, so their PostgreSQL account needs CREATEDB. SSO tests use locally generated signing keys and a mock IdP. Model tests use a mock OpenRouter service. Browser tests require a running, disposable TAZR stack and change its initial admin password; never run them against production. TAZR_TEST_PASSWORD controls the rotated test password.
The Forgejo pipeline checks formatting, Clippy, Rust unit/integration tests, frontend tests, browser flows, fresh-clone Compose startup, and image publishing behavior. Successful main-branch builds update an isolated demo and publish the tested image when REGISTRY_TOKEN is configured. The demo publishes no host ports. See CI/CD details.
The suite covers Rust unit/integration behavior, frontend helpers, browser workflows, deployment smoke scenarios, and optional real-provider checks. Live AI CI also asks free models to author and edit working playbooks through assistant/MCP tools, with bounded retries and actual execution checks; see live AI test configuration. See the test coverage matrix.
Repository text is ASCII-only and checked with python3 scripts/check-ascii.py locally and in CI. User data still supports UTF-8. The SVG logo is used by the UI and favicon; PNG exports and actual application screenshots are included in the gallery.
If Forgejo says "This workflow has a workflow_dispatch event trigger", select main only when you want an optional manual run. Pushes to main and pull requests trigger checks automatically. A waiting run still needs an online runner labeled docker that is available to this repository. See the step-by-step CI/CD guide.
Foundation boundaries
- Multiple workspaces per installation, with membership, shared user roles, and per-application access. Non-admins see their own execution histories and AI accounting; administrators see workspace totals.
- Application layouts are structured forms, tables, boards, and detail pages. Arbitrary page canvases, operating-system commands, external MCP server connections, and hosting mutually untrusted organizations with independent administrators are outside this release. Python scripts provide isolated JSON processing.
- Ingestion is inbound synchronization. Wazuh and Elastic require a webhook path reachable from their sending system. Sentinel uses outbound polling, with no public inbound endpoint required.
- HTTP effects cannot be guaranteed exactly once. Interrupted actions are marked uncertain, are not automatically repeated, and need investigation. Automated record-event chains are limited to eight generations.
- SAML initially supports SP-initiated Redirect/POST login with signed, unencrypted RSA-SHA256 assertions. The IdP must permit unsigned AuthnRequests. IdP-initiated login, encrypted assertions, and SAML single logout are not implemented.
- OAuth2 identity endpoints are provider-specific. Configure a stable subject claim; no accounts are automatically linked by email. Signing out revokes the local session, not the upstream IdP session.
- Source integrations are tested with fixtures and HTTP mocks; use the documented setup to validate them against your actual products and IdP.
REST endpoints are listed in API documentation; a route index is available at /api/v1/openapi.json.
