134 Commits
Author SHA1 Message Date
MengMengCode 11aaa12b71 fix(lxc): parse subuid start without narrowing conversion
CodeQL go/incorrect-integer-conversion flagged int(start) after ParseUint: the bound guard compared against a runtime MaxInt variable, which the analyzer cannot evaluate. Parse the start value directly with Atoi so no narrowing conversion remains, keep the 32-bit ID-space bounds as explicit constants, and add range tests.
2026-11-26 04:58:40 +08:00
MengMengCode 6a10ece431 FIX #76 2026-11-25 02:55:50 +08:00
MengMengCode caec4bd629 feat: add Podman application management 2026-11-14 10:31:14 +08:00
MengMengCode 508360b61f FIX #75 2026-11-14 09:52:50 +08:00
MengMengCode 7ed2c2f511 FIX #74 2026-11-14 09:32:56 +08:00
MengMengCode 058c1ffb17 FIX #73 2026-11-09 03:32:57 +08:00
MengMengCode 9e70cf7e9c feat(api): align versioned API and documentation 2026-11-07 23:33:48 +08:00
MengMengCode 70d33fed69 fix(security): validate transfer ownership IDs 2026-11-05 00:06:07 +08:00
MengMengCode 4cbc4ae608 FIX #72 2026-11-04 23:31:39 +08:00
MengMengCode d2ff069e64 FIX #70 2026-11-04 03:02:32 +08:00
MengMengCode f2c14c01d3 feat: add instance storage workflows and shadcn monitoring charts
Add offline disk growth and managed data disks, portable full backups and
restore, independent clones and batch instance templates, and local ISO
and QCOW2 uploads. Persist task details and metric history in SQLite.

Replace hand-drawn host and instance charts with shadcn/ui Chart and
Recharts, keep numeric values and units together, and preserve responsive
layouts, icons, time ranges and full-sample statistics.

Validation: backend tests and vet; Linux KVM/LXC/API/config/server tests;
frontend and documentation production builds; real disk, reinstall,
backup, clone, upload, task-history and NAT tests; 37 cross-host restore
checks; responsive chart checks and read-only deployed verification.
Guest Windows restore behavior has not been tested on a running Windows VM.
2026-11-03 23:17:46 +08:00
MengMengCode 3717326438 feat(kvm): support manual ISO installs and refine console workflows
Support blank-disk KVM creation, persisted ISO mounting and boot order,
scoped installation-media APIs, and lifecycle queue coordination.

Rework image downloads and third-party sources, add a step-based creation
wizard, and improve responsive dialogs, VNC controls and workload icons.
Keep LAN NAT endpoints usable and reject invalid firewall updates atomically.

Validation: frontend production build; go test ./...; real Alpine ISO disk
installation, DHCP/DNS/HTTPS and TCP/UDP NAT checks across guest restart;
responsive UI and deployed read-only regression checks.
2026-11-03 18:57:27 +08:00
Meng Meng eee3b43b9d refactor: remove built-in security alerts and scanner (#67)
Remove alert pages, APIs, connection scanning and automatic shutdown policies. Ignore legacy alert blocks and skip retired automated stop tasks while preserving firewall, authorization, auditing and expiry/traffic limits.
2026-11-03 01:40:45 +08:00
Meng Meng b94e61b706 feat(network): add optional LXC IPv6 NAT and scoped firewall access (#65) 2026-11-03 00:07:53 +08:00
Meng Meng 3a09f2bd36 fix(security): constrain image downloads and patch docs dependencies (#64)
Require explicit server approval for private image origins, pin and validate every connection and redirect, preserve HTTPS hostname verification, and require administrator capability for versioned image management. Update docs Vite to 6.4.5 and nanoid to 3.3.20.

Validation: full Go tests and vet; Windows/Linux security regressions; real HTTPS redirect download with certificate verification; docs build and npm audit (zero vulnerabilities); amd64/arm64 CI builds; CodeQL Go, JS/TS and Actions all report zero alerts. Private mirrors now require CLICD_IMAGE_MIRROR_ORIGINS, as documented.
2026-11-02 23:24:05 +08:00
Zack f54780600d fix(kvm): safely delete initializing VMs and support Windows QCOW2 (#61)
Cancel and join active KVM initialization before deletion, preserve stable cleanup IDs, and require shutdown/undefine success before removing disks. Use Windows QCOW2 overlays with disk-only boot, preserve ISO installation, normalize Windows metadata, and format IPv6 bind addresses correctly.

Validation: Windows and Linux backend tests; go vet; real KVM Windows golden boot; deletion while concurrency=1 is occupied. Add backend tests to the Build workflow and document BIOS and golden-image configuration limits.
2026-11-02 22:47:44 +08:00
MengMengCode aa926a3a74 FIX #52 2026-09-19 23:52:44 +08:00
MengMengCode c508794a82 FIX #50 2026-09-19 01:34:13 +08:00
MengMengCode 8d0398989e FIX #46 2026-09-19 00:20:12 +08:00
MengMengCode d908b78a04 FIX #43 2026-09-18 22:22:53 +08:00
MengMengCode 43069d9a60 FIX #38 2026-09-18 20:12:52 +08:00
MengMengCode 39ccbad29a release: v1.1.29 2026-08-04 05:17:08 +08:00
MengMengCode a736e156bb fix something 2026-08-04 05:13:45 +08:00
MengMengCode 23a0541f7c feat: rename functions and variables for clarity in safehttp package; enhance URL validation tests 2026-08-04 05:05:45 +08:00
LusineStar 57d6b19c05 fix(kvm): correct Windows FirstLogon drive-scan batch syntax
The unattend FirstLogonCommands runs via 'cmd.exe /c' (command-line context),
where a FOR loop variable must be %d, not the batch-file form %%d. The %%d
form raised '%%d was unexpected at this time', so the else branch that locates
and runs FirstLogon.ps1 from the unattend ISO never executed.

Combined with $OEM$ not being processed from a separate ISO (so
C:\CLICD\FirstLogon.ps1 is never staged), the entire Windows post-install
init was skipped: RDP was never enabled, the firewall was never opened, and
the network profile stayed Public, so the guest dropped all inbound traffic.
The host NAT DNAT for 3389 was correct, but the guest silently dropped it,
making the mapping appear to have no effect.
2026-07-26 21:42:06 +08:00
MengMengCode 73433c035d release: v1.1.28 2026-07-26 04:22:32 +08:00
MengMengCode 5474991a6d feat: implement safe HTTP client and URL validation for secure downloads 2026-07-26 04:19:38 +08:00
MengMengCode 38debab1aa Add custom image handling and access policy management
- Implement tests for custom KVM and LXC image creation, ensuring invalid sources and architecture mismatches are rejected.
- Introduce access policy management in CLI, allowing configuration of allowed sources and trusted proxies.
- Add NAT network configuration with validation for RFC1918 compliance and subnet parsing.
- Create panel access policy management, including normalization and evaluation of access decisions based on client IPs and forwarded headers.
- Develop middleware for enforcing access policies in the server, returning appropriate responses for allowed and denied requests.
- Enhance custom image downloading and validation, ensuring integrity and security of downloaded root filesystem archives.
- Include comprehensive tests for all new functionalities to ensure reliability and correctness.
2026-07-26 04:04:45 +08:00
MengMengCode 8283b88ded release: v1.1.27 2026-07-24 19:00:12 +08:00
MengMengCode 6c9f24bb24 FIX port setting 2026-07-24 18:51:52 +08:00
MengMengCode f2fa2449e9 release: v1.1.26 2026-07-22 17:02:23 +08:00
MengMengCode 53d56be8f9 fix #33 2026-07-22 16:57:44 +08:00
MengMengCode 6bdeafccf2 修复剩余 CodeQL 高危告警 2026-07-18 21:31:31 +08:00
MengMengCode 04cefe0cf1 release: v1.1.25 2026-07-18 21:18:54 +08:00
MengMengCode f28117bc5e 修复了一些已知问题 2026-07-18 21:16:29 +08:00
MengMengCode 2324494dd7 优化了机器创建流程 2026-07-18 20:45:23 +08:00
MengMengCode ebba97f1d6 · 修复了一些已知问题
· 增加了局域网DHCP IP分配适配
· 完善了多盘兼容支持 #17
2026-07-18 19:44:32 +08:00
MengMengCode 3dabd93d2f Fix some problem. 2026-07-17 00:44:47 +08:00
MengMengCode 8bad52bd9e FIX ##30 2026-07-17 00:27:31 +08:00
MengMengCode d05ca8cc4c release: v1.1.24 2026-07-16 23:28:28 +08:00
MengMengCode 48fa14f8a7 FIX #18 2026-07-16 23:27:26 +08:00
MengMengCode 5c6d6eafc9 Support Debian 13.
#29
and fix useage chart data display problem, storage on database instead of localstorage.
2026-07-16 21:24:28 +08:00
MengMengCode 2ecdb5c26f fix Dependabot alerts 2026-07-16 21:01:27 +08:00
MengMengCode ae02241370 KVM的端口转发_ 失效修复 2026-07-16 20:57:07 +08:00
MengMengCode fdd83977fc 支持限制用户可选择的系统 2026-07-16 20:47:26 +08:00
MengMengCode 58d86b5d08 release: v1.1.23 2026-07-16 18:57:49 +08:00
MengMengCode 7307255130 FIX #28 2026-07-16 18:57:15 +08:00
MengMengCode 61137b837d release: v1.1.22 2026-07-16 16:58:19 +08:00
MengMengCode 47a09aa177 release: v1.1.21 2026-07-16 15:13:53 +08:00
MengMengCode 292686a19a Fix some problems. 2026-07-16 15:13:35 +08:00