Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [Security Solution][Case] Fix connector's dropdown with conflicting requests (#72037) #72261

Merged
merged 1 commit into from
Jul 17, 2020

Conversation

cnasikas
Copy link
Member

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / X-Pack API Integration Tests.x-pack/test/api_integration/apis/fleet/agents/checkin·ts.apis Fleet Endpoints fleet_agents_checkin should return a 200 if this a valid checkin access

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://github.com/elastic/kibana/issues/62054

[00:00:00]       │
[00:00:00]         │ proc [kibana]   log   [12:57:19.755] [warning][plugins][reporting] Enabling the Chromium sandbox provides an additional layer of protection.
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook
[00:07:58]           └-: Fleet Endpoints
[00:07:58]             └-> "before all" hook
[00:08:02]             └-: fleet_agents_checkin
[00:08:02]               └-> "before all" hook
[00:08:02]               └-> "before all" hook
[00:08:02]                 │ info [fleet/agents] Loading "mappings.json"
[00:08:02]                 │ info [fleet/agents] Loading "data.json"
[00:08:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_1/onQ57KW_RcK6tfPyJFqzZw] deleting index
[00:08:03]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/L1Z3U67KRH-a-8D_NXW1uw] deleting index
[00:08:03]                 │ info [fleet/agents] Deleted existing index [".kibana_2",".kibana_1"]
[00:08:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:08:03]                 │ info [fleet/agents] Created index ".kibana_1"
[00:08:03]                 │ debg [fleet/agents] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:08:03]                 │ info [fleet/agents] Indexed 12 docs into ".kibana"
[00:08:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_1/D7L7022wS5m1k3eNYF_jXQ] update_mapping [_doc]
[00:08:03]                 │ debg Migrating saved objects
[00:08:03]                 │ proc [kibana]   log   [13:05:23.229] [info][savedobjects-service] Detected mapping change in "dynamic"
[00:08:03]                 │ proc [kibana]   log   [13:05:23.232] [info][savedobjects-service] Creating index .kibana_2.
[00:08:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:03]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:03]                 │ proc [kibana]   log   [13:05:23.337] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:03]                 │ proc [kibana]   log   [13:05:23.358] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:03]                 │ proc [kibana]   log   [13:05:23.438] [info][savedobjects-service] Finished in 208ms.
[00:08:03]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:03]               └-> "before all" hook
[00:08:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [events-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:08:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [metrics-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:08:03]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [logs-index_pattern_placeholder] creating index, cause [api], templates [], shards [1]/[1]
[00:08:04]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:05]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:05]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:06]                 │ proc [kibana]  error  [13:05:26.470] [warning][process] UnhandledPromiseRejectionWarning: Error: [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1]: [version_conflict_engine_exception] [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1], with { index_uuid="x1-9QaCNScWDuM7-8MnM4g" & shard="0" & index=".kibana_2" }
[00:08:06]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:08:06]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:08:06]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:08:06]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:08:06]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:08:06]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:08:06]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:06]                 │ proc [kibana]     at emitWarning (internal/process/promises.js:97:15)
[00:08:06]                 │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:08:06]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:08:06]                 │ proc [kibana]  error  [13:05:26.471] [warning][process] Error: [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1]: [version_conflict_engine_exception] [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1], with { index_uuid="x1-9QaCNScWDuM7-8MnM4g" & shard="0" & index=".kibana_2" }
[00:08:06]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:08:06]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:08:06]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:08:06]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:08:06]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:08:06]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:08:06]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:06]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] [.kibana_2/x1-9QaCNScWDuM7-8MnM4g] update_mapping [_doc]
[00:08:08]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.process] for index patterns [metrics-system.process-*]
[00:08:08]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.fsstat] for index patterns [metrics-system.fsstat-*]
[00:08:08]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.network_summary] for index patterns [metrics-system.network_summary-*]
[00:08:08]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.core] for index patterns [metrics-system.core-*]
[00:08:08]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.process_summary] for index patterns [metrics-system.process_summary-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.network] for index patterns [metrics-system.network-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.service] for index patterns [metrics-system.service-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.cpu] for index patterns [metrics-system.cpu-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-system.auth] for index patterns [logs-system.auth-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.raid] for index patterns [metrics-system.raid-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.memory] for index patterns [metrics-system.memory-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.socket] for index patterns [metrics-system.socket-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.entropy] for index patterns [metrics-system.entropy-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.filesystem] for index patterns [metrics-system.filesystem-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.diskio] for index patterns [metrics-system.diskio-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.load] for index patterns [metrics-system.load-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.uptime] for index patterns [metrics-system.uptime-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.users] for index patterns [metrics-system.users-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-system.socket_summary] for index patterns [metrics-system.socket_summary-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-system.syslog] for index patterns [logs-system.syslog-*]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [metrics-endpoint.metadata-mappings]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [metrics-endpoint.metrics-mappings]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.alerts-mappings]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.file-mappings]
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.network-mappings]
[00:08:09]                 │ proc [kibana]  error  [13:05:29.661] [warning][process] PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 111)
[00:08:09]                 │ proc [kibana]     at handledRejection (internal/process/promises.js:71:23)
[00:08:09]                 │ proc [kibana]     at all (internal/process/promises.js:36:14)
[00:08:09]                 │ proc [kibana]     at Promise.then (<anonymous>)
[00:08:09]                 │ proc [kibana]     at Function.all (<anonymous>)
[00:08:09]                 │ proc [kibana]     at installPackage (/dev/shm/workspace/install/kibana-7/x-pack/plugins/ingest_manager/server/services/epm/packages/install.js:186:49)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:08:09]                 │ proc [kibana]  error  [13:05:29.740] [warning][process] UnhandledPromiseRejectionWarning: Error: [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1]: [version_conflict_engine_exception] [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1], with { index_uuid="x1-9QaCNScWDuM7-8MnM4g" & shard="0" & index=".kibana_2" }
[00:08:09]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:08:09]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:08:09]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:08:09]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:08:09]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:08:09]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:09]                 │ proc [kibana]     at emitWarning (internal/process/promises.js:97:15)
[00:08:09]                 │ proc [kibana]     at emitPromiseRejectionWarnings (internal/process/promises.js:143:7)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:69:34)
[00:08:09]                 │ proc [kibana]  error  [13:05:29.741] [warning][process] Error: [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1]: [version_conflict_engine_exception] [epm-packages:system]: version conflict, required seqNo [17], primary term [1]. current document has seqNo [84] and primary term [1], with { index_uuid="x1-9QaCNScWDuM7-8MnM4g" & shard="0" & index=".kibana_2" }
[00:08:09]                 │ proc [kibana]     at respond (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:349:15)
[00:08:09]                 │ proc [kibana]     at checkRespForFailure (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/transport.js:306:7)
[00:08:09]                 │ proc [kibana]     at HttpConnector.<anonymous> (/dev/shm/workspace/install/kibana-7/node_modules/elasticsearch/src/lib/connectors/http.js:173:7)
[00:08:09]                 │ proc [kibana]     at IncomingMessage.wrapper (/dev/shm/workspace/install/kibana-7/node_modules/lodash/lodash.js:4929:19)
[00:08:09]                 │ proc [kibana]     at IncomingMessage.emit (events.js:203:15)
[00:08:09]                 │ proc [kibana]     at endReadableNT (_stream_readable.js:1145:12)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.process-mappings]
[00:08:09]                 │ proc [kibana]  error  [13:05:29.756] [warning][process] PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 113)
[00:08:09]                 │ proc [kibana]     at handledRejection (internal/process/promises.js:71:23)
[00:08:09]                 │ proc [kibana]     at promiseRejectHandler (internal/process/promises.js:36:14)
[00:08:09]                 │ proc [kibana]     at Promise.then (<anonymous>)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:08:09]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.library-mappings]
[00:08:09]               └-> should return a 401 if this a not a valid checkin access
[00:08:09]                 └-> "before each" hook: global before each
[00:08:09]                 │ proc [kibana]  error  [13:05:29.745]  Error: Internal Server Error
[00:08:09]                 │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:132:19)
[00:08:09]                 │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:86:19)
[00:08:09]                 │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/response_adapter.js:81:17)
[00:08:09]                 │ proc [kibana]     at Router.handle (/dev/shm/workspace/install/kibana-7/src/core/server/http/router/router.js:162:34)
[00:08:09]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:08:09]                 │ info [o.e.x.s.a.AuthenticationService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] Authentication using apikey failed - Illegal base64 character 5f
[00:08:09]                 │      java.lang.IllegalArgumentException: Illegal base64 character 5f
[00:08:09]                 │      	at java.util.Base64$Decoder.decode0(Base64.java:791) ~[?:?]
[00:08:09]                 │      	at java.util.Base64$Decoder.decode(Base64.java:567) ~[?:?]
[00:08:09]                 │      	at java.util.Base64$Decoder.decode(Base64.java:590) ~[?:?]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.getCredentialsFromHeader(ApiKeyService.java:623) ~[x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.ApiKeyService.authenticateWithApiKeyIfPresent(ApiKeyService.java:322) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.checkForApiKey(AuthenticationService.java:347) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$0(AuthenticationService.java:329) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.action.ActionListener$1.onResponse(ActionListener.java:63) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.TokenService.getAndValidateToken(TokenService.java:405) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$authenticateAsync$2(AuthenticationService.java:325) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lambda$lookForExistingAuthentication$6(AuthenticationService.java:384) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.lookForExistingAuthentication(AuthenticationService.java:395) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.authenticateAsync(AuthenticationService.java:320) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService$Authenticator.access$000(AuthenticationService.java:261) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:141) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.authc.AuthenticationService.authenticate(AuthenticationService.java:126) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.xpack.security.rest.SecurityRestFilter.handleRequest(SecurityRestFilter.java:63) [x-pack-security-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:236) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.rest.RestController.tryAllHandlers(RestController.java:318) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.rest.RestController.dispatchRequest(RestController.java:176) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.dispatchRequest(AbstractHttpServerTransport.java:318) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.handleIncomingRequest(AbstractHttpServerTransport.java:372) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.http.AbstractHttpServerTransport.incomingRequest(AbstractHttpServerTransport.java:308) [elasticsearch-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:42) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at org.elasticsearch.http.netty4.Netty4HttpRequestHandler.channelRead0(Netty4HttpRequestHandler.java:28) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at org.elasticsearch.http.netty4.Netty4HttpPipeliningHandler.channelRead(Netty4HttpPipeliningHandler.java:58) [transport-netty4-client-7.10.0-SNAPSHOT.jar:7.10.0-SNAPSHOT]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.MessageToMessageCodec.channelRead(MessageToMessageCodec.java:111) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296) [netty-codec-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286) [netty-handler-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:714) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeysPlain(NioEventLoop.java:615) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:578) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:493) [netty-transport-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) [netty-common-4.1.49.Final.jar:4.1.49.Final]
[00:08:09]                 │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:08:09]                 │ proc [kibana]   log   [13:05:29.830] [info][authentication][plugins][security] Authentication attempt failed: [security_exception] missing authentication credentials for REST request [/_security/_authenticate], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } }
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.registry-mappings]
[00:08:10]                 └- ✓ pass  (77ms) "apis Fleet Endpoints fleet_agents_checkin should return a 401 if this a not a valid checkin access"
[00:08:10]               └-> should return a 400 if for a malformed request payload
[00:08:10]                 └-> "before each" hook: global before each
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [metrics-endpoint.policy-mappings]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding component template [logs-endpoint.events.security-mappings]
[00:08:10]                 └- ✓ pass  (119ms) "apis Fleet Endpoints fleet_agents_checkin should return a 400 if for a malformed request payload"
[00:08:10]               └-> should return a 200 if this a valid checkin access
[00:08:10]                 └-> "before each" hook: global before each
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:08:10]                 │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-centos-tests-xl-1594987634864366780] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:08:11]                 │ proc [kibana]   log   [13:05:31.829] [error][ingestManager][plugins] Error: No admin user configured
[00:08:11]                 │ proc [kibana]     at createAPIKey (/dev/shm/workspace/install/kibana-7/x-pack/plugins/ingest_manager/server/services/api_keys/security.js:23:11)
[00:08:11]                 │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:08:12]                 └- ✖ fail: apis Fleet Endpoints fleet_agents_checkin should return a 200 if this a valid checkin access
[00:08:12]                 │      Error: expected 200 "OK", got 500 "Internal Server Error"
[00:08:12]                 │       at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
[00:08:12]                 │       at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
[00:08:12]                 │       at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
[00:08:12]                 │       at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
[00:08:12]                 │       at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
[00:08:12]                 │       at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
[00:08:12]                 │       at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
[00:08:12]                 │       at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
[00:08:12]                 │       at endReadableNT (_stream_readable.js:1145:12)
[00:08:12]                 │       at process._tickCallback (internal/process/next_tick.js:63:19)
[00:08:12]                 │ 
[00:08:12]                 │ 

Stack Trace

Error: expected 200 "OK", got 500 "Internal Server Error"
    at Test._assertStatus (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:268:12)
    at Test._assertFunction (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:283:11)
    at Test.assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:173:18)
    at assert (/dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:131:12)
    at /dev/shm/workspace/kibana/node_modules/supertest/lib/test.js:128:5
    at Test.Request.callback (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:718:3)
    at parser (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/index.js:906:18)
    at IncomingMessage.res.on (/dev/shm/workspace/kibana/node_modules/superagent/lib/node/parsers/json.js:19:7)
    at endReadableNT (_stream_readable.js:1145:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Build metrics

async chunks size

id value diff baseline
securitySolution 7.3MB +650.0B 7.3MB

page load bundle size

id value diff baseline
securitySolution 869.7KB +8.0B 869.6KB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@cnasikas cnasikas merged commit 2913fef into elastic:7.x Jul 17, 2020
@cnasikas cnasikas deleted the backport/7.x/pr-72037 branch July 17, 2020 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants