Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/renderer/lib/containers/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,15 @@ export class DockerContainer extends ContainerManager {
fs.writeFileSync(this.composeFilePath, composeContent, { encoding: "utf-8" });

containerLogger.info(`Wrote to compose file at: ${this.composeFilePath}`);
containerLogger.info(`Compose file content: ${JSON.stringify(composeContent, null, 2)}`);

// mask plain password
const composePassword = compose.services.windows.environment.PASSWORD ?? "";
const maskedCompose = JSON.stringify(composeContent, null, 2).replaceAll(
composePassword,
"*****",
);

containerLogger.info(`Compose file content: ${maskedCompose}`);
}

async compose(direction: ComposeDirection): Promise<void> {
Expand Down
10 changes: 9 additions & 1 deletion src/renderer/lib/containers/podman.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,15 @@ export class PodmanContainer extends ContainerManager {
fs.writeFileSync(this.composeFilePath, composeContent, { encoding: "utf-8" });

containerLogger.info(`Wrote to compose file at: ${this.composeFilePath}`);
containerLogger.info(`Compose file content: ${JSON.stringify(composeContent, null, 2)}`);

// mask plain password
const composePassword = compose.services.windows.environment.PASSWORD ?? "";
const maskedCompose = JSON.stringify(composeContent, null, 2).replaceAll(
composePassword,
"*****",
);

containerLogger.info(`Compose file content: ${maskedCompose}`);
}

async compose(direction: ComposeDirection): Promise<void> {
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/lib/winboat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,8 @@ export class Winboat {
}

args = args.filter((v, _i, _a) => v.trim() !== "");
// Remove plain password from logs
cmd = cmd.replaceAll(password, "*****");

this.appMgr?.incrementAppUsage(app);
this.appMgr?.writeToDisk();
Expand Down