style: apply audit formatting

This commit is contained in:
github-actions[bot] 2026-09-04 22:13:16 +00:00 committed by Furox88
parent b95d4e6a24
commit a945df2c64
3 changed files with 4 additions and 4 deletions

View File

@ -1,9 +1,9 @@
import { RCLONE_DESTINATION_PROVIDERS } from "@dokploy/server/db/validations/destination";
import { redactRcloneCredentials } from "@dokploy/server/utils/backups/redact";
import {
assertSafeRclonePath,
getRclonePathAndFlags,
} from "@dokploy/server/utils/backups/utils";
import { redactRcloneCredentials } from "@dokploy/server/utils/backups/redact";
import { describe, expect, test } from "vitest";
const destination = (overrides: Record<string, unknown> = {}) =>
@ -68,4 +68,4 @@ describe("issue #416 credential redaction", () => {
expect(redacted).not.toContain("obscured-secret");
expect(redacted).toContain('--sftp-key-file-pass="[REDACTED]"');
});
});
});

View File

@ -8,4 +8,4 @@ export const redactRcloneCredentials = (command: string): string => {
/(--(?:s3-access-key-id|s3-secret-access-key|ftp-pass|sftp-pass|sftp-key-file-pass)=)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|[^\s]+)/g,
'$1"[REDACTED]"',
);
};
};

View File

@ -416,4 +416,4 @@ export const getBackupCommand = (
echo "[$(date)] ✅ Backup uploaded successfully" >> ${logPath};
echo "Backup done ✅" >> ${logPath};
`;
};
};