mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-10 16:05:58 +00:00
The editor preview is same-origin and unsandboxed, so app code there already holds the editing user's session cookie. Minting a scoped bearer for it added an endpoint and a portable 12h credential without containing anything. Inject only BASE_URL and WM_WORKSPACE: `windmill-client` falls back to credentialed same-origin requests when it finds no token, so the SDK runs as the editing user. Drops POST /apps/preview_sdk_token and the mint/race handling in the editor. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KPCW1WB5QeYrgJmgwcywNA
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