mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
440a4c7d13
Add environment variable to disable workspace forking for non-superadmin users. When DISABLE_WORKSPACE_FORK is set to "true", only superadmins can create workspace forks. Non-superadmin users will receive an error stating that the endpoint requires superadmin privileges. Changes: - Added DISABLE_WORKSPACE_FORK env var (defaults to false) - Modified create_workspace_fork to check superadmin permission when env is set - Modified create_workspace_fork_branch to check superadmin permission when env is set Fixes #7236 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: windmill-internal-app[bot] <windmill-internal-app[bot]@users.noreply.github.com>
Windmill Backend
This folder holds all backend components, the src/ folder only contains files used to build the "root" binary.
Components
| name | description |
|---|---|
| windmill-api | The API server, exposing functionality to other components and the frontend |
| windmill-audit | Contains audit functionality, allowing different components to record important actions |
| windmill-common | Common code shared by all crates |
| windmill-queue | Contains job & flow queuing functionality, commonly written to by the API server and read from by workers |
| windmill-worker | The worker. Used to process and execute flows & jobs. |
| parsers | Contains code to parse signatures in different langauges. |
Compile sqlx for offline ci
cargo sqlx prepare --workspace -- --bin windmill --features enterprise