From c9b85e9f1280a4efa70c0401fdf3677eadefec4e Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Thu, 22 Oct 2026 21:52:57 -0500 Subject: log warning at startup if dumpable is enabled --- src/slskd/Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs index e236886b..cdfbbf33 100644 --- a/src/slskd/Program.cs +++ b/src/slskd/Program.cs @@ -509,6 +509,11 @@ namespace slskd Log.Information("Using application directory {AppDirectory}", AppDirectory); Log.Information("Using configuration file {ConfigurationFile}", ConfigurationFile); + if (OptionsAtStartup.Flags.Dumpable) + { + Log.Warning("Application memory dumps are ENABLED; this can expose sensitive information, including environment variables from the shell. Disable Flags.Dumpable to disable."); + } + if (OptionsAtStartup.Flags.NoConfigWatch) { Log.Warning("Configuration watch DISABLED; all configuration changes will require a restart to take effect"); -- cgit v1.2.3