462 Commits

Author SHA1 Message Date
Michael Stapelberg 5280ab1fd6 re-generate website for previous commit 2023-10-09 22:27:18 +02:00
shayne 7a3806e624 userguide: add QEMU x86-64 virtual machine guide 2023-10-09 22:26:54 +02:00
Michael Stapelberg e4c2e89c78 re-generate website for previous commit 2023-09-17 18:58:27 +02:00
Michael Stapelberg 65ed2f405b process-interface: remove outdated CLONE_NEWNS behavior
This behavior changed in commit d2987c2469

fixes https://github.com/gokrazy/gokrazy/issues/218
2023-09-17 18:56:17 +02:00
Michael Stapelberg 346db1998f ifaddr: consider tailnet as private
Being able to listen on tailnet addresses was not possible on gokrazy until
Tailscale v1.46 (with TS_DEBUG_USE_NETLINK_NFTABLES=true).

All traffic going through tailscale is secured, so gokrazy programs should
listen on the tailscale interface.
2023-08-12 11:22:15 +02:00
Michael Stapelberg 64a92c26fe re-generate website for previous commit 2023-07-31 09:52:50 +02:00
Bruno Teixeira 8cc90664ea Add waiw to "Written for gokrazy" (#206) 2023-07-31 09:52:19 +02:00
Michael Stapelberg 331c98011a GitHub Actions: use setup-go@v4, which enables caching 2023-07-23 17:35:54 +02:00
Michael Stapelberg 078e242069 dhcp: implement resolv.conf trampling protection
Otherwise, when Tailscale updates /tmp/resolv.conf,
gokrazy/dhcp would undo its changes.

See also https://tailscale.com/s/dns-fight

related to https://github.com/gokrazy/gokrazy/issues/209
2023-07-23 17:19:42 +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
Michael Stapelberg edba3d33ff re-generate website for previous commit 2023-07-01 14:50:04 +02:00
Michael Stapelberg e653aacd19 website: update references to Debian bookworm, which was released
The new sid codename is trixie.
2023-07-01 14:50:04 +02:00
Darshil Chanpura a764954142 fix waitforclock condition when creating a new service (#198) 2023-04-17 17:18:44 +02:00
Michael Stapelberg a68485791a re-generate website for previous commit 2023-04-14 14:27:59 +02:00
Michael Stapelberg 587aeb8c2c instance-config: clarify relative paths
fixes https://github.com/gokrazy/gokrazy/issues/195
2023-04-14 14:27:40 +02:00
Daniel Kertesz cd43e0606a dhcp: wait indefinitely for interface to appear (#187)
On systems without an ethernet interface (like the Raspberry Pi Zero)
the `dhcp` program goes into a crash loop because it can't find eth0.

This PR adds an initial loop to wait for the given interface name to
appear before continuing with the rest of the program.

Fixes #144
2023-04-06 12:00:44 +02:00
Brad Fitzpatrick 25011f45fd make Model detect QEMU, always return non-empty string (#192)
And cache its result, as it's called regularly by at least fbstatus,
which seems like is using too much CPU. (though admittedly the fbstatus
CPU problems are mostly elsewhere)

And rename mustReadFile0 because a "must" prefix implies it panics.
2023-04-06 11:37:25 +02:00
Michael Stapelberg b2b842e326 fix reading Go module info for diverted services
related to https://github.com/gokrazy/gokrazy/issues/189
2023-04-03 09:03:21 +02:00
Michael Stapelberg 7e14fb215c fix panic by initializing service in NewService, not supervise()
fixes https://github.com/gokrazy/gokrazy/issues/189
2023-04-03 09:00: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 ac1c5aaf63 GitHub Actions: switch to setup-go@v3, use 'stable' alias 2023-03-11 12:06:57 +01:00
Michael Stapelberg 7ced065028 go.mod: bump version to go1.20 2023-03-11 12:00:47 +01:00
Michael Stapelberg bf4d6e1d20 unify signal delay default to 100s
see also https://utcc.utoronto.ca/~cks/space/blog/linux/ShutdownDelayProblem
2023-03-07 20:47:10 +01:00
Michael Stapelberg 23115bd89a listen for power button events and power off
fixes #142
2023-03-07 20:43:05 +01:00
oliverpool b85b03e5bd implement Poweroff (and refactor around killSupervisedServices) (#177) 2023-03-07 20:38:36 +01:00
dependabot[bot] 254af2bf3c build(deps): bump golang.org/x/net (#175)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220225172249-27dd8689420f to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 16:30:28 +01:00
dependabot[bot] 2b8825ba95 build(deps): bump golang.org/x/sys (#174)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20220319134239-a9b59b0215f8 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-25 16:26:02 +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 9cdaabefee add forgotten buildtags/index.html 2023-02-15 19:40:06 +01:00
Michael Stapelberg 76bd6a4474 re-generate website for previous commit 2023-02-15 19:36:43 +01:00
Michael Stapelberg 7406755589 website: add documentation for the gokrazy build tag 2023-02-15 19:36:26 +01:00
Michael Stapelberg c4490d7822 /update/features: include EEPROM version in JSON requests
This handler (despite being named just /features) should supply all the
information that the updater package needs in a single request/response.
2023-02-15 18:28:26 +01:00
Michael Stapelberg d7743d90ca jsonRequested: look at Accept header, not Content-Type
The client sets the Accept header, the server sets the Content-Type header.
2023-02-15 08:44:37 +01:00
Michael Stapelberg 840a18ff51 website: re-generate for previous commit 2023-02-12 14:30:07 +01:00
Michael Stapelberg 8d76a6ea40 website: include first installation demo video 2023-02-12 14:29:43 +01:00
Michael Stapelberg e2c5a62f67 supervise: create /perm/home/<base> for each supervised process
This means applications can just write files in their current working directory.

Plus, error messages from applications that don’t start up without a
configuration file will now show a useable path (like
/perm/home/prometheus/prometheus.yml) instead of a path in the root directory
(like /prometheus.yml).
2023-02-11 17:50:47 +01:00
Michael Stapelberg bd0e160a71 heartbeat: include hostname 2023-02-07 20:03:23 +01:00
Mark Drayton 3142fec4b0 support passing command line flags to /divert (#166) 2023-02-06 19:09:53 +01:00
Damiano Donati 36ef7f154e move readSBOM to the gokrazy package (#169) 2023-02-05 21:53:53 +01:00
Michael Stapelberg d33c97e94a add cmd/heartbeat (no-op if not configured)
If the --gus_server command line flag is configured,
this program will periodically check in with GUS (gokrazy Update Service).

related to https://github.com/gokrazy/gokrazy/issues/167
2023-02-05 15:59:49 +01:00
Michael Stapelberg a9d0d504b8 add gokrazy.MachineID()
related to https://github.com/gokrazy/gokrazy/issues/167
2023-02-05 15:59:36 +01:00
Michael Stapelberg c9332ac6b4 re-generate website for previous commit 2023-01-23 09:02:05 +01:00
Michael Stapelberg a97af853ea index: word-smithing, explain appeal of uniformity 2023-01-23 09:01:48 +01:00
Michael Stapelberg 3053f8ad9f re-generate website for previous commit 2023-01-15 18:34:49 +01:00
Michael Stapelberg 546fb4ad51 automation: recommend gok get for pulling in new versions 2023-01-15 18:34:37 +01:00
Michael Stapelberg fb63ef71df ntp: remove go1.9 stubs, we are at go1.19 2023-01-15 15:24:43 +01:00
Michael Stapelberg 77d1e48813 ntp: randomly select a pool address every time
In particular, only pool 2.gokrazy.pool.ntp.org has IPv6 addresses, so this
fixes setting the time via NTP in IPv6-only environments.
2023-01-15 15:18:33 +01:00
Michael Stapelberg 26498e13c5 ntp: also apply jitter when setting the time failed
for friendlier backoff behavior
2023-01-15 15:18:13 +01:00