From cd323acd4905a558786b029ff5a30371c4512956 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 8 Apr 2025 16:12:44 -0400 Subject: [PATCH] fix: remove some unused fields from the report object (#1342) ## Summary by CodeRabbit - **New Features** - Enhanced configuration settings by adding secure placeholders for sensitive data. - **Chores** - Refreshed internal timestamp records to reflect current download times. --- api/src/unraid-api/cli/report.command.ts | 11 +++++++++++ .../downloaded/.login.php.last-download-time | 2 +- .../DefaultPageLayout.php.last-download-time | 2 +- .../downloaded/Notifications.page.last-download-time | 2 +- .../downloaded/auth-request.php.last-download-time | 2 +- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/api/src/unraid-api/cli/report.command.ts b/api/src/unraid-api/cli/report.command.ts index 9613eb61f..7ca79a88e 100644 --- a/api/src/unraid-api/cli/report.command.ts +++ b/api/src/unraid-api/cli/report.command.ts @@ -62,6 +62,17 @@ export class ReportCommand extends CommandRunner { connectionStatus: { running: 'yes' | 'no' }; }; config.connectionStatus.running = apiRunning ? 'yes' : 'no'; + config.remote = { + ...config.remote, + apikey: 'REDACTED', + localApiKey: 'REDACTED', + accesstoken: 'REDACTED', + idtoken: 'REDACTED', + refreshtoken: 'REDACTED', + ssoSubIds: 'REDACTED', + allowedOrigins: 'REDACTED', + email: 'REDACTED', + }; this.logger.clear(); this.logger.info(JSON.stringify(config, null, 2)); } catch (error) { diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time index 6f5a43c57..3f9a43ff4 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time @@ -1 +1 @@ -1744055516073 \ No newline at end of file +1744137872623 diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php.last-download-time index 6ad9665f8..c3d2ff4fd 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php.last-download-time @@ -1 +1 @@ -1744055515643 \ No newline at end of file +1744137872211 diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/Notifications.page.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/Notifications.page.last-download-time index 149518b92..107a6c642 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/Notifications.page.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/Notifications.page.last-download-time @@ -1 +1 @@ -1744055515843 \ No newline at end of file +1744137872410 diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/auth-request.php.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/auth-request.php.last-download-time index 78386d6e8..f16d0a4af 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/auth-request.php.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/auth-request.php.last-download-time @@ -1 +1 @@ -1744055516267 \ No newline at end of file +1744137872839