Skip to content

Commit

Permalink
fix(log): add clone to mask
Browse files Browse the repository at this point in the history
  • Loading branch information
wyvern8 committed Jul 16, 2018
1 parent d242d24 commit 299be98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/agent/AgentUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ export class AgentUtils {
}

static varMask(key, val) {
if (new RegExp('LOGIN|OAUTH|KEY|TOKEN|SECRET|PASS').test(key)) {
if (new RegExp('LOGIN|OAUTH|KEY|TOKEN|SECRET|PASS|CLONE').test(key)) {
return this.maskString(val);
} else {
return val;
Expand Down
2 changes: 1 addition & 1 deletion src/agent/EventHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ export class EventHandler extends Plugin {
let taskMasked = _.cloneDeep(task);
if (taskMasked.options && taskMasked.options.env) {
Object.keys(taskMasked.options.env).forEach(key => {
if (new RegExp('LOGIN|OAUTH|KEY|TOKEN|SECRET|PASSW').test(key)) {
if (new RegExp('LOGIN|OAUTH|KEY|TOKEN|SECRET|PASSW|CLONE').test(key)) {
taskMasked.options.env[key] = AgentUtils.maskString(
taskMasked.options.env[key]
);
Expand Down

0 comments on commit 299be98

Please sign in to comment.