Skip to content

Commit

Permalink
remove more fields
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed Jul 2, 2020
1 parent 3de9ca3 commit 2564a9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,8 @@ export const factory = (): PolicyConfig => {
mode: ProtectionModes.prevent,
},
logging: {
stdout: 'debug',
file: 'info',
},
advanced: {
elasticsearch: {
kernel: {
connect: true,
process: true,
},
},
},
},
mac: {
events: {
Expand All @@ -47,17 +38,8 @@ export const factory = (): PolicyConfig => {
mode: ProtectionModes.prevent,
},
logging: {
stdout: 'debug',
file: 'info',
},
advanced: {
elasticsearch: {
kernel: {
connect: true,
process: true,
},
},
},
},
linux: {
events: {
Expand All @@ -66,17 +48,8 @@ export const factory = (): PolicyConfig => {
network: true,
},
logging: {
stdout: 'debug',
file: 'info',
},
advanced: {
elasticsearch: {
kernel: {
connect: true,
process: true,
},
},
},
},
};
};
15 changes: 0 additions & 15 deletions x-pack/plugins/security_solution/common/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -592,10 +592,8 @@ export interface PolicyConfig {
};
malware: MalwareFields;
logging: {
stdout: string;
file: string;
};
advanced: PolicyConfigAdvancedOptions;
};
mac: {
events: {
Expand All @@ -605,10 +603,8 @@ export interface PolicyConfig {
};
malware: MalwareFields;
logging: {
stdout: string;
file: string;
};
advanced: PolicyConfigAdvancedOptions;
};
linux: {
events: {
Expand All @@ -617,10 +613,8 @@ export interface PolicyConfig {
network: boolean;
};
logging: {
stdout: string;
file: string;
};
advanced: PolicyConfigAdvancedOptions;
};
}

Expand All @@ -642,15 +636,6 @@ export interface UIPolicyConfig {
linux: Pick<PolicyConfig['linux'], 'events'>;
}

interface PolicyConfigAdvancedOptions {
elasticsearch: {
kernel: {
connect: boolean;
process: boolean;
};
};
}

/** Policy: Malware protection fields */
export interface MalwareFields {
mode: ProtectionModes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,30 +118,15 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
},
policy: {
linux: {
advanced: {
elasticsearch: {
kernel: { connect: true, process: true },
},
},
events: { file: false, network: true, process: true },
logging: { file: 'info', stdout: 'debug' },
logging: { file: 'info' },
},
mac: {
advanced: {
elasticsearch: {
kernel: { connect: true, process: true },
},
},
events: { file: false, network: true, process: true },
logging: { file: 'info', stdout: 'debug' },
logging: { file: 'info' },
malware: { mode: 'prevent' },
},
windows: {
advanced: {
elasticsearch: {
kernel: { connect: true, process: true },
},
},
events: {
dll_and_driver_load: true,
dns: true,
Expand All @@ -151,7 +136,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
registry: true,
security: true,
},
logging: { file: 'info', stdout: 'debug' },
logging: { file: 'info' },
malware: { mode: 'prevent' },
},
},
Expand Down

0 comments on commit 2564a9e

Please sign in to comment.