Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
114 commits
Select commit Hold shift + click to select a range
d781e5b
fix(auth): an unreachable database no longer switches logins off
Nov 22, 2026
2f98b04
fix(infraviewer): a migrated VM is listed on the node it runs on now
Nov 22, 2026
cd35e73
fix(proxy): retention leaves checksums that verify (proxy 0.6.3)
Nov 22, 2026
f73ebd2
fix(proxy): links in a backed-up filesystem never lead into the proxy…
Nov 22, 2026
953dacc
fix(migrations): a fresh install can run its migrations again
Nov 22, 2026
e8493a8
fix(collector): a database outage no longer stops collection for good
Nov 22, 2026
869d9e7
fix(ui): unapplied settings no longer follow you to another cluster
Nov 22, 2026
13f1f5a
fix(foresight): report, What-If, settings and 'Run analysis now' use …
Nov 22, 2026
e67d6fa
fix(access): handing out access needs user management on that scope
Nov 22, 2026
95d1e1d
test: the stack integration tests follow HCM_BASE and skip without a …
Nov 22, 2026
6b8f8f8
fix(infraviewer): a cluster where every VM is off still lists its VMs
Nov 22, 2026
cd40b1f
fix(clusters): colour, name and address are checked on every write
Nov 22, 2026
99ff926
ci: run the skipped tests and apply the migrations twice on a real Po…
Nov 22, 2026
513101d
fix(installer): every module gets its API tokens, also in advanced mode
Nov 22, 2026
402d5b8
fix(compose): the internal APIs are published on this host only
Nov 22, 2026
edc32c4
docs: installing by hand sets SC_REPO_PATH, plus notes for Macs and n…
Nov 22, 2026
7889f8e
docs: names and facts that no longer matched the product
Nov 22, 2026
134ae9b
chore: William David van Collenburg holds the copyright, under Apache…
Nov 22, 2026
765a0f2
build: a rebuild months from now installs what this release was teste…
Nov 22, 2026
eb5830d
fix(proxy): a connection that never speaks TLS no longer freezes the …
Nov 22, 2026
17307d1
fix(proxy): a prune that stops halfway can be run again without losin…
Nov 22, 2026
db20b73
fix(proxy): chains pruned by an older proxy verify again, healed once…
Nov 22, 2026
28327b9
fix(proxy): a mount is not unmounted while a download still reads fro…
Nov 22, 2026
40e7136
fix(proxy): a zip download holds one 1 MiB piece of a file in memory,…
Nov 22, 2026
fad730b
fix(proxy): files named outside Latin-1 download with their own name
Nov 22, 2026
9b989fa
fix(proxy): finished jobs no longer keep the target password, and old…
Nov 22, 2026
1eda4e4
fix(proxy): cancel stops a queued job, and only a job that really sto…
Nov 22, 2026
3d7f893
fix(proxy): a write error at writeback fails the backup instead of pa…
Nov 22, 2026
905f7e3
fix(proxy): an nbd slot that may still be connected never goes back t…
Nov 22, 2026
32b25d7
fix(proxy): a network check after an interrupted one sets its probe a…
Nov 22, 2026
4c518f1
fix(proxy): the API token is compared in constant time
Nov 22, 2026
e9af770
fix(proxy): a 404 in file-level recovery says what is missing
Nov 22, 2026
1ff80c1
fix(console): a refused console connection no longer puts the HyperCo…
Nov 22, 2026
07a4056
fix(console): a read-only console passes screen updates only, whateve…
Nov 22, 2026
5c1224c
fix(console): a failing audit record closes the cluster websocket; ev…
Nov 22, 2026
aa43c68
fix(backup): a folder's directory on its target is stored on the fold…
Nov 22, 2026
95689cc
fix(backup): plans need a VM that exists, and imports stay inside the…
Nov 22, 2026
c4bf0d8
fix(backup): a backup run releases its proxy lock exactly once, whate…
Nov 22, 2026
3167ee8
fix(backup): a point the proxy wrote but HCM never recorded no longer…
Nov 22, 2026
cfbd96b
fix(backup): backups and retention follow each chain's own target aft…
Nov 22, 2026
127ea65
fix(backup): export retention only prunes the exports of its own VM, …
Nov 22, 2026
f23abfd
fix(backup): long jobs get their own thread pool and a one-off job is…
Nov 22, 2026
9a6108d
fix(backup): an interrupted or failed restore no longer leaves stagin…
Nov 22, 2026
b228e13
fix(backup): a restored VM gets back its NIC type and its disks' cach…
Nov 22, 2026
f77b9d3
fix(backup): waiting for a proxy job rides out a network blip and can…
Nov 22, 2026
9d25896
fix(backup): a VM change set no longer leaves a VM off after a late g…
Nov 22, 2026
7b26fad
fix(backup): a finished restore removes only its own directory, and t…
Nov 22, 2026
3c47fad
fix(backup): a proxy update waits for no backup and never restarts a …
Nov 22, 2026
18108fe
fix(backup): a standalone plan whose run time passed while the servic…
Nov 22, 2026
1bf006b
fix(backup): a VM edit refuses to grow the NVRAM, vTPM or a CD-ROM
Nov 22, 2026
2900c3e
fix(backup): a target with chains on it, or a chain in use, cannot be…
Nov 22, 2026
0057dda
fix(backup): malformed API input answers 400 and a missing recovery f…
Nov 22, 2026
be5c86a
fix(backup): file-level restore downloads check the proxy's pinned ce…
Nov 22, 2026
0790404
fix(backup): error texts point at Settings → Targets and the folder's…
Nov 22, 2026
3d1c1f5
fix(shared): a POST that may have reached HyperCore is never sent again
Nov 22, 2026
8d26ec0
fix(shared): a settings value is checked before it is stored and read…
Nov 22, 2026
4e82e61
fix(balancer): a bad cycle or setting no longer kills the cluster thr…
Nov 22, 2026
1aa485c
fix(balancer): a migration task the cluster stops reporting on no lon…
Nov 22, 2026
bfecc4f
fix(balancer): a refused affinity move is not logged as done, waits b…
Nov 22, 2026
00c4e76
fix(balancer): an Oracle move runs only if the target can take the VM…
Nov 22, 2026
f2926d4
fix(foresight): resize advice respects the VM's peaks and never tells…
Nov 22, 2026
ee79365
fix(foresight): a 100 % threshold or a zero prune interval no longer …
Nov 22, 2026
fd8865c
fix(foresight): a request for a cluster Foresight does not run is a 4…
Nov 22, 2026
826c148
fix(foresight): a failing webhook endpoint gets its attempts and then…
Nov 22, 2026
0a8d46a
fix(foresight): the outcome tracker can read a VM's vCPU count at rec…
Nov 22, 2026
31a3737
fix(foresight): an audit event is written when a recommendation chang…
Nov 22, 2026
cb16941
fix(foresight): the Outcome Tracker, its check delay and Webhook Enab…
Nov 22, 2026
f384fd2
fix(foresight): What-If works on the cluster-wide forecasts, and addi…
Nov 22, 2026
14b0574
fix(foresight): the PDF report lists an exhaustion already reached fi…
Nov 22, 2026
ae1ad2a
fix(collector): a HyperCore condition is written when it changes, plu…
Nov 22, 2026
0d42ee4
fix(ui): names, tags, e-mail addresses and file paths no longer run a…
Nov 22, 2026
b54cbca
fix(ui): VM names, IPs and reasons from the server are escaped in eve…
Nov 22, 2026
6924bdf
fix(ui): Enter on Cancel cancels, and irreversible deletes ask for th…
Nov 22, 2026
68e569b
fix(ui): a page whose session is gone goes to the login page
Nov 22, 2026
fbf3e1c
fix(ui): a slow answer for the previous cluster no longer overwrites …
Nov 22, 2026
2c653fd
fix(ui): VM edit keeps what was typed when a button redraws the form
Nov 22, 2026
3c899f2
fix(ui): a role given on a tag shows Edit and Console without a searc…
Nov 22, 2026
4c912dd
fix(ui): buttons show only with the permission the server asks for them
Nov 22, 2026
ce62948
fix(ui): the data-quality banner names its cluster and no longer cove…
Nov 22, 2026
eb95813
fix(ui): Balancer and Foresight settings speak the reader's language …
Nov 22, 2026
637e289
fix(ui): interface texts and dates follow the chosen language (4 lang…
Nov 22, 2026
2a22c43
fix(ui): module icons tinted, dated restore points with a year, guest…
Nov 22, 2026
e4b27b8
fix(ui): a network error shows a message instead of an endless spinne…
Nov 22, 2026
1c1a700
fix(ui): icon buttons have a name and tabs, headers and group rows wo…
Nov 22, 2026
73eeb41
fix(ui): two Foresight help texts said the opposite of what the setti…
Nov 22, 2026
5015c29
fix(auth): mailed links use the configured address only, never the re…
Nov 22, 2026
8ae35bc
fix(auth): sign-in attempts are limited and a two-factor code works once
Nov 22, 2026
ee4b5ce
fix(access): an account itself is changed only by someone who outrank…
Nov 22, 2026
56e75e6
fix(auth): requests that change something must come from HCM's own pages
Nov 22, 2026
002d286
fix(access): only a root target manager assigns a folder's backup target
Nov 22, 2026
fb57c1e
fix(access): a backup plan's VM name and destination are not the brow…
Nov 22, 2026
fc36bea
fix(clusters): moving an entry to another address needs the password …
Nov 22, 2026
290b5cc
fix(access): the tag guard checks the clone the backup service will make
Nov 22, 2026
7a6eeb1
fix(auth): sessions end when credentials change, and the 2FA secret n…
Nov 22, 2026
cb4a48b
fix(access): a write acts on the cluster it names, never on the first…
Nov 22, 2026
05ea403
fix(updater): a failed apply keeps Apply on offer and stopped service…
Nov 22, 2026
3e6a835
fix(updater): the version shown is the one the running image was buil…
Nov 22, 2026
e8700ce
fix(access): names, roles and target paths above the reader stay hidden
Nov 22, 2026
d862e1e
fix(auth): the proxy image routes refuse everyone when no backup toke…
Nov 22, 2026
aab7403
fix(guest): a grant's code counter and session count change in one st…
Nov 22, 2026
8e057d1
fix(mail): a line break in a name no longer breaks mails
Nov 22, 2026
3b3dadf
fix(auth): forgot-password and sign-in take the same time for unknown…
Nov 22, 2026
1f651f7
fix(access): sign-ins, cluster changes, targets and updates are in th…
Nov 22, 2026
07d14cb
fix(clusters): a removed cluster stays removed, and purge keeps the b…
Nov 22, 2026
0c9c23c
fix(auth): no start with placeholder secrets, and one session key for…
Nov 22, 2026
fa16d22
fix(alerts): the alert history answers in time on a busy cluster
Nov 22, 2026
4a0eeae
fix(infraviewer): disks and current CPU follow a migrated VM, bad num…
Nov 22, 2026
5f7df76
fix(ui): two-factor setup asks for the password, and signing out is a…
Nov 22, 2026
ff2efa2
fix(compose): the dashboard receives its reverse-proxy and secure-coo…
Nov 22, 2026
1c1ff33
docs: the manual follows what 1.8.1 changed for admins and users
Nov 22, 2026
7439a06
fix(backup): a verify says which points the proxy healed
Nov 22, 2026
5c28fcd
fix(ui): Settings opens on the first tab a user may use, without read…
Nov 22, 2026
809d238
chore: release 1.8.1
Nov 22, 2026
ca8c2d0
ci: the unit tests run in CI with the packages they need, in any order
Nov 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 19 additions & 4 deletions .env.template
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,15 @@
# --- Docker Compose project name (keeps all containers on the same network) ---
COMPOSE_PROJECT_NAME=drsproject

# Host address the internal APIs are published on: InfluxDB 8086, Foresight 8081, backup 8082. The
# dashboard reaches them over the compose network, so the default publishes them for this host only.
# Set 0.0.0.0 only to reach them from elsewhere (a Grafana on another machine reading InfluxDB), and then
# restrict them in a firewall in front of Docker (Docker's published ports bypass ufw).
HCM_INTERNAL_BIND=127.0.0.1

# --- Clusters ---
# HyperCore clusters are registered in the dashboard (Settings -> Clusters), not here.
# HyperCore clusters are registered in the dashboard (+ Cluster in a folder under Settings -> Access
# -> Tenants), not here.
# Their credentials are stored encrypted in PostgreSQL with this key. Generate one with
# python3 -c "import secrets; print(secrets.token_hex(32))"
# Back it up together with the database: without it the stored passwords are unrecoverable.
Expand Down Expand Up @@ -54,13 +61,14 @@ SC_SSH_KEY_PATH=/root/.ssh

# --- Dashboard ---
# Initial admin credentials — used ONLY to seed the first user row on a fresh deployment.
# After that, manage users from the Settings → Users panel inside the dashboard.
# After that, manage accounts under Settings → Access inside the dashboard.
# Leave SC_DASHBOARD_USER blank to disable authentication entirely (dev/local mode).
SC_DASHBOARD_USER=admin
SC_DASHBOARD_PASSWORD=CHANGE_ME

# Session signing key — generate with: python -c "import secrets; print(secrets.token_hex(32))"
# If left blank a random key is generated at startup (sessions won't survive restarts).
# If left blank it is derived from HCM_SECRET_KEY. The dashboard refuses to start while it, HCM_SECRET_KEY or
# SC_DASHBOARD_PASSWORD still reads CHANGE_ME.
SC_DASHBOARD_SECRET_KEY=CHANGE_ME
# A VM console opened from HCM closes after this many minutes without keyboard or mouse input,
# and after this many hours in any case. Every console session is in Settings -> Console.
Expand All @@ -70,6 +78,13 @@ CONSOLE_MAX_HOURS=8
# (publish only /guest/ there, see the manual). Settings -> Mail -> "Address in guest console links" overrides
# this. Both blank: links use the address the granter's browser used.
HCM_GUEST_BASE_URL=
# Behind a reverse proxy: how many proxies stand in front of HCM (1 for one nginx/Caddy/Traefik). HCM then
# takes the client's address from X-Forwarded-For for the audit log and the sign-in limit; 0 (default) uses
# the connecting address, which is right when browsers connect to port 5000 directly.
HCM_TRUSTED_PROXIES=0
# true: the session cookie is only ever sent over HTTPS. Leave false when HCM is reached over plain HTTP
# (the cookie is marked Secure anyway on a request that arrived over HTTPS).
HCM_SESSION_COOKIE_SECURE=false
# OTP is now configured per-user inside the dashboard Settings → My Account panel.

# =============================================================================
Expand Down Expand Up @@ -142,7 +157,7 @@ SENTINEL_API_TOKEN=CHANGE_ME
# =============================================================================

# --- C7: Right-sizing outcome tracking ---
# Sentinel uses the cluster credentials from the registry (Settings -> Clusters)
# Sentinel uses the cluster credentials from the registry (Settings -> Access -> Tenants)
# to detect VM spec changes after a recommendation.
# Enable/disable outcome tracking entirely:
SENTINEL_OUTCOME_TRACKER_ENABLED=true
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ labels: bug
**Environment**
- Host OS and architecture (`uname -m`):
- Docker / Compose versions (`docker compose version`):
- Profile in use (`core`, `sentinel`, `full`):
- Modules you stopped, if any (`docker compose ps` shows what runs):

**What happened**

Expand Down
4 changes: 2 additions & 2 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ how to contact you; a maintainer will follow up privately for the details.
## Hardening

Before exposing the stack to any network beyond localhost, work through the Security Hardening
Checklist in [the installing chapter of the manual](docs/manual/08-installing-and-updating.md#securing-the-installation): strong secrets, TLS in front of the dashboard, no host
port bindings for InfluxDB and Sentinel, and an extended dry-run observation period before
Checklist in [the installing chapter of the manual](../docs/manual/08-installing-and-updating.md#securing-the-installation): strong secrets, TLS in front of the dashboard,
the internal APIs (InfluxDB, Foresight, backup) left on 127.0.0.1, and an extended dry-run observation period before
enabling live migrations.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,52 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: qemu-img and qemu-io for the qcow2 delta tests (skipped without them)
run: sudo apt-get update -qq && sudo apt-get install -y -qq qemu-utils
- run: pip install -r tests/requirements.txt
- run: pytest -m "not integration"

migrations-twice:
# The dashboard's migration runner applies every postgres/init file again on an install whose database
# was created by initdb (nothing is recorded yet). A file that is not idempotent against the later files
# blocks every later migration and every in-app update of a fresh install (021 did, 1.3.0 to 1.8.0).
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_DB: hypercore_balancer
POSTGRES_USER: sentinel
POSTGRES_PASSWORD: ci
ports: ["5432:5432"]
options: >-
--health-cmd "pg_isready -U sentinel" --health-interval 2s --health-timeout 5s --health-retries 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install psycopg2-binary==2.9.13
- name: initdb pass (as the postgres image does on a new volume)
env: {PGPASSWORD: ci}
run: |
for f in postgres/init/*.sql; do
psql -v ON_ERROR_STOP=1 -q -h localhost -U sentinel -d hypercore_balancer -f "$f" || exit 1
done
- name: the dashboard's runner applies every file again, twice
run: |
python - <<'PY'
import sys, psycopg2, psycopg2.extras
sys.path.insert(0, 'dashboard')
import migrations
conn = psycopg2.connect(host='localhost', dbname='hypercore_balancer', user='sentinel', password='ci',
cursor_factory=psycopg2.extras.RealDictCursor) # as the dashboard connects
first = migrations.apply_pending(conn, 'postgres/init')
second = migrations.apply_pending(conn, 'postgres/init')
print(f'applied {len(first)} file(s), then {len(second)}')
assert first and not second
PY

compose-build:
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 6 additions & 3 deletions Balancer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
FROM python:3.11-slim
# the Debian release is named: package names (apt) differ between releases, and a rebuild must not
# move to the next one unasked
FROM python:3.11-slim-trixie

WORKDIR /app

# Install build dependencies required by Prophet
RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/*

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY requirements.txt constraints.txt ./
# constraints.txt: every transitive package at the version this release was tested with
RUN pip install --no-cache-dir -r requirements.txt -c constraints.txt

# Copy your scripts into the container
COPY HyperCore_balancer.py .
Expand Down
Loading
Loading