GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — v3.11.0: VortexPanel software builds (signed catalog, R2, automatic p… · BrowserlessAPI/VortexPanel@da12a67

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • RELEASE_NOTES_v3.11.0.md
  • RELEASE_NOTES_v3.11.4.md
  • VERSION
  • app.py
  • panel/routes
    • modules.py
    • os_utils.py
  • web
    • static/js
      • app.js
    • templates
      • index.html
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎RELEASE_NOTES_v3.11.0.md‎

Copy file name to clipboard
+122Lines changed: 122 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
# VortexPanel 3.11.0
2+
3+
All App Store software and all VortexPanel Apps now come from the VortexPanel
4+
download server (Cloudflare R2): built, tested and signed by an automated
5+
pipeline, installed and updated from one place, without a panel release.
6+
7+
## New: VortexPanel software builds
8+
9+
The App Store installs and updates server software from the VortexPanel download
10+
server (`https://dl.vortexpanel.dev`) for every supported system, instead of the
11+
operating system's package sources.
12+
13+
| Kind | Software |
14+
|---|---|
15+
| Web servers | Nginx (with the ModSecurity module), Apache2, OpenLiteSpeed, Caddy, Caddy WAF |
16+
| Databases | MySQL, MariaDB, PostgreSQL, MongoDB, Redis, Memcached |
17+
| Languages and tools | PHP 8.1 to 8.5, Node.js, Python, Composer, Docker (with Compose and Buildx), Supervisor |
18+
| Security | Fail2ban, ClamAV, ModSecurity (v3 library for Nginx, mod_security2 in the Apache build) |
19+
| DNS and FTP | BIND9, DDNS Manager (ddclient), Pure-FTPd |
20+
| Mirrored release files | phpMyAdmin, Adminer, Roundcube, Anubis Bot Protection, ffmpeg, OWASP Core Rule Set (ModSecurity WAF rules) |
21+
22+
- **Automatic pipeline.** Every 24 hours a GitHub Actions workflow:
23+
- finds new upstream releases
24+
- has them reviewed by AI (security fixes, CVEs, breaking changes, release notes)
25+
- builds them for AlmaLinux / Rocky / RHEL / Oracle / CentOS Stream / CloudLinux
26+
8, 9 and 10, Ubuntu 22.04 and 24.04 and Debian 12 and 13, on x86_64 and ARM
27+
- installs each build on a fresh system with the panel's own engine and
28+
smoke-tests it
29+
- uploads the builds to R2 and signs the catalog
30+
- **Mirrored tools.** Tools installed from a released file (phpMyAdmin, Adminer,
31+
Roundcube, Anubis, ffmpeg, OWASP CRS) are copied to R2, checked against the
32+
upstream checksum where one is published, and installed only from that copy
33+
with the checksum from the signed catalog.
34+
- **Signed and checked.** Panels accept only a catalog signed with the VortexPanel
35+
key and never an older one, and check every download against its SHA-256.
36+
- **Safe updates.**
37+
- The new version is installed next to the current one in
38+
`/usr/local/vortex/<app>/<version>`, started and health-checked. If it does not
39+
start, the previous version comes back automatically.
40+
- Databases: the data folder is copied before an update (the update is refused
41+
when there is not enough free space) and put back if the new version fails.
42+
Updates stay inside one release line (for example MySQL 8.4, PostgreSQL 17);
43+
a new major version is never installed automatically.
44+
- Caddy and Caddy WAF: the new version must accept the server's own Caddyfile (sites,
45+
WAF directives and rule files) before anything changes, and every site must answer
46+
as it did before the update, or the update is rolled back automatically. Caddy WAF
47+
also follows caddy-waf's own releases (published as a rebuild, e.g. 2.11.8.1).
48+
- The previous version is kept for a one-click **Roll back**.
49+
- Configuration files (`/etc/nginx`, `/etc/php/X.Y`, `/etc/mysql`, ...) are never
50+
replaced.
51+
- **Release channels.** Security releases go to everyone at once; other releases
52+
spend 24 hours on the beta channel first. Withdrawn releases show a
53+
"Withdrawn - roll back" button.
54+
- **Software updates panel** (App Store): which system this server is, catalog
55+
status, channel (stable or beta), automatic updates (security only, all, or
56+
off), alerts, and recent activity. Panels check every 6 hours
57+
(`vortexpanel-softs.timer`).
58+
- **One App Store.** Install opens a dialog with the version list and what will
59+
happen. Software installed earlier from the OS packages is taken over when the
60+
same version line is installed or a newer version is offered as **Update to vX**
61+
(Debian and Ubuntu): the build is verified first, the OS packages are removed with
62+
configuration, websites and data kept, and they come back if the build does not start.
63+
- **Apache with mod_php** is moved to PHP-FPM during the takeover (each PHP version
64+
it used must have PHP-FPM; the App Store says which to install first).
65+
- **OpenLiteSpeed from the LiteSpeed repository**: its configuration and WebAdmin
66+
login are copied before the package is removed and put back exactly.
67+
- A takeover is refused, with the reason and nothing changed, when it would remove
68+
unrelated packages or when the data belongs to another database (MySQL data
69+
under MariaDB, a PostgreSQL cluster of another major version).
70+
- **Every system checked against upstream.** Before building, the pipeline reads
71+
upstream's own download index (MongoDB, MariaDB, MySQL, ClamAV) for the exact file
72+
and checksum per system. A system upstream publishes nothing for is marked "not
73+
offered" and keeps its OS packages; it is never a failed build.
74+
- **MariaDB on ARM** is compiled from the release's source for every system.
75+
- **Builds the system cannot run are never offered.** Each build records the newest
76+
glibc its programs need; a server with an older glibc (for example AlmaLinux 8 on
77+
ARM for OpenLiteSpeed's official ARM binaries) keeps its OS packages instead.
78+
- **Signed download server switched on**: `panel/trust/softs.json` names
79+
`https://dl.vortexpanel.dev` and the VortexPanel release key.
80+
- **Failed systems are built again after a fix.** A system whose build failed three
81+
times is tried again whenever its recipe changes.
82+
83+
## New: VortexPanel Apps from the cloud
84+
85+
Website Statistics, PHP Security, System Hardening, Network Threat Detection and
86+
Network Scan Detection are checked and published by the same pipeline whenever
87+
their code changes. Panels show "Update to vX" and install the new version
88+
without a panel release.
89+
90+
## Fixes
91+
92+
- **App Store versions** show only the version number (for example `8.4.13`),
93+
without descriptions or extra space.
94+
- **Website Statistics 1.1.0** counts only requests for the website's own domain
95+
names. Other domains pointed at the server (for example an embedded player on
96+
another site) are listed separately under "Other domains" and no longer show up
97+
as your pages and visitors. New setting: close connections for host names no
98+
website on the server serves.
99+
- **PHP Security 1.1.0** builds Snuffleupagus 0.14.0, which supports PHP 8.5
100+
(the older release failed on PHP 8.5 with `php_setcookie`). Servers with an
101+
older build see "older release - rebuild".
102+
- **CDN Manager** has an on/off switch in the App Store. Off hides its page and
103+
closes its API; saved provider settings are kept.
104+
- **Faster panel.** After login every page starts loading at once (before, all pages
105+
waited for the App Store list); the page in the address opens first; the App Store
106+
shows its last list immediately and checks all apps at the same time; panel files
107+
stay in the browser cache until the next release.
108+
- **No login screen or dialog flashes** while the panel loads or restarts: the
109+
session check is repeated for up to a minute before the login screen is shown,
110+
and dialogs (Login Audit Log, Import Website, file picker, ...) stay hidden until
111+
the panel has started.
112+
- **App Store after an install** shows the new state in every panel process at once
113+
(before, other processes could show the old list for up to 30 seconds).
114+
- **Anubis Bot Protection** installs from the VortexPanel download server.
115+
- **ClamAV from the OS packages**: the first signature download no longer fails with
116+
"Failed to lock the log file".
117+
118+
## Upgrade
119+
120+
Upload `vortex_upgrade_3.11.0.py` to `/root/` and run `python3 /root/vortex_upgrade_3.11.0.py`.
121+
It upgrades from 3.10.0 and from the 3.11.1 - 3.11.4 test releases. Setup of the
122+
build pipeline: `softs/README.md`.
Collapse file

‎RELEASE_NOTES_v3.11.4.md‎

Copy file name to clipboardExpand all lines: RELEASE_NOTES_v3.11.4.md
-25Lines changed: 0 additions & 25 deletions
This file was deleted.
Collapse file

‎VERSION‎

Copy file name to clipboard
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.11.4
1+
3.11.0
Collapse file

‎app.py‎

Copy file name to clipboardExpand all lines: app.py
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,6 +480,15 @@ def filter_site_lists(response):
480480
pass
481481
return response
482482

483+
# -- Browser cache for versioned files ------------------------------------
484+
# /static/...?v=<panel version>: the address changes with every release, so the
485+
# browser keeps the file and does not ask again on every page load.
486+
@app.after_request
487+
def cache_static(response):
488+
if request.path.startswith('/static/') and request.args.get('v') and response.status_code == 200:
489+
response.headers['Cache-Control'] = 'public, max-age=31536000, immutable'
490+
return response
491+
483492
# -- Security headers on every response -----------------------------------
484493
@app.after_request
485494
def add_security_headers(response):
Collapse file

‎panel/routes/modules.py‎

Copy file name to clipboardExpand all lines: panel/routes/modules.py
+11-1Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2917,6 +2917,13 @@ def list_modules():
29172917
if not req(): return jsonify({'ok':False}), 401
29182918
cached = panel_cache.get('modules_list')
29192919
if cached: return jsonify(cached)
2920+
if request.args.get('fast'):
2921+
# first paint: the last list built (any worker, any age) at once; the page
2922+
# asks for the fresh one right after
2923+
snap = panel_cache.snapshot('modules_list')
2924+
if snap:
2925+
return jsonify(dict(snap, stale=True))
2926+
t0 = time.time()
29202927
result = []
29212928
try:
29222929
from panel import versions as _live
@@ -3054,7 +3061,10 @@ def _row(base_m):
30543061
response['tested'] = appversions.status() if appversions else {}
30553062
except Exception:
30563063
response['tested'] = {}
3057-
panel_cache.set('modules_list', response, ttl=30)
3064+
panel_cache.set('modules_list', response, ttl=30, snapshot=True)
3065+
took = time.time() - t0
3066+
if took > 3:
3067+
print(f'[VortexPanel] App Store list took {took:.1f}s', flush=True)
30583068
return jsonify(response)
30593069

30603070
def _install_blocked(mod_id):
Collapse file

‎panel/routes/os_utils.py‎

Copy file name to clipboardExpand all lines: panel/routes/os_utils.py
+47-4Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,18 +144,61 @@ def pkg_install(packages, extra_flags=''):
144144
import time as _time
145145

146146
class _TTLCache:
147-
"""Simple in-process TTL cache for expensive read-only endpoints."""
147+
"""In-process TTL cache for expensive read-only endpoints.
148+
149+
The panel runs 4 gunicorn workers, each with its own copy. An invalidation is
150+
written to a small stamp file as well, so every worker drops entries older than
151+
it (before, the other workers kept serving the old App Store list for up to
152+
30 seconds after an install). The last value of a key can also be kept on disk
153+
(snapshot) so a page shows it at once while the fresh one is built."""
154+
STAMP_DIR = '/opt/vortexpanel/data/cache'
155+
148156
def __init__(self):
149157
self._store = {}
158+
159+
def _stamp(self, key):
160+
try:
161+
return os.path.getmtime(os.path.join(self.STAMP_DIR, key + '.stale'))
162+
except OSError:
163+
return 0.0
164+
150165
def get(self, key):
151166
item = self._store.get(key)
152-
if item and (_time.monotonic() - item['ts']) < item['ttl']:
167+
if item and (_time.monotonic() - item['ts']) < item['ttl'] and item['wall'] > self._stamp(key):
153168
return item['val']
154169
return None
155-
def set(self, key, val, ttl=30):
156-
self._store[key] = {'val': val, 'ts': _time.monotonic(), 'ttl': ttl}
170+
171+
def set(self, key, val, ttl=30, snapshot=False):
172+
self._store[key] = {'val': val, 'ts': _time.monotonic(), 'wall': _time.time(), 'ttl': ttl}
173+
if snapshot:
174+
try:
175+
import json as _json
176+
os.makedirs(self.STAMP_DIR, mode=0o700, exist_ok=True)
177+
tmp = os.path.join(self.STAMP_DIR, f'{key}.json.{os.getpid()}')
178+
with open(tmp, 'w') as f:
179+
_json.dump(val, f)
180+
os.replace(tmp, os.path.join(self.STAMP_DIR, key + '.json'))
181+
except (OSError, TypeError, ValueError):
182+
pass
183+
184+
def snapshot(self, key):
185+
"""The last value written with snapshot=True (any age), or None."""
186+
try:
187+
import json as _json
188+
with open(os.path.join(self.STAMP_DIR, key + '.json')) as f:
189+
return _json.load(f)
190+
except (OSError, ValueError):
191+
return None
192+
157193
def invalidate(self, key):
158194
self._store.pop(key, None)
195+
try:
196+
os.makedirs(self.STAMP_DIR, mode=0o700, exist_ok=True)
197+
with open(os.path.join(self.STAMP_DIR, key + '.stale'), 'w'):
198+
pass
199+
os.utime(os.path.join(self.STAMP_DIR, key + '.stale'))
200+
except OSError:
201+
pass
159202

160203
panel_cache = _TTLCache()
161204

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.