pref: 日志中加密授权信息输出替换成星号

This commit is contained in:
xiaojunnuo
2025-04-12 00:14:55 +08:00
parent 3d9620abb0
commit 759cfdaabd
46 changed files with 122 additions and 88 deletions
@@ -41,7 +41,7 @@ export class HostShellExecutePlugin extends AbstractTaskPlugin {
async onInstance() {}
async execute(): Promise<void> {
const { script, accessId } = this;
const connectConf = await this.accessService.getById(accessId);
const connectConf = await this.getAccess(accessId);
const sshClient = new SshClient(this.logger);
const scripts = script.split('\n');
@@ -278,7 +278,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
this.logger.error('复制到当前主机功能已迁移到 “复制到本机”插件,请换成复制到本机插件');
return;
}
const connectConf: SshAccess = await this.accessService.getById(accessId);
const connectConf: SshAccess = await this.getAccess(accessId);
const sshClient = new SshClient(this.logger);
if (!accessId) {
@@ -370,7 +370,7 @@ export class UploadCertToHostPlugin extends AbstractTaskPlugin {
});
if (this.script && this.script?.trim()) {
const connectConf: SshAccess = await this.accessService.getById(accessId);
const connectConf: SshAccess = await this.getAccess(accessId);
const sshClient = new SshClient(this.logger);
this.logger.info('执行脚本命令');