[Fleet] change tamper protection default to false (#155740)

This commit is contained in:
Joey F. Poon 2023-04-26 00:24:49 -05:00 committed by GitHub
parent d32d2d2b32
commit 11a447a1e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 5 deletions

View file

@ -455,12 +455,12 @@ describe('getFullAgentPolicy', () => {
const agentPolicy = await getFullAgentPolicy(savedObjectsClientMock.create(), 'agent-policy');
expect(agentPolicy!.agent!.protection).toMatchObject({
enabled: true,
enabled: false,
uninstall_token_hash: '',
signing_key: 'thisisapublickey',
});
expect(agentPolicy!.signed).toMatchObject({
data: 'eyJpZCI6ImFnZW50LXBvbGljeSIsImFnZW50Ijp7InByb3RlY3Rpb24iOnsiZW5hYmxlZCI6dHJ1ZSwidW5pbnN0YWxsX3Rva2VuX2hhc2giOiIiLCJzaWduaW5nX2tleSI6InRoaXNpc2FwdWJsaWNrZXkifX19',
data: 'eyJpZCI6ImFnZW50LXBvbGljeSIsImFnZW50Ijp7InByb3RlY3Rpb24iOnsiZW5hYmxlZCI6ZmFsc2UsInVuaW5zdGFsbF90b2tlbl9oYXNoIjoiIiwic2lnbmluZ19rZXkiOiJ0aGlzaXNhcHVibGlja2V5In19fQ==',
signature: 'thisisasignature',
});
});

View file

@ -190,7 +190,7 @@ export async function getFullAgentPolicy(
const publicKey = await messageSigningService.getPublicKey();
fullAgentPolicy.agent.protection = {
enabled: true,
enabled: false,
uninstall_token_hash: '',
signing_key: publicKey,
};

View file

@ -66,7 +66,8 @@ describe('Isolate command', () => {
}
});
it('should allow filtering endpoint by Isolated status', () => {
// flaky
it.skip('should allow filtering endpoint by Isolated status', () => {
cy.visit(APP_ENDPOINTS_PATH);
closeAllToasts();
checkEndpointListForIsolatedHosts(false);

View file

@ -150,7 +150,8 @@ describe('Response actions', () => {
cleanupRule(ruleId);
});
it('All response action controls are disabled', () => {
// flaky
it.skip('All response action controls are disabled', () => {
visitRuleActions(ruleId);
cy.getByTestSubj('response-actions-wrapper').within(() => {
cy.getByTestSubj('Endpoint Security-response-action-type-selection-option').should(