deploy-2026.11.23-209
12
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
1a031515e7 |
Merge pull request 'Fix abort, missing goto, offline schedules and the cron 500' (#66) from fix-known-bugs into main
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 1m41s
CI / Security (npm audit) (push) Successful in 1m0s
CI / Test (jest) (push) Failing after 1m5s
CI / Scan (secrets, workflows, shell) (push) Successful in 4m25s
CI / Integration (api) (push) Failing after 4m31s
CI / UI (playwright) (push) Successful in 5m23s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Successful in 4s
|
||
|
|
dc732a1ec5 |
Fix abort, missing goto, offline schedules and the cron 500 (#8, #20, #9)
CI / UI screenshots (before/after) (push) Skipped
CI / Test (jest) (push) Successful in 32s
CI / Security (npm audit) (push) Successful in 15s
CI / Integration (api) (push) Successful in 4m4s
CI / Scan (secrets, workflows, shell) (push) Successful in 3m26s
CI / Lint (eslint) (pull_request) Successful in 1m12s
CI / Test (jest) (pull_request) Successful in 1m11s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 7m1s
CI / Integration (api) (pull_request) Successful in 7m41s
CI / UI screenshots (before/after) (pull_request) Successful in 28s
CI / UI (playwright) (pull_request) Successful in 4m41s
CI / Lint (eslint) (push) Successful in 24s
CI / Security (npm audit) (pull_request) Successful in 23s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI (playwright) (push) Successful in 3m41s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
The four known-bug tests from #59 now pass as normal tests. - #8 abort: each workflow execution gets an AbortController. The abort route fires it; the engine checks it before every step and stops; wait steps, retry delays and waits for a worker's result end as soon as it fires. New test: aborting during a 20 s command stops the workflow within seconds and runs no further step. - #20 goto to a missing step: the execution now fails (it reported completed). Workflows are also checked on save: a goto, route or prompt route to a step id that doesn't exist is a 400 ('end' is always valid). A workflow saved before the check still fails at runtime (tested by writing one directly). - #9 schedules whose worker is offline: instead of skipping silently, the scheduler records a failed run ('Worker offline: the scheduled command was not sent'), visible in Executions. - An invalid cron expression (or any bad schedule) is a 400 with the parser's message instead of a 500. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
235d9240c0 |
CI: eslint-plugin-security and zizmor; harden the workflow
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 23s
CI / Test (jest) (push) Successful in 22s
CI / Security (npm audit) (push) Successful in 14s
CI / Scan (secrets, workflows, shell) (push) Failing after 18s
CI / Integration (api) (push) Successful in 2m43s
CI / Lint (eslint) (pull_request) Successful in 17s
CI / Test (jest) (pull_request) Successful in 18s
CI / Security (npm audit) (pull_request) Successful in 13s
CI / UI (playwright) (push) Successful in 3m0s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Scan (secrets, workflows, shell) (pull_request) Failing after 14s
CI / Integration (api) (pull_request) Successful in 2m24s
CI / UI (playwright) (pull_request) Successful in 2m16s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
CI / UI screenshots (before/after) (pull_request) Successful in 2m18s
- eslint-plugin-security 4.2.1 (recommended-legacy) with detect-object-injection off (it flags every obj[key]) and file/regex rules off for CI scripts and tests. The remaining hits were false positives with a one-line reason each (fixed page names, the worker's own directory, a null check), plus one real tidy-up: the condition tokenizer's number regex is now two flat patterns with no backtracking, and malformed numbers like 1.2.3 are refused. - zizmor 1.32.0 in the Scan job. Its findings are fixed: persist-credentials: false on every checkout (no job pushes), container images pinned by digest (tag kept in the reference), and the deploy tag step takes github.* values through env instead of template expansion. Left as is: secrets-outside-env (auditor persona; Gitea has no deployment environments). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
040ad028c0 |
Safer workflow conditions; Pulse is admin-only
CI / UI screenshots (before/after) (push) Skipped
CI / Lint (eslint) (push) Successful in 25s
CI / Test (jest) (push) Successful in 25s
CI / Security (npm audit) (push) Successful in 21s
CI / Scan (secrets, workflows, shell) (push) Successful in 2m0s
CI / Integration (api) (push) Successful in 2m23s
CI / Lint (eslint) (pull_request) Successful in 24s
CI / Test (jest) (pull_request) Successful in 32s
CI / Security (npm audit) (pull_request) Successful in 39s
CI / UI (playwright) (push) Successful in 2m6s
CI / Deploy (push) Skipped
CI / Deploy worker (push) Skipped
CI / Notify (push) Skipped
CI / Integration (api) (pull_request) Successful in 2m13s
CI / Scan (secrets, workflows, shell) (pull_request) Successful in 2m46s
CI / UI screenshots (before/after) (pull_request) Successful in 27s
CI / UI (playwright) (pull_request) Successful in 3m5s
CI / Deploy (pull_request) Skipped
CI / Deploy worker (pull_request) Skipped
CI / Notify (pull_request) Skipped
- Workflow conditions (step.condition and route `if`) are now parsed and interpreted by lib/condition.js instead of being run with Node's vm module. The language covers what workflows use: state/params lookups, parseInt/parseFloat/Number/String/Boolean, a few string methods, the usual operators with JavaScript semantics. Conditions can only read the workflow's own data. Every condition in the production workflows gives the same result as before (differential test, 150 random states each). - Creating and updating a workflow rejects conditions that don't parse (400 with the step and the error). - Creating a workflow requires admin, like editing already did. - Only the admin group may use Pulse (pages, API and live WebSocket); employees get 403. Gandalf and workers use API keys and are unaffected. - The live-update UI test finds its execution's row by id instead of counting rows (the list is capped at 50). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
027dce7fd5 |
Remove em and en dashes from UI text
Security / JS Security (npm audit) (push) Failing after 23s
Lint / JS (eslint) (push) Successful in 26s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 38s
Lint / JS (eslint) (pull_request) Successful in 42s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 28s
Test / JS Tests (jest) (push) Successful in 31s
Replace the remaining dashes users can see: - error page titles and headings, and the browser tab title: "|" or ":"; - the footer: "PULSE | TDS v1.2"; - the 401 message and two toasts: sentence breaks or a comma; - the quick-command history and success line: "|"; - empty table cells: "-"; - the compare hint: "2 to 5". No layout or behaviour changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
66d5240be0 |
Remove em and en dashes from comments, logs, docs and CI
Security / JS Security (npm audit) (push) Failing after 15s
Lint / JS (eslint) (push) Successful in 16s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Notify on failure (pull_request) Skipped
Test / JS Tests (jest) (push) Successful in 15s
Lint / Deploy (pull_request) Skipped
Test / JS Tests (jest) (pull_request) Successful in 17s
Security / JS Security (npm audit) (pull_request) Failing after 20s
Replace every em dash and en dash outside user-visible UI text with a colon, comma, hyphen or "to". The UI strings and the vendored web_template are handled separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
ac6c6c72c5 |
Authenticate WebSocket connections and bind command results to their worker
Security / JS Security (npm audit) (push) Failing after 16s
Lint / JS (eslint) (push) Successful in 18s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Test / JS Tests (jest) (push) Successful in 15s
Lint / JS (eslint) (pull_request) Successful in 13s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 17s
Test / JS Tests (jest) (pull_request) Successful in 15s
Any client that could reach :8080 got a WebSocket connection. Every connection started as a browser client and received every broadcast. worker_connect accepted a missing api_key, so anyone could register under an existing worker's name and receive its commands. command_result was accepted from any connection, so execution logs could be forged. - Classify each upgrade in verifyClient (lib/wsauth.js). A request is: - browser: a trusted-proxy Authelia identity in an allowed group; - worker: Authorization: Bearer <WORKER_API_KEY>; - pending: neither, allowed only while WORKER_AUTH_ENFORCE is off; - rejected (401): everything else, and always for a wrong key. - Only browser connections receive broadcasts. A pending connection may send only worker_connect and is closed after 30 s if it doesn't identify. - worker_connect requires the key. A keyless worker is allowed with a warning until WORKER_AUTH_ENFORCE=1, so existing workers keep working until they are updated. - Record which worker each command was sent to. command_result is accepted only from that worker (matched by DB id, so a reconnect mid-command still works) and only once. pong no longer trusts a client-supplied id. - Worker, heartbeat and Gandalf keys use a constant-time compare. Log an error at startup if WORKER_API_KEY is unset. - The worker sends its key at the handshake and in worker_connect. Closes #38 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
e302234187 |
Only trust Authelia identity headers from TRUSTED_PROXIES
Security / JS Security (npm audit) (push) Failing after 17s
Lint / JS (eslint) (push) Successful in 18s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Lint / JS (eslint) (pull_request) Successful in 18s
Test / JS Tests (jest) (push) Successful in 20s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 17s
Test / JS Tests (jest) (pull_request) Successful in 17s
authenticateSSO and authenticatePage took the user and groups straight from the Remote-* headers, and the server listens on every interface, so any LAN host could connect directly, claim any user and group, and run commands on the workers. It could also write whatever it claimed into the users table. Add TRUSTED_PROXIES (addresses or CIDR ranges) and ignore the identity headers unless the TCP peer is on the list. The peer address is used rather than a forwarding header, which a client could forge. It fails closed: unset means no SSO login succeeds, with a startup warning. Rejected attempts are logged with their source. Worker and Gandalf API-key routes are unchanged. Closes #37 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
eca5cb45b1 |
feat(ui): TDS migration stage 3 — integration fixes, legacy removal, docs
Lint / JS (eslint) (pull_request) Successful in 10s
Lint / Notify on failure (pull_request) Skipped
Lint / Deploy (pull_request) Skipped
Security / JS Security (npm audit) (pull_request) Failing after 10s
Test / JS Tests (jest) (pull_request) Successful in 14s
Lint / JS (eslint) (push) Successful in 11s
Lint / Notify on failure (push) Skipped
Lint / Deploy (push) Skipped
Security / JS Security (npm audit) (push) Failing after 11s
Test / JS Tests (jest) (push) Successful in 10s
- Fix design-system class names that do not exist in base.css (.lt-alert--error, .lt-form-hint); add shared .lt-modal-lg, .lt-field-error and .is-invalid rules - Remove public/index.html and the public/base.js symlink - package.json: start script, correct main - README: vendored design system, Web UI section, new env vars, read-only dev mode Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
cbb91a306d |
feat(ui): TDS migration stage 1 — EJS layout, CSP, vendored design system, shared runtime
- Vendor web_template base.css/base.js (v1.2 bbec859) under public/web_template with sync script - Add views/layout.ejs (fixed upstream EJS comment delimiters, mobile drawer, cmd palette, keys help, WS status, theme toggle) and lib/render.js two-step renderer - Add page routes for /, /workers, /workflows, /executions, /quick, /scheduler (stub views) - helmet with strict nonce CSP (script-src-attr 'none'), /csp-report, report-only toggle - lib/pageauth.js: shared users upsert + HTML 401/403 for page routes - PULSE_DEV_READONLY guard disabling background writers for local testing - public/assets/app.js shared runtime (Pulse namespace, delegated actions, WS singleton, themed confirm modal) and app.css - eslint globals for browser files; ignore vendored assets Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HamVMDrA8RqhyxmUHgiqRp |
||
|
|
f4e44b67a9 |
Fix ESLint errors in test files and npm vulnerabilities
- Add tests/.eslintrc.json to declare jest globals (describe/test/expect) - Fix no-useless-escape in lib/utils.js regex character class - Run npm audit fix: updated path-to-regexp and qs (1 high, 1 moderate fixed) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|
|
6e5f18ea58 |
Add jest test suite, extract pure utils module, fix cron-parser v5 API
- Extract validateWebhookUrl, applyParams, evalCondition, calculateNextRun to lib/utils.js so they can be tested without DB connection - Fix cron-parser v5 API: parseExpression → CronExpressionParser.parse - Add 31 jest tests covering all four utility functions - Add test.yml CI workflow running jest on every push/PR - Add jest devDependency Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |