From 1abb7649b930d35d1f5a76fd72856659b1ee8275 Mon Sep 17 00:00:00 2001 From: Anders Betts Date: Wed, 23 Sep 2026 11:36:11 +0200 Subject: web: bokftui in the browser (ttyd + bokfweb login gate); per-user login limit New image bokf-web (Dockerfile target "web", compose service "web" on 127.0.0.1:8790): Caddy routing with forward_auth, the bokfweb login gate (C, authenticates with bokfd's session.open, per-address limit, cookie + terminal handle, one login handed to the TUI via /redeem) and ttyd running bokftui in web mode in an isolated throwaway HOME. TLS stays with the host's reverse proxy. BOKF_WEB=1 blocks every local file and viewer path in the TUI. bokfd's login limiter is now per user name instead of one global counter (5 wrong guesses from anyone locked out everybody), and a full counter table no longer disables it. The cross build and deploy.sh build and ship both images. Co-Authored-By: Claude Opus 5.5 --- clients/screens_reports.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clients/screens_reports.c') diff --git a/clients/screens_reports.c b/clients/screens_reports.c index a06e914..1077fe0 100644 --- a/clients/screens_reports.c +++ b/clients/screens_reports.c @@ -701,6 +701,8 @@ static void fmt_verifikationslista(struct buf *t, const struct app *a, static void eskd_save(struct app *a, const char *from, const char *to) { + if (ui_web_block("eSKD")) + return; const char *home = getenv("HOME"); char period[8], def[512], full[512]; snprintf(period, sizeof period, "%.4s%.2s", to, to + 5); @@ -957,6 +959,8 @@ static void fmt_ink2(struct buf *t, const struct app *a, yyjson_val *res) static void sru_save(struct app *a) { + if (ui_web_block("SRU")) + return; const char *home = getenv("HOME"); char def[512]; snprintf(def, sizeof def, "%s/Downloads", home && *home ? home : "."); -- cgit v1.3