1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 11:16:47 +00:00
Commit graph

43 commits

Author SHA1 Message Date
catborise
5c68050ce0 build: LDAP login's packages are optional
django-auth-ldap, python-ldap and pyasn1 move to
conf/requirements-ldap.txt. Installs without LDAP no longer need the
openldap and sasl headers that pip builds python-ldap with; the
installer and the README's system packages drop them, and the README's
LDAP section installs them with that file. The settings already work
without the module.

The Docker image and dev/requirements.txt keep LDAP, so CI still builds
and audits python-ldap.
2026-10-18 22:50:11 +03:00
catborise
837c5468ec build: systemd runs the panel on hosts instead of supervisor
The installer and the manual installation install four systemd units
(webvirt-cloud, webvirt-novncd, webvirt-socketiod, webvirt-worker) that
run as the web server's user with absolute paths and read
/etc/default/webvirtcloud. gunicorn, socketiod and the worker stop with
KillMode=mixed, so they wind down their own children. supervisor, its
installer code and the contributed systemd files go; the README gets
the update, rollback and a one-time move from supervisor, and the
installer refuses to run over a supervisor install. Docker keeps runit;
novncd's runit script is the one-line form of the others.
2026-10-17 23:18:26 +03:00
catborise
3be3b4b2cc fix(install): openSUSE installs get python-ldap and pyasn1 without known flaws
The installer's venv sees the system site packages, and pip keeps a
system package that meets a requirement. On openSUSE Leap 15.6 the LDAP
login thus ran on the distro's python-ldap 3.4.4 (CVE-2025-61911, a
filter-escaping bypass, and CVE-2025-61912) and pyasn1 0.5.0
(CVE-2026-30922 and others), which django-auth-ldap loads through
ldap.controls. python-ldap>=3.4.5 and pyasn1>=0.6.4 make pip install
fixed copies in the venv. python-ldap builds there, so openldap2-devel
joins the openSUSE package lists (installer, manual and development
setup) and the update steps. Checked in a fresh Leap 15.6 container
with the installer's package list: 3.4.8 and 0.6.4 from the venv,
ldap.controls imports.
2026-10-11 22:45:52 +03:00
catborise
9f5e8fe1c4 fix(settings): ALLOWED_HOSTS lists the server's names instead of accepting any host 2026-10-07 16:31:51 +03:00
catborise
bbb9f77cb1 fix(installer): a re-run keeps settings, key and nginx config, and restricts modes 2026-10-07 15:01:59 +03:00
catborise
7b53493800 fix: stop printing secrets during installation
- The generated admin password is written to data/admin_password (mode
  0600) instead of being printed, so it no longer ends up in the install
  log or `docker logs`. If the file cannot be written it is printed as
  before, so the admin is never locked out.
- webvirtcloud.sh no longer echoes the generated SECRET_KEY.
- install.sh creates the install log with mode 0600.
2026-10-02 22:47:56 +03:00
catborise
7435d66492 fix(security): resolve reviewer findings on secret key baking, host symlinks, and injection safety
- Prevent baking SECRET_KEY into Docker image during collectstatic
- Persist runtime SECRET_KEY in data/secret_key volume or read from environment
- Remove sed-based injection of CSRF_TRUSTED_ORIGINS in favor of native os.getenv
- Avoid overwriting system python3 symlink on SUSE; auto-detect python 3.10+ binaries
- Make /etc/hosts entry in installer idempotent
- Add security notice regarding compute node VNC/SPICE port firewall isolation
2026-09-25 22:06:16 +03:00
catborise
f5e5ff2759 fix(install): refine openSUSE Leap dependencies and streamline installer execution
- Add Python 3.11 package detection and alternatives configuration for openSUSE/SLES
- Relax libvirt-python and lxml minimum versions in requirements to match distro-provided packages
- Gracefully handle missing hostname command in minimal/containerized SUSE environments
- Prevent redundant git clone if workspace already exists in target path
2026-09-25 20:44:52 +03:00
catborise
88288f965d feat(install): add openSUSE and SLES 15 distribution support and compute bootstrap 2026-09-25 20:03:02 +03:00
catborise
8306f0d761 fix(ci): fix linter workflow dependencies, python version, and shellcheck issues 2026-09-25 16:09:01 +03:00
catborise
070e3baf75 refactor(install): harden bootstrap script and restore retspen upstream URLs 2026-09-25 15:53:32 +03:00
catborise
79c6bd4c62 fix(install): modernize Ubuntu and Debian installer script for 24.04 and Debian 12 compatibility 2026-09-25 13:49:27 +03:00
catborise
7a9b3c9e13 feat(dev): improve Rocky Linux and RHEL compatibility for local development
- Relax libvirt-python and lxml version pins to allow precompiled distro packages
- Add PEP 508 environment marker to crypt-r (python_version >= 3.13) to avoid unnecessary C compilation on Python 3.12
- Add stdlib crypt fallback when crypt_r is not available in instances/views.py
- Make LDAP imports and configuration optional in settings.py.template
- Add --system-site-packages and missing packages in webvirtcloud.sh for RHEL/CentOS
- Update README with working Rocky Linux / RHEL / Fedora installation and local dev setup
2026-09-25 09:45:54 +03:00
catborise
7047130f3e
Merge pull request #680 from cpasqualini/fix-missing-pip3-in-debian
Fix WVC Install Script: missing pip3 on Debian
2026-09-24 19:17:27 +03:00
catborise
e8974248ee
Merge pull request #685 from resse/fix/ubuntu-ldap-dev-headers
Add missing libldap2-dev/libsasl2-dev to Ubuntu package list
2026-09-24 19:16:33 +03:00
Mikhail Bobkov
b0f978e1db Add missing libldap2-dev/libsasl2-dev to Ubuntu package list
conf/requirements.txt requires django-auth-ldap/python-ldap (added in
#600), which needs libldap2-dev and libsasl2-dev headers to build its
C extension. The Debian branch's PACKAGES list already has both, but
the Ubuntu branch was never updated to match, so a fresh install on
Ubuntu fails to build python-ldap's wheel, which aborts the entire
`pip install -r requirements.txt` — Django itself never gets
installed, and the app fails to start. Verified fix on a real Ubuntu
24.04 host.
2026-09-24 18:27:53 +04:00
Mikhail Bobkov
1f62f150a0 Add Ubuntu 24.04 support to installer version check
webvirtcloud.sh's Ubuntu branch only matched 18.04/20.04/22.04, so
running it on 24.04 (Noble) silently no-ops the entire install block
instead of installing anything. Verified end-to-end on a real 24.04
host: with this check extended, the rest of the Ubuntu install path
(package list, venv setup, nginx/supervisor config) works unmodified.
2026-09-24 18:27:27 +04:00
Carlos Pasqualini
3b2585c1e0 Fix WVC Install Script: missing pip3 on Debian 2026-04-30 12:51:22 -03:00
catborise
9324b9c36d update installation scripts 2025-07-01 15:07:02 +03:00
nono
9e4dc3256e pip install supervisor 2024-08-02 09:41:06 +08:00
catborise
d8fe9c2f64 add user to libvirt group also 2024-02-28 08:15:02 +03:00
catborise
f86eb78cbf add smbios package to debian install 2024-02-13 14:33:20 +03:00
MisterBlueBear
2f24f77368 Install script accepts default hostname 2023-11-01 20:35:15 -04:00
Mark
5c6bcbe610
Fixes issue #614: Quick Install overrides nginx upstream wssocketiod port 2023-10-26 22:18:17 +02:00
catborise
9755f307a6 add libsasl2-dev and libldap2-dev packages for Debian 12 2023-10-06 16:28:30 +03:00
catborise
cedb7beedd set CSRF TRUSTED ORIGIN modification on settings.py 2023-09-06 09:28:50 +03:00
catborise
46514d0897 add collect static command for rest/swagger ui 2022-08-24 10:29:29 +03:00
catborise
0680f02240 remove css urls, add missing socketio requirements, fix cookie import, and rearrange socketiod connetion 2022-07-21 13:31:37 +03:00
Gaëtan Ferez
65dce10ce1 Implement Libvirt Serial Console as Console on WebVirtCloud 2022-07-17 13:25:47 +02:00
catborise
12f0c70069
Merge pull request #503 from catborise/master
add alma linux for know distributions
2022-05-18 14:08:26 +03:00
catborise
995b333038 add alma linux for know distributions 2022-05-18 14:01:35 +03:00
herengui
9ddba262a4 Enhanced system support
UOS is not a specific os, but a series of different OS, they use either dnf or apt package manager

Signed-off-by: herengui <herengui@uniontech.com>
2022-05-18 17:23:29 +08:00
catborise
448c66110b
Merge pull request #497 from catborise/master
update requirements
2022-04-25 08:14:28 +03:00
Lv Genggeng
73201ebc8f add support openEuler
Signed-off-by: Lv Genggeng <lvgenggeng@uniontech.com>
2022-03-14 10:19:24 +08:00
catborise
2154f55e8b fix yes/no question confilict 2022-03-09 13:53:50 +03:00
herengui
5b685a100e add support uos
Signed-off-by: herengui <herengui@uniontech.com>
2022-03-03 10:59:20 +08:00
王卿
7858825258
webvirtcloud.sh support rockylinux 2022-02-23 16:51:05 +08:00
Adrien Delle Cave
9065922eb8 [TYPO] Removed useless = in nginx server_name variable 2021-04-04 01:31:15 +02:00
Adrien Delle Cave
b2068592f5 [BUG] Fixed sed variables and nginx fqdn config 2021-03-12 12:38:52 +01:00
catborise
59af676f68 fix centos 8 bootstrap script to handle new libvirt start mechanism 2021-01-25 16:53:09 +03:00
catborise
1f642a4381 fix linter problems-2: bash 2020-10-17 23:30:00 +03:00
catborise
922a8e62d1 fix some linter warnings 2020-09-25 15:57:17 +03:00
catborise
7dd9127572 Automatic install option for Webvirtcloud is added (beta) 2020-08-21 18:38:10 +03:00