harness: five new front-door fixtures, gitea's installer, HTTPS backends, per-file change names (R-462, R-624, R-735)
gates / gates (push) Successful in 2s
gates / gates (push) Successful in 2s
- fixtures (upgrade_fixtures_box.py): calibre-web (Upload form -> OPDS readback + the served EPUB), wger (web login -> weight entry API), crafty-controller (API v2 roles), uptime-kuma (socket.io polling: setup, login, addStatusPage -> public /api/status-page/<slug>); gitea posts its own first-run installer form (R-624's fixable case) and keeps the admin CLI for an installed one. calibre-web and wger run the template's own after_install on the bench, which has none. - R-735: the bench's `password:N:special` now has the controller's shape (randomWithSpecial); test seen failing first (length 32, no special), then 45/45. - upgrade_boxport / the memory watch: a backend traefik reaches over https (loadbalancer.server.scheme) is reached over https on the bench too (crafty-controller). - upgrade-test: files-before/after-detail.json and `files_changed_detail` NAME the files behind a files_may_change mark (R-734's method, now in the harness); test ChangedFiles. - test_catalog_gates: the gate count was stale (9, the runner has 10) and red on main; now 10. Evidence: felhom.eu/documentation/audits/more-night-apps-2026-09-30/ Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
1 parent
53a4a1ddf7
commit
5b1972b7f9
7 files changed
+565
-21
No files matched your search
@@ -421,9 +421,20 @@ def _gen(spec, ftype):
|
||||
"""
|
||||
if spec:
|
||||
kind, _, n = spec.partition(":")
|
||||
n, _, form = n.partition(":")
|
||||
n = int(n) if n.isdigit() else 32
|
||||
if kind == "hex":
|
||||
return secrets.token_hex(n)
|
||||
if kind == "password" and form == "special":
|
||||
# R-735: `password:N:special` — deploy.go randomWithSpecial: N long, a letter or digit first, at least
|
||||
# one lower, upper, digit and one of passwordSpecials. Pinned by
|
||||
# test_check_volume_persistence.TestEnvBuilding.test_password_special_carries_the_controllers_shape.
|
||||
alph, specials = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789", "-_.!@#%+="
|
||||
while True:
|
||||
p = "".join(secrets.choice(alph + specials) for _ in range(n))
|
||||
if (p[0] not in specials and any(c in specials for c in p) and any(c.islower() for c in p)
|
||||
and any(c.isupper() for c in p) and any(c.isdigit() for c in p)):
|
||||
return p
|
||||
if kind in ("password", "secret"):
|
||||
alph = "abcdefghijkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789"
|
||||
return "".join(secrets.choice(alph) for _ in range(n))
|
||||
|
||||
Reference in new issue
Block a user