Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Markdown.
archivieren, kopieren oder weitergeben könnt.
- **Keine Daten verlassen den ELW.** Stammdaten, Namen und Handynummern
liegen nur auf euren Geräten. Die optionale Mehrgeräte-Verbindung läuft im
LAN oder über Tailscale, TLS-gesichert mit PIN – ohne Cloud, ohne Telemetrie.
LAN, TLS-gesichert mit PIN – ohne Cloud, ohne Telemetrie.
Was genau wo gespeichert wird, steht in
[Datenschutz und Sicherheit](docs/datenschutz-und-sicherheit.md) – die Seite
für die Kreisbrandinspektion und den Datenschutzbeauftragten.
Expand All @@ -74,7 +74,7 @@ Markdown.
| **Checklisten** | Beliebig viele eigene Checklisten aus den Stammdaten – benannt, in frei wählbarer Reihenfolge in der Seitenleiste, Pflichtpunkte markiert, Abschluss im ETB protokolliert |
| **Dateien & Links** | Fotos und PDFs an den Einsatz hängen (landen im Bericht); Schnellzugriff auf Wetter, Karten, Hydrantenplan |
| **PDF-Bericht** | Ein Klick, Abschnitte wählbar, Anhänge eingebettet – fertig für Akte und Kreisbrandinspektion |
| **Mehrere Geräte** | Einsatz auf dem ELW-Laptop hosten, mit Tablet oder zweitem Laptop im LAN/Tailscale mitschreiben; Android-App als Begleitgerät |
| **Mehrere Geräte** | Einsatz auf dem ELW-Laptop hosten, mit Tablet oder zweitem Laptop im LAN mitschreiben; Android-App als Begleitgerät |

## Mit der Tastatur

Expand All @@ -101,7 +101,7 @@ Alle Angaben laut Herstellerseiten, Stand September 2026. Fehler oder
|---|---|---|---|---|---|
| Ohne Internet voll nutzbar | ja | ja | Desktop-Suite ja; Stammdaten und Ticker über das Cloud-Portal ([Quelle](https://fireboard.net/)) | ja, Abgleich sobald wieder online ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, als Browser-App ([Quelle](https://www.fireplan.de/elw)) |
| Daten bleiben im ELW, kein Cloud-Konto | ja, eine Datei pro Einsatz | ja | nein, „cloudbasierte Lösung“ mit Portal-Benutzerkonto ([Quelle](https://fireboard.net/)) | nein, Cloud mit Servern in Deutschland ([Quelle](https://www.missionbuddies.de/faq/)) | k. A. |
| Mehrere Geräte im Einsatz | ja, LAN/Tailscale, TLS-gepinnt, ohne Server | nein | ja, über Portal ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja; gratis auf 2 Geräten, Premium unbegrenzt ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, live nur mit Internet ([Quelle](https://www.fireplan.de/elw)) |
| Mehrere Geräte im Einsatz | ja, im LAN, TLS-gepinnt, ohne Server | nein | ja, über Portal ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja; gratis auf 2 Geräten, Premium unbegrenzt ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | ja, live nur mit Internet ([Quelle](https://www.fireplan.de/elw)) |
| Atemschutzüberwachung | ja, mit Sprachansage, Rückzugsalarm und Sicherheitstrupp | Überwachungstafel | ja, laut Produktseite ([Quelle](https://fireboard.net/)) | ja, Gratis-Stufe ([Quelle](https://www.missionbuddies.de/atemschutzueberwachung/)) | k. A. |
| CO-Messprotokoll | ja, Messreihe je Wohnung | Zettel | k. A. | k. A. | k. A. |
| PDF-Einsatzbericht | ja, Abschnitte wählbar | nein | ja ([Quelle](https://fireboard.net/produkte/module/grundsystem/)) | ja, modulweise Export ([Quelle](https://www.missionbuddies.de/faq/)) | k. A. |
Expand Down
10 changes: 6 additions & 4 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ address the issue before any public disclosure.
[`docs/datenschutz-und-sicherheit.md`](docs/datenschutz-und-sicherheit.md),
written for the Kreisbrandinspektionen and Datenschutzbeauftragte who have
to approve a deployment.
- **Multi-device sync** runs over LAN/Tailscale via SignalR and requires a
share PIN to join an incident. Issues affecting that transport, the PIN gate,
or the PDF export pipeline are very much in scope.
- **Multi-device sync** runs over the LAN via SignalR (in theory over any
network that reaches the host, e.g. a VPN such as Tailscale, which is
untested) and requires a share PIN to join an incident. Issues affecting
that transport, the PIN gate, or the PDF export pipeline are very much in
scope.

## Known limitations

Expand Down Expand Up @@ -127,7 +129,7 @@ one note on why the trust model around the middle two is where it is.
blocks new devices but not the ones already joined
([#288](../../issues/288)).
- **The PIN plus network reachability is the entire access-control
boundary.** A device that can reach the host over the LAN/Tailscale link
boundary.** A device that can reach the host over the LAN
and knows the (guess-budgeted, TLS-protected) PIN is already fully trusted
to make arbitrary changes to the incident, regardless of what operator
name it claims. A compromised or careless device can misattribute its own
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+share-address-lan-only.changed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The address a sharing device shows to join it is now always its LAN address rather than a Tailscale address when one is up, since the command vehicle's own network is the tested setup and a VPN such as Tailscale is documented only as an untested option.
10 changes: 6 additions & 4 deletions docs/datenschutz-und-sicherheit.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,9 @@ des Geräts an; eine Einschränkung auf bestimmte Adressbereiche findet nicht
statt. Die im Programm angezeigte Adresse ist nur ein Vorschlag, den man am
beitretenden Gerät eintragen kann. Praktisch heißt das: **Erreichbarkeit im
Netz plus PIN ist die gesamte Zugangskontrolle.** Im vorgesehenen Einsatzfall –
die eigenen Geräte im eigenen WLAN oder über Tailscale – ist das angemessen; in
einem offenen Netz ist es das nicht.
die eigenen Geräte im eigenen WLAN – ist das angemessen; in einem offenen Netz
ist es das nicht. Theoretisch funktioniert jedes Netz, über das die Geräte den
Gastgeber erreichen, etwa ein VPN wie Tailscale; getestet ist das nicht.

**Android** kann beitreten, aber selbst keinen Einsatz freigeben. Die App ist
ein Begleitgerät.
Expand Down Expand Up @@ -317,8 +318,9 @@ ein Begleitgerät.
Versandweg, Empfängerkreis, Ablage.
- **Weitergabe der PIN** im Einsatz: an wen sie gegeben wird und dass sie nicht
über den Einsatz hinaus verwendet wird.
- **Auswahl der Netzverbindung** für den Mehrgerätebetrieb: eigenes WLAN oder
Tailscale, nicht das offene Gäste-WLAN der Einsatzstelle.
- **Auswahl der Netzverbindung** für den Mehrgerätebetrieb: eigenes WLAN, nicht
das offene Gäste-WLAN der Einsatzstelle. Wer stattdessen ein VPN wie Tailscale
einsetzt, betritt ungetestetes Gelände.

## Einordnung nach DSGVO

Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.App.Shared/Views/IncidentWorkspaceView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
IsVisible="{Binding OperatorDisplay, Converter={x:Static ObjectConverters.IsNotNull}}" />

<!-- Multi-device sharing (#52): expose this open incident to other devices over the
network (loopback, LAN, or a tailnet) — a compact icon button on the status line
network (loopback or LAN) — a compact icon button on the status line
rather than a labelled button on its own row. -->
<StackPanel Orientation="Horizontal" Spacing="10" VerticalAlignment="Center"
IsVisible="{Binding CanHost}">
Expand Down
6 changes: 3 additions & 3 deletions src/LageBuch.App.Shared/Views/OperatorPromptView.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
<TextBlock x:Name="PreviousOperatorLine" Classes="secondary" Margin="0,-4,0,8"
IsVisible="{Binding IsHandover}"
Text="{Binding PreviousOperatorDisplay, StringFormat='Bisher: {0}'}" />
<!-- Join flow, first stage (§6, #459): the host's LAN or Tailscale address/name (hosting
no longer requires Tailscale, #59 follow-up) and its PIN. Who documents here is
asked only once the host is reached, so its own personnel can be suggested. -->
<!-- Join flow, first stage (§6, #459): the host's LAN address or name and its
PIN. Who documents here is asked only once the host is reached, so its own
personnel can be suggested. -->
<StackPanel IsVisible="{Binding IsHostStage}" Spacing="3">
<HeaderedContentControl Classes="field required" Header="GERÄT (NAME ODER IP-ADRESSE)"
Margin="0,4,0,0" ctrl:Field.Error="{Binding HostError}">
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.App/Services/IncidentHostController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace LageBuch.App.Services;
/// Desktop implementation of <see cref="IIncidentHostController"/>: drives the embedded
/// <see cref="IncidentHost"/>, binding it to every interface (<see cref="IPAddress.Any"/>, which
/// <see cref="IncidentHost.StartAsync"/> turns into a dual-stack IPv4+IPv6 bind) so it is reachable
/// over loopback, the LAN (v4 or v6), and a tailnet at once. Lives in the desktop head so ASP.NET
/// over loopback and the LAN (v4 or v6) at once. Lives in the desktop head so ASP.NET
/// Core stays out of the cross-platform AppLogic/Android build.
/// </summary>
internal sealed class IncidentHostController : IIncidentHostController
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.AppLogic/Services/ILastConnectionStore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace LageBuch.AppLogic.Services;
/// <summary>
/// Remembers the last successful join (#464), so the join dialog can prefill it and the Home screen
/// can say where this device was last connected. In practice the host (a station's ELW, a fixed
/// Tailscale node) is set up once and then reused for an entire Einsatz series, and a Lagebuchführer
/// LAN address) is set up once and then reused for an entire Einsatz series, and a Lagebuchführer
/// who has to reconnect mid-Einsatz should not have to ask for the PIN again. A PIN goes stale when
/// the host starts sharing anew; that costs one rejected attempt, after which the dialog asks for it.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.AppLogic/ViewModels/DeviceRequest.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace LageBuch.AppLogic.ViewModels;

// The first step of joining another device's hosted incident (§6, #459): which device to reach.
// Host is the target device's Tailscale name or IP; Pin is the share PIN the host displays. Who
// Host is the target device's name or IP; Pin is the share PIN the host displays. Who
// documents on this device is asked afterwards, from the host's own Stammdaten.
public sealed record DeviceRequest(string Host, string? Pin);
4 changes: 2 additions & 2 deletions src/LageBuch.AppLogic/ViewModels/HomeViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private async Task ShareCrashReportAsync()

/// <summary>
/// "‹Stichwort› · ‹time›" under the host on the Home card; the Stichwort is left out while unset.
/// A line of its own, so a long tailnet name is trimmed rather than broken mid-word on a phone.
/// A line of its own, so a long host name is trimmed rather than broken mid-word on a phone.
/// </summary>
public string? LastConnectionDetail => LastConnection is not { } last
? null
Expand Down Expand Up @@ -680,7 +680,7 @@ private void ResetTrustedCertificate()
ClearCertificateChangedHost();
}

// The address is normally just a Tailscale name (the host binds the fixed SyncProtocol.Port), but
// The address is normally just a host name or IP (the host binds the fixed SyncProtocol.Port), but
// an explicit "host:port" is accepted too — handy for a non-standard port or for reaching a host
// on the same machine during testing.
private static (string Host, int Port) ParseHost(string address)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1669,7 +1669,7 @@ private async Task ToggleSharing()

try
{
// Binds every interface (loopback + LAN + tailnet). Can still fail — most likely the
// Binds every interface (loopback + LAN). Can still fail — most likely the
// port is already taken by another instance sharing on this machine — so surface that
// in the status line rather than letting it escape the command.
// _masterData, not a fresh provider read: joined clients must get the set this
Expand Down
4 changes: 2 additions & 2 deletions src/LageBuch.AppLogic/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ private Task RequestJoinDevice() => NavigateAwayAsync(() =>
_pending = PendingAction.Join;
PendingPrompt = new OperatorPromptViewModel(collectHost: true)
{
// The host address rarely changes once set up (a station's ELW, a fixed Tailscale
// node) -- prefill last time's so the operator doesn't retype it every join.
// The host address rarely changes once set up (a station's ELW, a fixed
// LAN address) -- prefill last time's so the operator doesn't retype it every join.
Host = _home.LastConnection?.Host ?? string.Empty,

// The PIN too, valid for as long as the host keeps sharing: reconnecting mid-Einsatz
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ private static string[] OwnDisplayNames(IEnumerable<Person> personnel) =>
// Quiet until the first press: a prompt that opens already scolding teaches nothing.
private bool _errorsShown;

// The host's LAN or Tailscale address/name, entered only in the join flow. Mandatory there (gates Confirm).
// The host's LAN address or name, entered only in the join flow. Mandatory there (gates Confirm).
[ObservableProperty]
[NotifyPropertyChangedFor(nameof(HostError))]
private string _host = string.Empty;
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.Domain/Files/IncidentFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public sealed record IncidentFile
// before sending it (FilesViewModel.AddFileAsync) and fully buffers a downloaded file too
// (RemoteIncidentSession.GetFileBytesAsync) — so this cap bounds that client-side allocation,
// not wire-transfer size. 25 MB keeps that a one-shot, few-second transfer on the app's
// Tailscale-LAN sync path while comfortably covering a phone photo or a scanned PDF.
// LAN sync path while comfortably covering a phone photo or a scanned PDF.
public const long MaxSizeMegabytes = 25;

public const long MaxSizeBytes = MaxSizeMegabytes * 1024 * 1024;
Expand Down
34 changes: 5 additions & 29 deletions src/LageBuch.Sync.Hosting/LocalNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,57 +6,33 @@ namespace LageBuch.Sync.Hosting;

/// <summary>
/// Picks a friendly IPv4 address to <em>show</em> the user as the one other devices dial. The host
/// itself binds every interface (<see cref="IPAddress.Any"/>), so this is purely cosmetic: it
/// prefers a Tailscale address (interface named <c>tailscale*</c>/<c>ts*</c>, or a <c>100.64.0.0/10</c>
/// CGNAT IP) when a tailnet is up, then any other private LAN IPv4, and finally falls back to
/// loopback so there is always something to show — two instances on one machine still reach each
/// other over <c>127.0.0.1</c>.
/// itself binds every interface (<see cref="IPAddress.Any"/>), so this is purely cosmetic: it shows
/// the first private LAN IPv4 and falls back to loopback so there is always something to show — two
/// instances on one machine still reach each other over <c>127.0.0.1</c>.
/// </summary>
public static class LocalNetwork
{
/// <summary>The nicest dialable IPv4 to display; never null (loopback when nothing else is up).</summary>
public static IPAddress DisplayAddress()
{
IPAddress? privateLan = null;
foreach (var nic in NetworkInterface.GetAllNetworkInterfaces())
{
if (nic.OperationalStatus != OperationalStatus.Up)
{
continue;
}

var looksLikeTailscale = nic.Name.StartsWith("tailscale", StringComparison.OrdinalIgnoreCase)
|| nic.Name.StartsWith("ts", StringComparison.OrdinalIgnoreCase);
foreach (var addr in nic.GetIPProperties().UnicastAddresses)
{
var ip = addr.Address;
if (ip.AddressFamily != AddressFamily.InterNetwork)
{
continue;
}

// A tailnet address is the best answer — return the moment we see one.
if (looksLikeTailscale || IsCarrierGradeNat(ip))
if (ip.AddressFamily == AddressFamily.InterNetwork && IsPrivateLan(ip))
{
return ip;
}

// Otherwise remember the first private LAN address as the fallback below Tailscale.
if (privateLan is null && IsPrivateLan(ip))
{
privateLan = ip;
}
}
}

return privateLan ?? IPAddress.Loopback;
}

// 100.64.0.0/10 — the CGNAT block Tailscale draws from.
private static bool IsCarrierGradeNat(IPAddress address)
{
var b = address.GetAddressBytes();
return b[0] == 100 && b[1] >= 64 && b[1] <= 127;
return IPAddress.Loopback;
}

// RFC 1918 private ranges: 10/8, 172.16/12, 192.168/16.
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.Sync/RemoteIncidentSession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private RemoteIncidentSession(
/// <see cref="HttpRequestException"/> when the host isn't sharing / is unreachable — including
/// when the Stammdaten fetch itself fails, which surfaces the same way.
/// </summary>
/// <param name="host">The host's Tailscale/LAN address to dial.</param>
/// <param name="host">The host's LAN address to dial.</param>
/// <param name="op">This device's operator, attributed on every command it sends.</param>
/// <param name="localVersion">
/// This device's app version. Display only — it names this device in a refusal message and is
Expand Down
2 changes: 1 addition & 1 deletion src/LageBuch.Sync/SyncProtocol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace LageBuch.Sync;
/// <summary>Shared protocol constants and the version-handshake payload (see §7).</summary>
public static class SyncProtocol
{
/// <summary>Fixed port the host binds on its Tailscale address; clients dial the same.</summary>
/// <summary>Fixed port the host binds on every interface; clients dial the same.</summary>
public const int Port = 5859;

/// <summary>
Expand Down
9 changes: 4 additions & 5 deletions tests/LageBuch.Acceptance.Tests/SharePanelRenderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@

namespace LageBuch.Acceptance.Tests;

// Hosting no longer requires Tailscale (#59 follow-up). While sharing, the header line shows only
// the PIN; the address to dial (LAN + localhost) sits in a flyout behind it, because it is set up
// once in the ELW and the header line has no room for it next to the Lagebuchführer readout. This
// pins that the toggle flips the button label, keeps the URLs off the header line and puts them
// behind the PIN — and doubles as the PR screenshot capture.
// While sharing, the header line shows only the PIN; the address to dial (LAN + localhost) sits in
// a flyout behind it, because it is set up once in the ELW and the header line has no room for it
// next to the Lagebuchführer readout. This pins that the toggle flips the button label, keeps the
// URLs off the header line and puts them behind the PIN — and doubles as the PR screenshot capture.
public class SharePanelRenderTests
{
private sealed class FakeHost : IIncidentHostController
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ private static IncidentWorkspaceViewModel MutableWorkspace(AlarmMute mute)
alarmMute: mute);
}

// --- Network sharing (no Tailscale required) --------------------------------------------
// --- Network sharing --------------------------------------------------------------------
[Fact]
public async Task Toggling_sharing_on_starts_the_host_and_offers_its_address_without_a_status_line()
{
Expand Down
Loading