* ECS audit logging * Apply suggestions from code review Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * Update x-pack/plugins/security/server/authentication/audit_events.ts Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * Update docs/settings/security-settings.asciidoc Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * remove audit trail service from core * fix test * Updated docs and added beta warning * Added dev docs * Tweaks * Plugin list changes * Apply suggestions from technical writers Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co> * Added docs suggestion * Added api integration tests * Added suggestions from platform team * Update x-pack/plugins/security/server/audit/audit_service.test.ts Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Update x-pack/plugins/security/server/audit/audit_service.test.ts Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Update x-pack/plugins/security/server/audit/audit_service.test.ts Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Update docs/user/security/audit-logging.asciidoc Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Update docs/settings/security-settings.asciidoc Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Update x-pack/plugins/security/server/config.ts Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com> * Added suggestions from PR * Grouped events table * Update x-pack/plugins/security/server/audit/audit_events.ts Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * Update x-pack/plugins/security/server/audit/audit_events.ts Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * Fixed ECS version number in docs Co-authored-by: Larry Gregory <larry.gregory@elastic.co> * Added suggestions from code review * Removed beta * Added suggestions from code review Co-authored-by: Larry Gregory <larry.gregory@elastic.co> Co-authored-by: Kaarina Tungseth <kaarina.tungseth@elastic.co> Co-authored-by: Joe Portner <5295965+jportner@users.noreply.github.com>
38 lines
1.4 KiB
TypeScript
38 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License;
|
|
* you may not use this file except in compliance with the Elastic License.
|
|
*/
|
|
|
|
import { resolve } from 'path';
|
|
import { FtrConfigProviderContext } from '@kbn/test/types/ftr';
|
|
|
|
export default async function ({ readConfigFile }: FtrConfigProviderContext) {
|
|
const xPackAPITestsConfig = await readConfigFile(require.resolve('../api_integration/config.ts'));
|
|
|
|
const auditLogPlugin = resolve(__dirname, './fixtures/audit/audit_log');
|
|
const auditLogPath = resolve(__dirname, './fixtures/audit/audit.log');
|
|
|
|
return {
|
|
testFiles: [require.resolve('./tests/audit')],
|
|
servers: xPackAPITestsConfig.get('servers'),
|
|
security: { disableTestUser: true },
|
|
services: xPackAPITestsConfig.get('services'),
|
|
junit: {
|
|
reportName: 'X-Pack Security API Integration Tests (Audit Log)',
|
|
},
|
|
esTestCluster: xPackAPITestsConfig.get('esTestCluster'),
|
|
kbnTestServer: {
|
|
...xPackAPITestsConfig.get('kbnTestServer'),
|
|
serverArgs: [
|
|
...xPackAPITestsConfig.get('kbnTestServer.serverArgs'),
|
|
`--plugin-path=${auditLogPlugin}`,
|
|
'--xpack.security.audit.enabled=true',
|
|
'--xpack.security.audit.appender.kind=file',
|
|
`--xpack.security.audit.appender.path=${auditLogPath}`,
|
|
'--xpack.security.audit.appender.layout.kind=json',
|
|
],
|
|
},
|
|
};
|
|
}
|