v4.1.22026-11-04
Spug 4.1.2 fixes WebSocket blocking that could make terminals unresponsive after upgrading to 4.x.
- Log subscriptions and slow SSH connections no longer block input or notifications on other connections.
- Continuous SSH output is sent in bounded batches; large input is sent completely, and Chinese characters are preserved across batches.
- Reader threads, SSH sessions and Redis subscriptions are released when connections close or the application is cancelled.
Validation: 10 regression tests and real Redis / SSH integration with 48 subscriptions and two dispatch workers.
Upgrade the all-in-one Docker image:
``bash
docker compose pull && docker compose up -d
`
Images: openspug/spug:4.1.2 and ghcr.io/openspug/spug:4.1.2 (amd64 / arm64). Source installations should update to v4.1.2` and restart the WebSocket service. No database schema changes.
v4.1.12026-10-12
Spug 4.1.1 is a security release. It fixes six security issues reported privately through GitHub, and updates GitPython, python-ldap and axios to versions without known vulnerabilities. All 4.x installations should upgrade; details are in the security advisories.
``bash
docker compose pull && docker compose up -d
`
Behaviour changes
Most fixes are invisible, but a few tighten what Spug accepts. Check these before upgrading if you use the open API or Webhooks:
- The Webhook dialog of an application shows the Secret Token to administrators only; other users are asked to get it from an administrator
- POST /apis/exec/<templateid>/ only runs on hosts preset in the template. hostids can narrow that set but not extend it, and a template without preset hosts can no longer be triggered through the API
- Parameter names passed to /apis/exec/ and /apis/pipeline/ must be valid environment variable names (letters, digits, _ and -, not starting with a digit)
- File distribution requires absolute source and target paths without spaces or shell special characters
- Git repository addresses must use http(s)://, ssh://, git://, file://, the user@host:path form or an absolute local path
- The host API no longer returns independent private keys. When editing a host that has one, it is kept unless you remove it in the form
- Monitoring tasks of the process and custom script types, and their test button, require access to the target hosts, as batch execution does. Administrators may want to review existing tasks of these types
Dependencies
- GitPython 3.1.40 → 3.1.62
- python-ldap 3.4.3 → 3.4.8
- axios 0.21 → 0.33 (web UI)
Installations from source should run pip install -r requirements.txt in spug_api` after updating the code.
Thanks to White0xdi3, 5ud0 (Tarmo Technologies) and hackchang for reporting these issues responsibly.
v4.1.02026-10-10
Spug 4.1 adds an all-in-one Docker image, open APIs for automation, retries for failed hosts and pipeline run history, and fixes background services that kept restarting on new installations.
New: all-in-one Docker image
openspug/spug (also ghcr.io/openspug/spug) now ships Spug 4 with the back end and the web UI built in, for amd64 and arm64:
``bash
curl -fsSLO https://raw.githubusercontent.com/openspug/spug/4.0/docker-compose.yml
docker compose up -d
docker compose logs spug | grep password
`
- Nothing is downloaded when the container starts, so it also works on isolated networks
- The database schema is created and upgraded automatically on start, and the first admin account gets a random password printed to the log (or SPUGADMINPASSWORD)
- Upgrade with docker compose pull && docker compose up -d
- The Compose file no longer uses privileged: true; sshfs-based file distribution needs only SYS_ADMIN and /dev/fuse
- TZ sets the time zone of scheduled tasks and timestamps
- docker run -d -p 8080:80 openspug/spug:4.1 starts a single container on SQLite for a quick look
The legacy 3.x all-in-one image (MariaDB inside the container) remains available as openspug/spug:3.3.2; a 4.x container refuses to start on its volume and leaves it untouched. openspug/spug-service is unchanged. See the installation guide.
New features
- Open API: trigger batch execution templates and pipelines and query their results (#718)
- Open API: read-only host inventory, usable directly as an Ansible dynamic inventory (#739)
- Batch execution: retry a single failed host, or all failed hosts at once (#722)
- Pipelines: execution history with console output replay
Fixes
- Background services (task worker, scheduler, monitor) restarted every 5 seconds on installations that pulled redis-py 8, which made scheduled tasks and monitors unreliable; redis-py is now kept below 8
- WebSocket consoles logged Attempt to send on a closed protocol when the browser had already closed the connection (#758)
- Pipeline parameters with a default value were reported as missing when running the pipeline, and were not applied when the pipeline was triggered through the API
- Replayed pipeline runs lost the final state of their nodes
- The dashboard alert trend left out the current day, and filtering it by type showed nothing in the English interface
- Host disk collection ignored disks smaller than 10 GB and listed ram / loop / cdrom devices (#721)
- In-app documentation links pointed to an address that no longer serves the documentation
Other
- Added a security policy (SECURITY.md`) describing how to report vulnerabilities
- The bug report template accepts reports in English or Chinese
Full changelog: https://github.com/openspug/spug/compare/v4.0.1...v4.1.0
v4.0.12026-10-10
A bug-fix release for 4.0.0. Everyone on 4.0.0 should upgrade, in particular installations with non-admin accounts, accounts upgraded from 3.x, or LDAP login.
Fixes
- Accounts that are not superusers (including accounts upgraded from 3.x and LDAP accounts) could not log in (the JSON object must be str, bytes or bytearray, not dict); the dashboard, host groups and the deploy / config / app lists failed the same way
- Creating a role failed with Role() got unexpected keyword arguments: 'created_by'
- LDAP login failed with unexpected keyword argument 'port' while the LDAP settings saved by 3.x were still in place; they are now converted automatically, save them once in System Settings to finish the migration
- The LDAP user list kept using the previous settings after the LDAP settings were saved again
- The LDAP connection test wrote the bind password to the service log
Docker
The Compose example now uses the openspug/spug-service:4.0 tag, so 4.0.x patch releases only need a new SPUGDOCKERVERSION.
Full changelog: https://github.com/openspug/spug/compare/v4.0.0...v4.0.1
v4.0.02026-10-10
Spug 4.0 is a major release: a new Pipelines module, credential management, and a fully bilingual English / Simplified Chinese interface, on a back end moved to Django 4.2 and channels 4.
Highlights
- Pipelines: orchestrate parameter, build, remote command, data transfer, data upload and DingTalk / Feishu / WeCom / Push Assistant notification nodes, with success / failure / always conditions and a live console (docs)
- Credential management: keep passwords and private keys in one place and share them; pipeline build nodes can reference them (docs)
- English / Simplified Chinese interface, switchable in the header or on the login page; console output and API error messages are translated as well
Improvements
- Deploy requests: canary release to selected hosts, retry release on failed hosts only, and a new "canary succeeded" status
- Push Service settings: bind a Push Assistant account to send SMS, phone call, email and WeChat messages from pipelines
- Feishu channel for alert contacts, deploy results and scheduled task results; DingTalk / Feishu bot signing
- Guided key / password setup for the Git repository of a deploy configuration; pipeline build nodes can use stored credentials for private repositories
- Import hosts from Alibaba Cloud / Tencent Cloud, verify and sync host details (CPU, memory, disks, expiry) in batch, export hosts to Excel
- Standard deployments can update configuration center values with SPUGSET and pass build-stage variables to hosts with SPUGGEV_*
- SSH compatibility with dash / ash shells and Ed25519 / ECDSA keys; better batch execution and deployment on Windows hosts
- Front end upgraded to antd 4.24 / xterm 5
Security fixes
- LDAP filter injection in the login form (#737, #738)
- Command injection through the address of a ping monitor (#741)
- LDAP login with a whitespace-only password turning into an unauthenticated bind
Upgrading from 3.x
4.0 requires Python 3.8+, Django 4.2, channels 4 and Redis 5.0+, so 3.x runtimes and Docker images cannot run it. Back up the database first and follow the upgrade guide.
Full changelog: https://github.com/openspug/spug/compare/v3.4.0...v4.0.0
v3.4.0(2026/06/12)2026-06-12
新增功能及改进
- 新增飞书告警渠道支持
- 钉钉和飞书告警测试支持携带 webhook secret
- 修复 LDAP 登录 filter 未转义的安全风险
- 升级部分存在安全风险的 Python 和前端依赖
v3.3.3(2024/10/14)2024-10-14
新增功能及改进
- 🔧 发布记录的发布时间改为完整日期
- 🐞 修复文档链接错误问题
v3.3.2(2023/11/29)2023-11-29
新增功能及改进
- 🔧 优化升级依赖版本兼容性
v3.3.1(2023/11/23)2023-11-23
新增功能及改进
- 🔧 优化推送助手集成体验
v3.3.0(2023/11/16)2023-11-16
新增功能及改进
- 🌟 集成了推送助手,提供监控和任务的短信、电话告警支持 参考文档
- 🐞 修复主机列表弹框某些情况下未显示主机信息的问题 by @allwaysLove