Piattaforme: istanza unica dopo lo spostamento dei dati, avvio sicuro del contenitore, rilascio con prove e immagine, accesso senza reindirizzamenti esterni (pkg-1, pkg-2, pkg-3, pkg-4, pkg-5, pkg-6, websec-2, web-8, websec-3)

Registro di casa 192.168.30.23:3000 (HTTP) nel modello Unraid, in compose e nel rilascio con buildx; profilo seccomp fuori da /dati.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Claude-Session: https://claude.ai/code/session_01Mzbb6zeFTjT6Rp8b92AVkA
This commit is contained in:
Claude committed 2026-10-14 00:59:18 +00:00
1 parent 78c92eb2a4
commit dd9320c54b
36 files changed
+1683 -152

No files matched your search

+17 -1
View File
@@ -47,6 +47,13 @@ public interface IDesktopShell
/// <summary>Moves the main window of a process (Edge) out of view, still open: never minimised (S2).</summary>
Task HideProcessWindowAsync(int processId, CancellationToken ct);
/// <summary>
/// Ties a process Febe started (Edge) to the life of Febe.exe: Windows ends it, with the processes it opens, when
/// Febe ends — also after a crash or «Termina attività», so that it never stays behind holding the profile and the
/// debugging port. False when Windows refused (the process then lives on its own, as before).
/// </summary>
bool EndWithFebe(System.Diagnostics.Process process);
}
/// <summary>
@@ -160,7 +167,9 @@ public sealed class DesktopPlatform : IFebePlatform
/// <summary>
/// Edge for the last fallback of S2: the same <see cref="ChromiumProcessHost"/> as Docker, with its fixed DevTools
/// port on 127.0.0.1, a profile of its own inside <c>Dati\browser</c> (so «Scollega» deletes both), preferences
/// with password saving and autofill off, and the switches of S2.
/// with password saving and autofill off, and the switches of S2. Every Edge started is tied to the life of
/// Febe.exe (<see cref="IDesktopShell.EndWithFebe"/>): an Edge left behind by a crash would keep the port, and every
/// later start would find it «occupata».
/// </summary>
private ChromiumBrowser CreateEdge(FebePlatformContext context, string executable) => new(
new ChromiumBrowserSettings
@@ -177,6 +186,13 @@ public sealed class DesktopPlatform : IFebePlatform
ExtraArguments = BrowserArguments.ForEdge(),
SessionCookie = _options.Site.SessionCookie,
SeedProfilePreferences = true,
ProcessStarted = process =>
{
if (!_shell.EndWithFebe(process))
{
context.Log.Warn("browser", "Windows non ha legato Edge a Febe: se Febe si chiudesse all'improvviso, Edge resterebbe aperto (chiudilo dal Gestione attività).");
}
},
},
},
context.Clock,