mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-09-12 19:51:00 +05:00
style: apply audit formatting
This commit is contained in:
parent
b95d4e6a24
commit
a945df2c64
@ -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]"');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@ -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]"',
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
@ -416,4 +416,4 @@ export const getBackupCommand = (
|
||||
echo "[$(date)] ✅ Backup uploaded successfully" >> ${logPath};
|
||||
echo "Backup done ✅" >> ${logPath};
|
||||
`;
|
||||
};
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user