修复:避免在连接导出和日志中泄露敏感信息 / avoid leaking connection credentials in exports and logs (#16)

* fix: redact ssh password from connection exports

* test: cover redacted connection targets

* fix: avoid logging connection credentials

* fix(redis): support stream value preview
This commit is contained in:
Sugar
2026-04-30 15:44:53 +08:00
committed by GitHub
parent 9e58fefab8
commit ac76aadbed
8 changed files with 266 additions and 18 deletions
+1 -1
View File
@@ -459,7 +459,7 @@ export const useConnectionStore = defineStore("connection", () => {
const { writeTextFile } = await import("@tauri-apps/plugin-fs");
const path = await save({ filters: [{ name: "JSON", extensions: ["json"] }], defaultPath: "dbx-connections.json" });
if (!path) return;
const data = connections.value.map((c) => ({ ...c, password: "" }));
const data = connections.value.map((c) => ({ ...c, password: "", ssh_password: "" }));
await writeTextFile(path, JSON.stringify(data, null, 2));
}