Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3ebf00c
refactor(webui): move the management routes into a framework-free man…
Nov 26, 2026
f2bff36
feat(webui): keep allowed TLS clients on setup; keytab maker and TLS …
Nov 26, 2026
602f439
feat(edulution): container plugin with the WebUI's management and act…
Nov 26, 2026
436d8f3
feat(edulution): pages Squid-Proxy and Internetnutzung in edulution's…
Nov 26, 2026
83523c0
test(edulution): browser walk over every page and dialog for every role
Nov 26, 2026
f633749
test(edulution): integration run in run.sh e2e with its counter-check…
Nov 26, 2026
928eb8f
fix(edulution): doctor reports a starting container as info; first he…
Nov 26, 2026
26b6dfe
test(edulution): lab mode of the browser walk (connection name, class…
Nov 26, 2026
c512f16
docs(edulution): lab results in ADR-024, Keycloak note for updates
Nov 26, 2026
db81148
docs(architecture): the edulution plugin's data paths
Nov 26, 2026
124b07f
fix(edulution): directory settings reachable while the AD cannot be r…
Nov 26, 2026
b448e80
fix(edulution): unregister after remove, safe purge, verified --url, …
Nov 26, 2026
6855688
fix(edulution): break-glass repairs only the configured directory host
Nov 26, 2026
d269b54
fix(edulution): accept only the plugin's own project directory; down …
Nov 26, 2026
432ef0c
fix(edulution): a wrong DC login of a keytab run is answered at once …
Nov 26, 2026
03254b9
test(edulution): browser walk opens the switch dialog the instance of…
Nov 26, 2026
e8b9385
feat(edulution): pages rebuilt with @edulution-io/ui-kit 2.3.117 (Rea…
Nov 26, 2026
83c6488
feat(edulution): doctor names the ui-kit version of the pages
Nov 26, 2026
6374488
feat(edulution): pages follow edulution's light/dark theme inside the…
Nov 26, 2026
de5b476
feat(edulution): pages outside the frame follow prefers-color-scheme
Nov 26, 2026
4eacc04
fix(edulution): every text reaches WCAG AA contrast in both themes; t…
Nov 26, 2026
e430c73
feat(edulution): source and licence links in the footer of both apps
Nov 26, 2026
c74f092
fix(edulution): doctor checks the versions of tested-versions and war…
Nov 26, 2026
4a95128
test(edulution): the keytab job logs in to the DC first, in its one s…
Nov 26, 2026
be02be3
test(edulution): no URL outside an explicit allowlist in the pages' J…
Nov 26, 2026
f831a08
docs(edulution): describe the ui-kit's branding conditions (LICENSE_E…
Nov 26, 2026
87cd7c3
test(edulution): teachers see no projects in edulution either, throug…
Nov 26, 2026
23f3ed2
test(edulution): the page follows prefers-color-scheme outside the fr…
Nov 26, 2026
1ed782d
docs(edulution): what the official edulution update script does, from…
Nov 26, 2026
4e880ae
ci(edulution): build, smoke and release the edulution package and its…
Nov 28, 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
34 changes: 31 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
pytest==9.1.1 \
pytest-asyncio types-PyYAML
pip install --require-hashes --no-deps --only-binary :all: -r controlplane/requirements.lock
# the edulution plugin's image dependencies (paramiko, ldap3; PyYAML is the same pin)
pip install --require-hashes --no-deps --only-binary :all: -r edulution/requirements.lock
pip install --no-deps ./controlplane
pip check
- name: ruff check
Expand All @@ -110,6 +112,16 @@ jobs:
# planes (lmnsquid app, fake Docker) on a TLS listener with a self-signed certificate.
- name: pytest (WebUI plugin)
run: pytest -q webui/tests
- name: mypy (edulution plugin)
run: mypy --config-file edulution/pyproject.toml edulution/lmnsquid_edu edulution/host/linuxmuster_squid_edulution.py edulution/build_app.py
# The edulution plugin's real HTTP server (identity, CSRF, roles, scope) against real
# control planes; apart from webui/tests, both import a package named lmn_squid.
- name: pytest (edulution plugin)
run: pytest -q edulution/tests
# The plugin's pages (React + @edulution-io/ui-kit): npm ci from the lock without install
# scripts, tsc, two builds in the pinned Node image of edulution/Dockerfile, identical.
- name: edulution plugin pages (build twice, reproducible)
run: bash scripts/tests/edulution_frontend.sh
- name: shellcheck
run: sudo apt-get update -qq && sudo apt-get install -y -qq shellcheck && shellcheck --severity=warning $(git ls-files '*.sh') debian/*.preinst debian/*.postinst debian/*.prerm debian/*.postrm
- name: reuse (license compliance)
Expand Down Expand Up @@ -151,9 +163,11 @@ jobs:
# dpkg-buildpackage writes one level above the source tree.
mkdir -p output && mv ../*.deb ../*.changes ../*.buildinfo ../*.dsc ../*.tar.xz output/
# DEBIAN/md5sums must cover every shipped regular file, or `dpkg --verify` is a no-op.
# Two binary packages: linuxmuster-squid (amd64) and linuxmuster-squid-webui (all).
test "$(ls output/*.deb | wc -l)" = 2
for deb in output/linuxmuster-squid_*_amd64.deb output/linuxmuster-squid-webui_*_all.deb; do
# Three binary packages: linuxmuster-squid (amd64), linuxmuster-squid-webui (all) and
# linuxmuster-squid-edulution (all).
test "$(ls output/*.deb | wc -l)" = 3
for deb in output/linuxmuster-squid_*_amd64.deb output/linuxmuster-squid-webui_*_all.deb \
output/linuxmuster-squid-edulution_*_all.deb; do
dpkg-deb -I "$deb"
dpkg-deb --ctrl-tarfile "$deb" | tar -tf - | grep -qx './md5sums'
test "$(dpkg-deb -c "$deb" | grep -c '^-')" = "$(dpkg-deb --ctrl-tarfile "$deb" | tar -xOf - ./md5sums | wc -l)"
Expand Down Expand Up @@ -362,6 +376,20 @@ jobs:
# tested in the lab.
- name: WebUI plugin package (without linuxmuster-webui7)
run: sudo bash scripts/tests/webui_deb_smoke.sh packages/linuxmuster-squid-webui_*_all.deb
# The edulution plugin's image is built from the linuxmuster-squid .deb of this build
# (edulution/build-image.sh, like the lab) and saved as the tarball admins load
# (docs/operations.md); the package is installed next to an edulution stand-in: the
# container comes up healthy behind no published port, remove/purge clean up. edulution
# itself (login, forwardAuth, the pages) is scripts/tests/edulution_it.sh and the lab.
- name: edulution plugin package and image (without edulution)
run: |
set -eux
ver="$(dpkg-deb -f packages/linuxmuster-squid-edulution_*_all.deb Version)"
bash edulution/build-image.sh packages "linuxmuster-squid-edulution:$ver"
mkdir -p edulution-image
docker save "linuxmuster-squid-edulution:$ver" | gzip -n > "edulution-image/linuxmuster-squid-edulution-image_${ver}.tar.gz"
sudo bash scripts/tests/edulution_deb_smoke.sh packages/linuxmuster-squid-edulution_*_all.deb \
"edulution-image/linuxmuster-squid-edulution-image_${ver}.tar.gz"

# Kevin's rule: a release must still install cleanly ON TOP OF the version that is
# already running on a school server. This job installs the newest published release
Expand Down
40 changes: 35 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ jobs:
# dpkg-buildpackage writes one level above the source tree.
mkdir -p output && mv ../*.deb ../*.changes ../*.buildinfo ../*.dsc ../*.tar.xz output/
# DEBIAN/md5sums must cover every shipped regular file, or `dpkg --verify` is a no-op.
# Two binary packages: linuxmuster-squid (amd64) and linuxmuster-squid-webui (all).
test "$(ls output/*.deb | wc -l)" = 2
for deb in output/linuxmuster-squid_*_amd64.deb output/linuxmuster-squid-webui_*_all.deb; do
# Three binary packages: linuxmuster-squid (amd64), linuxmuster-squid-webui (all) and
# linuxmuster-squid-edulution (all).
test "$(ls output/*.deb | wc -l)" = 3
for deb in output/linuxmuster-squid_*_amd64.deb output/linuxmuster-squid-webui_*_all.deb \
output/linuxmuster-squid-edulution_*_all.deb; do
dpkg-deb -I "$deb"
dpkg-deb --ctrl-tarfile "$deb" | tar -tf - | grep -qx './md5sums'
test "$(dpkg-deb -c "$deb" | grep -c '^-')" = "$(dpkg-deb --ctrl-tarfile "$deb" | tar -xOf - ./md5sums | wc -l)"
Expand Down Expand Up @@ -267,6 +269,25 @@ jobs:
# tested in the lab.
- name: WebUI plugin package (without linuxmuster-webui7)
run: sudo bash scripts/tests/webui_deb_smoke.sh packages/linuxmuster-squid-webui_*_all.deb
# The edulution plugin's image is built from the linuxmuster-squid .deb of this build
# (edulution/build-image.sh, like the lab) and saved as the tarball admins load
# (docs/operations.md); the package is installed next to an edulution stand-in: the
# container comes up healthy behind no published port, remove/purge clean up. edulution
# itself (login, forwardAuth, the pages) is scripts/tests/edulution_it.sh and the lab.
- name: edulution plugin package and image (without edulution)
run: |
set -eux
ver="$(dpkg-deb -f packages/linuxmuster-squid-edulution_*_all.deb Version)"
bash edulution/build-image.sh packages "linuxmuster-squid-edulution:$ver"
mkdir -p edulution-image
docker save "linuxmuster-squid-edulution:$ver" | gzip -n > "edulution-image/linuxmuster-squid-edulution-image_${ver}.tar.gz"
sudo bash scripts/tests/edulution_deb_smoke.sh packages/linuxmuster-squid-edulution_*_all.deb \
"edulution-image/linuxmuster-squid-edulution-image_${ver}.tar.gz"
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: edulution-image
path: edulution-image/
if-no-files-found: error

# Kevin's rule: a release must still install cleanly ON TOP OF the version that is
# already running on a school server. This job installs the newest published release
Expand Down Expand Up @@ -645,6 +666,11 @@ jobs:
with:
name: packages
path: packages/
# the edulution plugin's image tarball, built and smoked in install-smoke
- uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
with:
name: edulution-image
path: packages/
# Draft -> assets -> digest check -> publish (why: see the header), all through the REST
# API with the gh CLI that ships with the runner. The draft is addressed by the id its
# create call returns, never by tag: right after a create the release list does not show
Expand All @@ -662,9 +688,13 @@ jobs:
set -euo pipefail
shopt -s nullglob
# The files this repo publishes: the .deb and what dpkg-buildpackage records about the
# build (.changes, .buildinfo) plus the source package it was built from (.dsc, .tar.xz).
assets=(packages/*.deb packages/*.changes packages/*.buildinfo packages/*.dsc packages/*.tar.xz)
# build (.changes, .buildinfo) plus the source package it was built from (.dsc, .tar.xz),
# and the edulution plugin's image tarball (docker load on the edulution host).
assets=(packages/*.deb packages/*.changes packages/*.buildinfo packages/*.dsc packages/*.tar.xz
packages/linuxmuster-squid-edulution-image_*.tar.gz)
compgen -G 'packages/*.deb' > /dev/null || { echo "::error::no .deb to publish"; exit 1; }
compgen -G 'packages/linuxmuster-squid-edulution-image_*.tar.gz' > /dev/null \
|| { echo "::error::no edulution image tarball to publish"; exit 1; }
# GitHub renames special characters in asset names (`~` becomes `.`, `+` stays), so
# names are compared in this normalised form, in which no two assets may collide.
norm() { local n=${1##*/}; printf '%s\n' "${n//[^A-Za-z0-9._-]/.}"; }
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ debian/linuxmuster-squid-webui/
.vscode/
*.swp
.DS_Store

# edulution plugin frontend (npm ci / npm run build)
edulution/frontend/node_modules/
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,19 @@ administrators only. More:
The project is [REUSE 3.3](https://reuse.software)-compliant: every file carries an
SPDX header, license texts live in [`LICENSES/`](LICENSES/), and `reuse lint` is gated
in CI. See [`docs/decisions.md`](docs/decisions.md) (ADR-000). © Kevin Stenzel.

**The pages of the edulution plugin** (`edulution/frontend/`, shipped only inside the
container image of `linuxmuster-squid-edulution`) are built with edulution's component
library **`@edulution-io/ui-kit` 2.3.117 (AGPL-3.0-or-later)** and other npm packages under
permissive licences. The built pages are therefore a combined work under GPL-3.0-or-later and
AGPL-3.0-or-later (GPLv3 section 13 allows the combination): whoever runs them for users over a
network must offer those users the corresponding source. That source is this public repository
(`edulution/frontend/` with its `package-lock.json`) and, for the ui-kit,
<https://github.com/edulution-io/ui-kit> / the `@edulution-io/ui-kit` package on npm. The
licence texts of every bundled npm package are served with the pages as
`/plugin/lmn-squid/static/THIRD-PARTY-LICENSES.txt` and are in the image under
`/opt/lmn-squid-edu/static/`. The ui-kit also carries branding conditions of Digitale Schule
Innovationsberatung GmbH for the name and logos of edulution (`LICENSE_EXCEPTIONS.md`, bundled
unmodified); how they meet this plugin is described, not decided, in ADR-024. See ADR-015
(addendum) and ADR-024. Both apps link the source and the licence texts in their footer.

5 changes: 4 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ does not yet exist — every `lmnsquid create --image ghcr.io/…@sha256:<digest
`ubuntu-24.04` (the upgrade smoke installs the newest published release, gives it an
admin's config and state and upgrades onto it) — and
attached to the GitHub Release (`gh release download … && apt install ./linuxmuster-squid_*.deb`).
The release is created as a **draft**, the `.deb`, the source package (`.dsc`, `.tar.xz`)
The release is created as a **draft**, the three `.deb` (linuxmuster-squid,
linuxmuster-squid-webui, linuxmuster-squid-edulution), the edulution plugin's image tarball
(`linuxmuster-squid-edulution-image_<version>.tar.gz`, built from that release's
linuxmuster-squid `.deb` in install-smoke and smoked there), the source package (`.dsc`, `.tar.xz`)
and the `.changes`/`.buildinfo` are uploaded and their SHA-256 compared with the build, and
only then is it published: GitHub's immutable releases freeze tag and assets at publication.
The job fails unless the published release reports `immutable: true`. With the optional
Expand Down
13 changes: 13 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,19 @@ linuxmuster-squid (7.3.11) lmn73; urgency=medium
log on receives no data. Quarantined spool files are moved beside the
spool (also unreadable ones); a file collected completely is never
quarantined.
* Setting up a proxy host again from the WebUI keeps the clients its TLS
listener already allows (tls_allowed_clients) and adds the school
server, instead of replacing the list.
* New package linuxmuster-squid-edulution (same version, from this
source) for the edulution host (2.3.117 or newer): the apps
"Squid-Proxy" (global administrators: everything the WebUI plugin's
management page does) and "Internetnutzung" (teachers, school and
global administrators, scope from the AD as in the WebUI) in a
container behind edulution's Traefik, with its own pinned connections
to the proxies and nothing new on the school server. Actions that need
the school server (precheck, keytab) ask for its SSH login each time.
The container image is loaded separately; then
"linuxmuster-squid-edulution up" and "register" (docs/operations.md).

-- Kevin Stenzel <mail@kevin-stenzel.de> Sat, 28 Nov 2026 03:59:40 +0100
linuxmuster-squid (7.3.10) lmn73; urgency=medium
Expand Down
17 changes: 17 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,20 @@ Description: linuxmuster.net WebUI plugin for linuxmuster-squid proxy servers
logs, blocklist and noauth list, updates) over their TLS listener with a
pinned certificate. Global administrators only. Install linuxmuster-squid
on the proxy host itself.

Package: linuxmuster-squid-edulution
Architecture: all
Depends: ${misc:Depends},
python3,
iproute2
Recommends: docker-ce | docker.io,
docker-compose-plugin | docker-compose-v2
Description: edulution plugin for linuxmuster-squid proxy servers
Two edulution apps on the edulution host: "Squid-Proxy" (global
administrators: proxy servers, instances, filter, lists, updates, logs,
setup of new proxy hosts, keytab) and "Internetnutzung" (teachers and
administrators, scope from the AD like the WebUI's view). A container
behind edulution's Traefik (forwardAuth edulution-keycloak-auth) with its
own pinned connections to the control planes. The container image is not
part of this package; load it with docker load, then run
linuxmuster-squid-edulution up and register.
19 changes: 19 additions & 0 deletions debian/copyright
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,25 @@ Files: *
Copyright: 2026 Kevin Stenzel <mail@kevin-stenzel.de>
License: GPL-3.0+

Files: edulution/frontend/*
Copyright: 2026 Kevin Stenzel <mail@kevin-stenzel.de>
License: GPL-3.0+
Comment: The source of the edulution plugin's pages. They are not part of any binary
package of this source: they are built (npm, edulution/frontend/package-lock.json)
into the container image of linuxmuster-squid-edulution, together with
@edulution-io/ui-kit 2.3.117 (Copyright Digitale Schule Innovationsberatung GmbH,
AGPL-3.0-or-later) and permissively licensed npm packages. The built pages are a
combination under GPL-3.0-or-later and AGPL-3.0-or-later (GPLv3 section 13): users
of the pages over a network are offered the corresponding source, this repository
(https://github.com/faircomp/linuxmuster-squid, edulution/frontend/) and
https://github.com/edulution-io/ui-kit. The image serves the licence texts of every
bundled npm package as static/THIRD-PARTY-LICENSES.txt.
The ui-kit also ships LICENSE_EXCEPTIONS.md, branding conditions of
Digitale Schule Innovationsberatung GmbH for the name and logos of edulution
(keep the branding when redistributing it, no use of the name in unrelated
products without authorisation); it is bundled unmodified and its text is in
THIRD-PARTY-LICENSES.txt. Assessment in docs/decisions.md, ADR-024.

License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down
10 changes: 10 additions & 0 deletions debian/linuxmuster-squid-edulution.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# SPDX-FileCopyrightText: Kevin Stenzel
# SPDX-License-Identifier: GPL-3.0-or-later
#
# The edulution host's side of the plugin (ADR-024); the command itself is installed by
# debian/rules (execute_after_dh_install-indep) as /usr/sbin/linuxmuster-squid-edulution.
edulution/host/docker-compose.yml usr/share/linuxmuster-squid-edulution/
edulution/host/tested-versions usr/share/linuxmuster-squid-edulution/
edulution/host/traefik/plugin-lmn-squid.yml usr/share/linuxmuster-squid-edulution/traefik/
edulution/host/icons/squidproxy.svg usr/share/linuxmuster-squid-edulution/icons/
edulution/host/icons/internetnutzung.svg usr/share/linuxmuster-squid-edulution/icons/
27 changes: 27 additions & 0 deletions debian/linuxmuster-squid-edulution.postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/bin/sh
# SPDX-FileCopyrightText: Kevin Stenzel
# SPDX-License-Identifier: GPL-3.0-or-later
set -e

# Start (or move to this version's image) the plugin container and its Traefik route when
# this is an edulution host and the image is loaded. The app tiles need a global
# administrator's login: `linuxmuster-squid-edulution register` (docs/operations.md).
if [ "$1" = configure ]; then
if command -v docker >/dev/null 2>&1 && docker info >/dev/null 2>&1; then
rc=0
linuxmuster-squid-edulution up || rc=$?
case "$rc" in
0) ;;
2) echo "linuxmuster-squid-edulution: load the image, then run: linuxmuster-squid-edulution up" ;;
*) echo "linuxmuster-squid-edulution: up failed ($rc); see the message above, then run: linuxmuster-squid-edulution up" ;;
esac
if [ ! -e /var/lib/linuxmuster-squid-edulution/registered ]; then
echo "linuxmuster-squid-edulution: create the app tiles with: linuxmuster-squid-edulution register --user <global admin>"
fi
else
echo "linuxmuster-squid-edulution: Docker is not running; run linuxmuster-squid-edulution up later"
fi
fi

#DEBHELPER#
exit 0
39 changes: 39 additions & 0 deletions debian/linuxmuster-squid-edulution.postrm
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/sh
# SPDX-FileCopyrightText: Kevin Stenzel
# SPDX-License-Identifier: GPL-3.0-or-later
set -e

# purge: the plugin's data (connections with the proxies' tokens, the directory account) in
# the Docker volume, its images, the compose project and the command's own configuration and
# state (with the copy of the command kept for `unregister` after a remove).
if [ "$1" = purge ]; then
project=/srv/docker/edulution-plugin-lmn-squid
image=""
conf=/etc/linuxmuster-squid-edulution/plugin.conf
if [ -f "$conf" ]; then
found=$(sed -n 's/^PROJECT_DIR=//p' "$conf" | tail -n 1)
image=$(sed -n 's/^IMAGE=//p' "$conf" | tail -n 1)
if [ -n "$found" ]; then
# exactly edulution-plugin-lmn-squid below /srv/docker or /opt, no '..', no
# symlink (realpath must not change it): anything else is not deleted
canon=$(realpath -m -- "$found" 2>/dev/null || true)
if [ "$canon" = "$found" ] && printf '%s\n' "$found" \
| grep -Eqx '/(srv/docker|opt)/edulution-plugin-lmn-squid'; then
project=$found
else
echo "linuxmuster-squid-edulution: PROJECT_DIR '$found' refused, $project used" >&2
fi
fi
fi
if command -v docker >/dev/null 2>&1; then
docker rm -f edulution-plugin-lmn-squid >/dev/null 2>&1 || true
docker volume rm edulution-plugin-lmn-squid-data >/dev/null 2>&1 || true
for ref in $(docker image ls --format '{{.Repository}}:{{.Tag}}' linuxmuster-squid-edulution 2>/dev/null) $image; do
docker image rm "$ref" >/dev/null 2>&1 || true
done
fi
rm -rf "$project" /etc/linuxmuster-squid-edulution /var/lib/linuxmuster-squid-edulution
fi

#DEBHELPER#
exit 0
Loading
Loading