42 Commits

Author SHA1 Message Date
timmy b15bede430 Best practices 2026-07-12 14:12:15 -07:00
Michael Stapelberg 9c06b898c1 status: display running EEPROM bootloader build-timestamp
This is more user-friendly compared to the raw SHA256 checksums.
Those can still be obtained by querying the status via JSON.

fixes https://github.com/gokrazy/gokrazy/issues/343
2025-11-20 08:13:35 +01:00
Michael Stapelberg 63b2aa82de fix displaying firmware EEPROM version on Pi 5
The Pi 5 firmware does not rename recovery.bin anymore,
so the check we did to figure out if the updated succeeded
only works on the Pi 4.

related to https://github.com/gokrazy/gokrazy/issues/332
2025-11-16 09:05:06 +01:00
Michael Stapelberg baeae7659a web interface: label the two SHA256 EEPROM checksums 2025-11-16 08:55:08 +01:00
oliverpool e39b02bec1 web interface: add power management buttons (#331) 2025-09-16 22:07:52 +02:00
Michael Stapelberg e01459ea62 only stream stdout+stderr when the tab is visible
related to https://github.com/gokrazy/gokrazy/issues/305
2025-04-13 22:06:49 +02:00
Michael Stapelberg 3676e79fb6 stream stdout and stderr over the same connection
related to https://github.com/gokrazy/gokrazy/issues/305
2025-04-13 19:20:26 +02:00
Michael Stapelberg 181586678f move status JavaScript into its own file 2025-04-13 18:39:17 +02:00
Michael Stapelberg 29f3a3f118 Revert "status: properly clean up EventSource connections"
This reverts commit c7823aff1a.

This “fix” introduced a new problem: when navigating in the
back/forward cache, the EventSource connection would not resume.
2025-03-07 16:52:31 +01:00
Michael Stapelberg 9285793115 /status: do not link the service name
related to https://github.com/gokrazy/gokrazy/issues/295
2025-02-04 18:50:25 +01:00
Michael Stapelberg c7823aff1a status: properly clean up EventSource connections
This should fix occasional hangs when navigating between pages.

I did not expect this behavior from browsers. I would have expected
all pending requests of a page to be terminated when the user
navigates to a different page. Instead, one needs to explicitly
close() EventSource connections.
2024-12-22 17:14:40 +01:00
Michael Stapelberg 527e712756 display extra mount devices under “storage” section
related to https://github.com/gokrazy/gokrazy/issues/236
2024-07-19 18:28:45 +02:00
Christian Kugler a6db98edf5 Change how status is displayed (#207)
Currently the status is appended to the service status link and no label
is displayed if the service is running. The status stopped is displayed
with a warning color (yellow). To me this feels uneven and a bit chaotic
which makes it harder to get a good overview and find a service.

This does three things to improve the overview:
- Add a separate column for status label. This takes a bit of width away
  from the last log line.
- Color the stopped label less aggressive (gray/default instead of
  yellow/warning).
- Add a green label for running service.

Potential improvements for the future could be to show if a service is
enabled/supervised or adding actions like start/stop/restart/enable.
2023-07-23 16:55:37 +02:00
oliverpool 2a8ba55e96 dashboard: speed up log line truncation logic (#181) 2023-03-15 17:15:51 +01:00
oliverpool 7301b565b0 dashboard: show latest stdout and stderr lines (#182) 2023-03-14 18:09:01 +01:00
oliverpool 46e37e95ce dashboard: add link to raw logs (#180) 2023-03-13 08:26:49 +01:00
Michael Stapelberg 73892ad238 display SBOM hash in the top right web interface header
related to https://github.com/gokrazy/gokrazy/issues/167
2023-02-19 15:26:20 +01:00
Michael Stapelberg 0bcf6191bd status: allow running once or in a loop
fixes https://github.com/gokrazy/gokrazy/issues/117
2022-03-21 23:45:40 +01:00
Christian Heusel ff09e855be clean up header and add logo 2022-03-06 15:58:17 +01:00
Christian Heusel 6e3e6ed39f clean up status table 2022-03-06 15:58:17 +01:00
Anup Chenthamarakshan af5773f40f status: live tail logs (#100)
Create a /log endpoint for streaming stdout/stderr logs for processes.
Replace status page stdout/stderr to call into /log to stream logs and
live update page.
2021-12-13 09:17:44 +01:00
Anup Chenthamarakshan 42dba82d7a dhcp: allow builds on non-64-bit architectures (#99)
Move build constraint to internal/iface which clearly shows the Linux dependency
2021-11-28 11:12:33 +01:00
Michael Stapelberg b07a22daa4 add /divert handler
This diverts existing services to their temporary counterparts, uploaded via the
/uploadtemp handler.

related to https://github.com/gokrazy/gokrazy/issues/88
2021-11-21 16:46:18 +01:00
Matt Layher 476b8dbe93 internal/iface: use unix.Ifreq APIs for IPv4 ioctls (#91) 2021-08-22 11:41:44 +02:00
Matt Layher fba8163e5d internal/iface: use unix.Ifreq API for interface flags ioctl (#90)
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2021-08-18 09:51:00 +02:00
Michael Stapelberg fefd4180bb use go:embed directive instead of goembed.go for bundling assets 2021-06-24 17:54:43 +02:00
Michael Stapelberg c8f583fc14 status: fix mkfs instructions for GPT UUIDs
related to https://github.com/gokrazy/gokrazy/issues/87
2021-06-24 14:38:41 +02:00
Matt Layher a4c823dc2b Add kernel information to web UI header (#67)
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-14 10:57:14 +02:00
Michael Stapelberg 0fa71a6018 display the EEPROM SHA256 hashes (shortened)
related to https://github.com/gokrazy/gokrazy/issues/48
2020-06-19 08:50:32 +02:00
Michael Stapelberg 2398e37f70 status: use partuuid-based path in mkfs instruction
fixes https://github.com/gokrazy/gokrazy/issues/12
2020-05-30 18:47:48 +02:00
Michael Stapelberg b93a58e5c8 status: print module info details
fixes https://github.com/gokrazy/gokrazy/issues/59
2020-05-30 18:17:38 +02:00
Michael Stapelberg 3a6c5f85d2 header: include model name on supported platforms 2020-04-08 15:24:36 +02:00
Michael Stapelberg 25d06ba514 gofmt GENERATED_bundled.go 2019-11-09 09:59:25 +01:00
Michael Stapelberg 09fbdb123e bundle bootstrap, bootstrap-table and jquery assets
This way, the UI works even when the user is offline, which is handy for
router7.
2019-11-09 09:37:23 +01:00
Michael Stapelberg a6ce446055 format GENERATED_bundled.go with newer gofmt 2018-11-01 18:44:10 +01:00
Michael Stapelberg 1c16b3b4eb serve favicon.ico 2018-07-15 18:32:46 +02:00
Michael Stapelberg 835dae6a18 add randomd (carries entropy across restarts) 2018-07-13 23:44:47 +02:00
Michael Stapelberg c74265523b implement XSRF/CSRF protection for /stop and /restart
While stopping/restarting processes seems like a nuisance at best, it’s good
style to prevent these attacks.

This commit the Double-Submit Cookie protection, which seems appropriate for our
architecture and demands. See also:
https://www.owasp.org/index.php/Cross-Site_Request_Forgery_(CSRF)_Prevention_Cheat_Sheet#Double_Submit_Cookie
2018-06-25 18:38:08 +02:00
Michael Stapelberg 59b99bc704 remove hard-coded mmcblk0 from all places 2018-06-17 09:31:14 +02:00
Michael Stapelberg 9063e4526a add hostname to title
This makes it easier to deal with multiple tabs on multiple devices :)
2018-05-17 09:11:44 +02:00
Michael Stapelberg b5d7cb2fcf add PublicInterfaceAddrs and display them on the status page 2018-03-20 19:34:36 +01:00
Michael Stapelberg 38af7fd18d Initial commit 2017-03-04 11:22:48 +01:00