Repository navigation
Conversation
added 30 commits
November 28, 2026 04:36
…age_core The proxy and connection routes of the management page become methods of manage_core.ManageService with one route table (ROUTES); views.py keeps one thin aj endpoint per route. The edulution plugin will serve the same routes from that module instead of a copy. A test keeps the aj endpoints and the table in step.
…clients injectable tls_script keeps the addresses tls_allowed_clients already holds and adds the setup's own, so a setup from one front end does not lock out another. The keytab steps of provision_and_deliver become a KeytabMaker (local_keytab is the old behaviour) and the setup takes its TLS clients from the payload (default: the school server): the edulution plugin runs the same steps with the keytab made on the DC over SSH.
…ivity view New binary package linuxmuster-squid-edulution (ADR-024) for the edulution host and a container image built from this tree: - a stdlib HTTP server behind edulution's Traefik (forwardAuth edulution-keycloak-auth), identity = X-Auth-User checked against the person's edulution token with edu-api's auth/verify, CSRF by JSON + same Origin/Referer; - the management routes of manage_core and the activity view of activity_core, the scope computed by activity_scope from the AD over LDAPS (pinned certificate, read-only bind); - its own connections to the control planes in the plugin's volume; - precheck, keytab and service-account actions on the DC over SSH with a login per action and a confirmed host key, running the WebUI's own modules there (dc_agent); - setup and keytab jobs with sshsetup's steps (keytab made on the DC, TLS allowlist with the edulution host and the DC); - linuxmuster-squid-edulution up/down/register/unregister/doctor/status on the host, compose project without published ports, Traefik file plugin-lmn-squid.yml; - Python deps only from the hashed edulution/requirements.lock (lock gate extended); - tests: the real server against real control planes, forged headers, roles, scope, CSRF, secrets in answers, LDAPS pinning, the DC agent, the host command; scripts/tests/edulution_it.sh for real Traefik + image + LDAPS + control plane.
… look A plain ES2020 port of the WebUI plugin's two pages (no build step, no npm, no external resources; CSP script-src 'self', DOM built with textContent only), German, usable at 1366x768 with scrollable dialogs: connections, setup assistant and keytab with a DC login per action, instances with every tab, filter, lists, logs, bulk and per-school filter, own lists, internet use settings and access log, the directory settings; the student-centred activity view. Error codes of the DC actions renamed to the ones the pages show (dc, dc_auth, dc_unreachable, ldap).
…; test strategy The previous-day step accepts the retention limit (disabled with its hint, as in the WebUI) instead of timing out.
…alth check after 2 s Found in the lab: doctor right after 'up' counted the container's first 30 s (health 'starting') as a problem.
…, teacher without class)
…ead (M1); one SSH session per keytab job (G5) M1: the management read the role from the AD on every request, so a renewed DC certificate, a changed bind password or an unreachable DC locked out the settings that repair it. While the AD cannot be read, only the four settings routes accept the role group of the session as edu-api's auth/verify confirms it for the token (never a header); everything else stays 503 with a German hint, whoami reports directory_error and the page opens the settings; settings/test answers ok:false. Tested with a pin mismatch, a refused bind and an unreachable DC against the real LdapsDirectory. G5: the target check and the key of a keytab job share one SSH session (DcSession); the route only starts the job. Docs: ADR-024 amendment, recovery in operations, threat model, test strategy.
…images on purge (G1-G4) - G1: the prerm of a remove keeps a copy of the command in the state directory until purge, so the tiles can still be unregistered after apt remove. - G2: PROJECT_DIR must be exactly /srv/docker|/opt + edulution-plugin-*, no '..', no symlink, in the command and in the postrm (else the default is used). - G3: register/unregister/doctor verify the certificate of --url (system CAs or --cafile, --insecure only explicitly); loopback without --url as before. - G4: purge removes the plugin's images.
Cold recheck finding 1: while the AD could not be read, a session in role-globaladministrator (e.g. demoted in AD, session still valid) could move the LDAPS URL and pin to a server of its own. In break-glass only the pin, the bind password and the port of the configured host can change; another host (also for fetching a certificate), DC, base or bind DN: 403 breakglass. ADR-024 names the residual risk.
…validates first Cold recheck, G2 rest: PROJECT_DIR accepted any edulution-plugin-* directory (e.g. another plugin's) and down removed the Traefik route before refusing a wrong path. Only /srv/docker|/opt + edulution-plugin-lmn-squid is accepted, in the command and in the postrm, and down refuses before it removes anything.
…with 409 again Cold recheck finding 3: since one SSH session serves a keytab job (G5), a wrong DC password failed only inside the job. The job now logs in (SSH and sudo) first, in that same session, and records the result; the route waits for it and answers a refused login with 409 dc_auth in German. Still one login per action.
…fers; login retried with diagnostics Cold recheck finding 4: 'dialog switch off' failed in the lab with logging off; the walk now opens and cancels the switch-on or the switch-off dialog, whichever the page shows. The edulution login (two unexplained failures in the recheck) is tried up to three times, each failure printed with URL, title, cookies and the last answers plus a screenshot.
…ct + Tailwind) Kevin: 'ich will es im ui style'. Both apps now use edulution's own component library in the version edulution 2.3.117 ships, with its Tailwind preset, theme and bundled Lato, in edulution's patterns (app header, tables, dialogs, menus, toasts). Every function, German text and data-test hook of the first version is kept; the API is unchanged. Build chain (ADR-015 addendum): first stage of edulution/Dockerfile in node:22-slim by digest, npm ci --ignore-scripts from package-lock.json (integrity hashes, direct deps exact), static output only; THIRD-PARTY-LICENSES.txt and build-info.json generated. The server serves the page assets relative to the page and gives every page answer a fresh style nonce for Radix' <style> elements; script-src stays 'self'. scripts/tests/edulution_frontend.sh (CI step, run.sh e2e): npm ci, tsc, two builds byte-identical, no inline script/style, no external URL. Licence: AGPL-3.0-or-later ui-kit combined under GPLv3 section 13, source offer in README and debian/copyright.
doctor reads static/build-info.json through the route and warns when edulution runs another version than the ui-kit the pages were built with; tested-versions names it.
… frame Found in the lab next to edulution's own pages: the plugin pages were always dark while edulution ran in its light theme. Inside the frame (same origin) the pages now take the light/dark class edulution sets on its <html>, follow it live, and let edulution's background show through; standalone they stay dark.
Cold check ui-kit m6: standalone the pages were always dark. Outside edulution's frame they now follow the browser's light/dark preference, live, as edulution does with its theme setting 'System'.
…he walk checks it Cold check ui-kit MA1: Tag and Alert used edulution's status colours, made for its dark theme (light theme: 'läuft, gesund' 1.2:1, the privacy notice 1.2:1, red alerts 2.1:1), and white on edulution's primary blue is 4.24:1. Status and link texts now take theme-specific shades that also hold on hovered rows, the primary is one step darker (white 5.4:1), the green button carries dark text, and a hard-coded dark background of a sticky table cell follows the theme. browser.py measures the AA contrast of every visible text after every step and with every dialog open (composited background, large text 3:1, disabled exempt); the management walk runs dark and light. Against the old colours: 69 failing steps.
Cold check ui-kit m1: the AGPL section 13 offer was only in README and debian/copyright. Every page now ends with a small footer line linking the public source repository and the bundled THIRD-PARTY-LICENSES.txt; the browser walk checks both links in both apps and that the licence file answers.
…ns on a mismatch Cold check ui-kit m3: a ui-kit/edulution mismatch was only [INFO] with exit 0, and UIKIT= in tested-versions was read by no code. doctor now reads TESTED and UIKIT, reports an untested edulution version, an image whose pages have another ui-kit than the package expects, and edulution running another version than the pages' ui-kit as [WARN], and exits 2 when there are only warnings (1 for a problem, 0 when all is fine).
…ession Cold check ui-kit m4: removing session.login_check() from runner.py left every test green. test_runner.py runs the real runner with a stand-in session: a refused login ends the job at once with dc_login=failed (what the route answers as 409 dc_auth), nothing else runs, the session is closed once and the password is not in the job file; an accepted login records dc_login=ok and the same session serves the keytab. Both tests are red without the login check.
…S bundles Cold check ui-kit m5: edulution_frontend.sh looked for external URLs only in the HTML and CSS. Every URL string in the JS bundles must now be on an allowlist with a stated reason (XML namespace names, React's error-decoder text, the source link, the form placeholder). An injected fetch of https://evil.example/beacon turns it red.
…XCEPTIONS.md) Cold check ui-kit m2: what the ui-kit's LICENSE_EXCEPTIONS.md says (edulution name and logos belong to DSI; keep the branding when redistributing; no use of the name in unrelated products without authorisation), how it meets the plugin (bundled unmodified, no edulution logo, the name used descriptively for a plugin for edulution) and the open questions for Kevin, in ADR-024, debian/copyright and README. Nothing decided.
…h the shared scope After the rebase onto feat/activity-log (962fbe3, Kevin: own classes only), the edulution plugin gets the rule from the shared scope_for: the pytest and the integration checks now expect class 5a only for the teacher, 404 scope for their own project and for a student reached only through it, and the project for the school administrator. The edulution pytest was red right after the rebase (the teacher still saw s7c1 in the old expectation).
…ame, also live
Cold re-check of dc2491a, n1: m6 had no test. The walk now checks, in the dark and
the light run, that the page outside the frame takes the browser's scheme and
switches when it changes (emulate_media). With theme.ts as before the m6 commit it
fails in both runs ('context light, page dark').
… its source The script was read, not run (the agent's permission system refused running it in the lab): installer image with only /srv/docker/edulution-ui mounted, rewrites docker-compose.yml and edulution.env with backups, then compose pull and up -d without down. Untested: whether the installer leaves plugin-lmn-squid.yml (inside the mounted directory) and the tiles alone.
… image The package job expected two .deb; with linuxmuster-squid-edulution it builds three, so the count check failed. It now expects three and checks the md5sums of all three; lintian already lints every .deb (no errors). install-smoke builds the plugin image from the job's linuxmuster-squid .deb (edulution/build-image.sh), saves it as linuxmuster-squid-edulution-image_<version>.tar.gz and runs the new scripts/tests/edulution_deb_smoke.sh: install without edulution, then next to an edulution stand-in up to a healthy, read-only container without a published port, reinstall, remove, purge. release.yml attaches the tarball to the release next to the three packages. Steps in existing jobs, so the required checks stay as they are.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fourth of four stacked PRs for 7.3.11, based on
feat/activity-log.New binary package
linuxmuster-squid-edulutionfor the edulution host (2.3.117 or newer): the apps "Squid-Proxy" and "Internetnutzung" in a container behind edulution's Traefik, UI built with @edulution-io/ui-kit (AGPL, pinned npm lockfile, CSPscript-src 'self'). CI and release now build three packages; install-smoke builds the plugin image from the job's .deb and runsscripts/tests/edulution_deb_smoke.sh; the release attaches the image tarball. No new CI job, so the required-checks ruleset is unchanged.Tested: fast tier, CI steps emulated locally, lab tests against edulution 2.3.117 and 2.3.118 (official update script) and a cold verification.