mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
feat(logging): strengthen secret redaction and add admin controls (#12151)
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Actions\Service\RestartServiceApplication;
|
||||
use App\Actions\Service\StopServiceApplication;
|
||||
use App\Actions\Service\UpdateServiceApplicationFromApi;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\EnvironmentVariable;
|
||||
use App\Models\ServerSetting;
|
||||
use App\Models\Service;
|
||||
use App\Models\ServiceApplication;
|
||||
@@ -532,7 +533,10 @@ class ServiceApplicationsController extends Controller
|
||||
}
|
||||
|
||||
$lines = normalizeLogLines($request->query('lines'));
|
||||
$logs = getContainerLogs($server, $containerName, $lines);
|
||||
$logs = sanitizeLogsForExport(
|
||||
getContainerLogs($server, $containerName, $lines),
|
||||
EnvironmentVariable::logRedactionSecretsFor($serviceApplication->service),
|
||||
);
|
||||
|
||||
return response()->json([
|
||||
'logs' => $logs,
|
||||
|
||||
Reference in New Issue
Block a user