5 Commits

Author SHA1 Message Date
Tim H 1d4c6badf3 Always listen on gokrazy.HTTPUnixSocket (#296)
The change is made to allow other tools like breakglass or mkfs to
interact with the Gokrazy API when TLS is enabled. The tools currently
make HTTP requests to get system information or trigger reboots. When
TLS is enabled, these requests fail because Gokrazy redirects all HTTP
requests to HTTPS. While it is possible to configure the respective
clients to properly validate (self-signed) certificates, doing so is
cumbersome. Therefore, always listen on the Unix socket to avoid the
complexity of certificate validation. Username and password must still
be provided and will be validated.
2025-02-22 07:08:47 +01:00
Brad Fitzpatrick 6826c723ab Only permit HTTP access over unix socket when password unset (#268)
Updates gokrazy/gokrazy#265

Signed-off-by: Brad Fitzpatrick <brad@danga.com>
2024-06-29 16:20:36 +02:00
Michael Stapelberg e950d9699a remove bundled strings.Cut in favor of standard library
(now that Go 1.18 is our minimum version)
2022-08-07 10:46:11 +02:00
oliverpool ea6f2d6932 authentication: always send WWW-Authenticate, constant time comparison (#120) 2022-03-24 17:59:04 +01:00
Michael Stapelberg 38af7fd18d Initial commit 2017-03-04 11:22:48 +01:00