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][Endpoint] Mark code for refactor (#104278) #104292

Merged
merged 1 commit into from
Jul 5, 2021

Conversation

kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/observability/feature_controls/observability_security·ts.Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:11:31]         └-: Observability specs
[00:11:31]           └-> "before all" hook in "Observability specs"
[00:11:31]           └-: feature controls
[00:11:31]             └-> "before all" hook in "feature controls"
[00:11:31]             └-: observability security feature controls
[00:11:31]               └-> "before all" hook in "observability security feature controls"
[00:11:31]               └-> "before all" hook in "observability security feature controls"
[00:11:31]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "mappings.json"
[00:11:31]                 │ info [x-pack/test/functional/es_archives/cases/default] Loading "data.json.gz"
[00:11:31]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_001/bSqV32_4QgOZWnoBf432rA] deleting index
[00:11:31]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_task_manager_7.15.0_001/L_cfQ7QDR4SEG0JeY-S_2g] deleting index
[00:11:31]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_1/He-uWnNyQ-iKJgT1L5B8Tw] deleting index
[00:11:32]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_7.15.0_001"
[00:11:32]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_task_manager_7.15.0_001"
[00:11:32]                 │ info [x-pack/test/functional/es_archives/cases/default] Deleted existing index ".kibana_1"
[00:11:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:11:32]                 │ info [x-pack/test/functional/es_archives/cases/default] Created index ".kibana_1"
[00:11:32]                 │ debg [x-pack/test/functional/es_archives/cases/default] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"1","number_of_shards":"1"}}
[00:11:32]                 │ info [x-pack/test/functional/es_archives/cases/default] Indexed 9 docs into ".kibana_1"
[00:11:32]                 │ debg Migrating saved objects
[00:11:32]                 │ proc [kibana]   log   [13:01:01.881] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 10ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:01.885] [info][savedobjects-service] [.kibana] INIT -> WAIT_FOR_YELLOW_SOURCE. took: 17ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:01.889] [info][savedobjects-service] [.kibana] WAIT_FOR_YELLOW_SOURCE -> CHECK_UNKNOWN_DOCUMENTS. took: 4ms.
[00:11:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_task_manager_7.15.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.15.0_001]
[00:11:32]                 │ proc [kibana]   log   [13:01:01.896] [info][savedobjects-service] [.kibana] CHECK_UNKNOWN_DOCUMENTS -> SET_SOURCE_WRITE_BLOCK. took: 7ms.
[00:11:32]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_1/6SVf9M5lSfmD1qKLiW7l9g]]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.15.0_001][0]]]).
[00:11:32]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_1]
[00:11:32]                 │ proc [kibana]   log   [13:01:02.014] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 133ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.050] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 154ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.090] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 76ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.090] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 219ms
[00:11:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.15.0_reindex_temp]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.15.0_reindex_temp][0]]]).
[00:11:32]                 │ proc [kibana]   log   [13:01:02.183] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 133ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.187] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 4ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.194] [info][savedobjects-service] [.kibana] Starting to process 9 documents.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.195] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_INDEX. took: 7ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.199] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX -> REINDEX_SOURCE_TO_TEMP_INDEX_BULK. took: 5ms.
[00:11:32]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_reindex_temp/FW2MDUYBTDmcHBvYrOCMOw] update_mapping [_doc]
[00:11:32]                 │ proc [kibana]   log   [13:01:02.263] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_INDEX_BULK -> REINDEX_SOURCE_TO_TEMP_READ. took: 64ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.270] [info][savedobjects-service] [.kibana] Processed 9 documents out of 9.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.271] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 7ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.274] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:11:32]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] adding block write to indices [[.kibana_7.15.0_reindex_temp/FW2MDUYBTDmcHBvYrOCMOw]]
[00:11:32]                 │ info [o.e.c.m.MetadataIndexStateService] [node-01] completed adding block write to indices [.kibana_7.15.0_reindex_temp]
[00:11:32]                 │ proc [kibana]   log   [13:01:02.362] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 88ms.
[00:11:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] applying create index request using existing index [.kibana_7.15.0_reindex_temp] metadata
[00:11:32]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.kibana_7.15.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.kibana_7.15.0_001]
[00:11:32]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/ox2XkUTuQBaf4e_wGBcQxg] create_mapping [_doc]
[00:11:32]                 │ info [o.e.c.r.a.AllocationService] [node-01] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.15.0_001][0]]]).
[00:11:32]                 │ proc [kibana]   log   [13:01:02.531] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 169ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.535] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 4ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.538] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 3ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.544] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:11:32]                 │ proc [kibana]   log   [13:01:02.548] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 4ms.
[00:11:32]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/ox2XkUTuQBaf4e_wGBcQxg] update_mapping [_doc]
[00:11:32]                 │ proc [kibana]   log   [13:01:02.619] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 71ms.
[00:11:32]                 │ info [o.e.t.LoggingTaskListener] [node-01] 27939 finished with response BulkByScrollResponse[took=28.2ms,timed_out=false,sliceId=null,updated=9,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:33]                 │ proc [kibana]   log   [13:01:02.724] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 105ms.
[00:11:33]                 │ info [o.e.c.m.MetadataDeleteIndexService] [node-01] [.kibana_7.15.0_reindex_temp/FW2MDUYBTDmcHBvYrOCMOw] deleting index
[00:11:33]                 │ proc [kibana]   log   [13:01:02.802] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 78ms.
[00:11:33]                 │ proc [kibana]   log   [13:01:02.803] [info][savedobjects-service] [.kibana] Migration completed after 935ms
[00:11:33]                 │ debg [x-pack/test/functional/es_archives/cases/default] Migrated Kibana index after loading Kibana data
[00:11:33]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.kibana_7.15.0_001/ox2XkUTuQBaf4e_wGBcQxg] update_mapping [_doc]
[00:11:33]                 │ debg [x-pack/test/functional/es_archives/cases/default] Ensured that default space exists in .kibana
[00:11:33]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true,"visualization:visualize:legacyPieChartsLibrary":true}
[00:11:33]                 │ERROR [POST http://elastic:changeme@localhost:6161/api/kibana/settings] request failed (attempt=1/3): Request failed with status code 409
[00:11:35]               └-: observability cases all privileges
[00:11:35]                 └-> "before all" hook for "shows observability/cases navlink"
[00:11:35]                 └-> "before all" hook for "shows observability/cases navlink"
[00:11:35]                   │ debg creating role cases_observability_all_role
[00:11:35]                   │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [cases_observability_all_role]
[00:11:35]                   │ debg creating user cases_observability_all_user
[00:11:35]                   │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [cases_observability_all_user]
[00:11:35]                   │ debg created user cases_observability_all_user
[00:11:35]                   │ debg SecurityPage.forceLogout
[00:11:35]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:11:36]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:36]                   │ debg Redirecting to /logout to force the logout
[00:11:36]                   │ debg Waiting on the login form to appear
[00:11:36]                   │ debg Waiting for Login Page to appear.
[00:11:36]                   │ debg Waiting up to 100000ms for login page...
[00:11:36]                   │ debg browser[INFO] http://localhost:6161/logout?_t=1625490066250 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:36]                   │
[00:11:36]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:36]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:39]                   │ERROR browser[SEVERE] http://localhost:6161/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:11:39]                   │ debg browser[INFO] http://localhost:6161/42362/bundles/core/core.entry.js 12:157416 "Detected an unhandled Promise rejection.
[00:11:39]                   │      Error: Unauthorized"
[00:11:39]                   │ERROR browser[SEVERE] http://localhost:6161/42362/bundles/core/core.entry.js 5:2514 
[00:11:39]                   │ debg browser[INFO] http://localhost:6161/login?msg=LOGGED_OUT 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:39]                   │
[00:11:39]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:39]                   │ debg --- retry.tryForTime error: .login-form is not displayed
[00:11:40]                   │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:11:40]                   │ERROR browser[SEVERE] http://localhost:6161/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:11:40]                   │ debg TestSubjects.exists(loginForm)
[00:11:40]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:41]                   │ debg Waiting for Login Form to appear.
[00:11:41]                   │ debg Waiting up to 100000ms for login form...
[00:11:41]                   │ debg TestSubjects.exists(loginForm)
[00:11:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:11:41]                   │ debg TestSubjects.setValue(loginUsername, cases_observability_all_user)
[00:11:41]                   │ debg TestSubjects.click(loginUsername)
[00:11:41]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:41]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:11:41]                   │ debg TestSubjects.setValue(loginPassword, cases_observability_all_user-password)
[00:11:41]                   │ debg TestSubjects.click(loginPassword)
[00:11:41]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:41]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:11:41]                   │ debg TestSubjects.click(loginSubmit)
[00:11:41]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:41]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:11:41]                   │ debg Waiting for login result, expected: undefined.
[00:11:41]                   │ debg Waiting up to 20000ms for logout button visible...
[00:11:41]                   │ debg TestSubjects.exists(userMenuButton)
[00:11:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:11:41]                   │ proc [kibana]   log   [13:01:11.352] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:11:44]                   │ debg browser[INFO] http://localhost:6161/app/home 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:44]                   │
[00:11:44]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:44]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenuButton"] is not displayed
[00:11:44]                   │ proc [kibana]   log   [13:01:14.185] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:44]                   │ERROR browser[SEVERE] http://localhost:6161/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:45]                   │ debg TestSubjects.exists(userMenuButton)
[00:11:45]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:11:45]                   │ debg TestSubjects.exists(userMenu)
[00:11:45]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:11:47]                   │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:11:48]                   │ debg TestSubjects.click(userMenuButton)
[00:11:48]                   │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:11:48]                   │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:11:48]                   │ debg TestSubjects.exists(userMenu)
[00:11:48]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:11:48]                   │ debg TestSubjects.exists(userMenu > logoutLink)
[00:11:48]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:11:48]                 └-> shows observability/cases navlink
[00:11:48]                   └-> "before each" hook: global before each for "shows observability/cases navlink"
[00:11:48]                   │ debg isGlobalLoadingIndicatorVisible
[00:11:48]                   │ debg TestSubjects.exists(globalLoadingIndicator)
[00:11:48]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:11:50]                   │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:11:50]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:50]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:50]                   │ debg TestSubjects.exists(collapsibleNav)
[00:11:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:11:53]                   │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:11:53]                   │ debg TestSubjects.click(toggleNavButton)
[00:11:53]                   │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:11:53]                   │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:11:53]                   │ debg TestSubjects.find(collapsibleNav)
[00:11:53]                   │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:11:53]                   │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:11:53]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:53]                   │ debg Find.clickByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:53]                   │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:11:53]                   └- ✓ pass  (5.4s) "Observability specs feature controls observability security feature controls observability cases all privileges shows observability/cases navlink"
[00:11:53]                 └-> landing page shows "Create new case" button
[00:11:53]                   └-> "before each" hook: global before each for "landing page shows "Create new case" button"
[00:11:53]                   │ debg navigateToActualUrl http://localhost:6161/app/observability/cases
[00:11:54]                   │ debg browser[INFO] http://localhost:6161/app/observability/cases?_t=1625490083648 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:54]                   │
[00:11:54]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:54]                   │ debg currentUrl = http://localhost:6161/app/observability/cases
[00:11:54]                   │          appUrl = http://localhost:6161/app/observability/cases
[00:11:54]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:54]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:55]                   │ debg TestSubjects.find(createNewCaseBtn)
[00:11:55]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=20000
[00:11:55]                   │ proc [kibana]   log   [13:01:25.299] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:55]                   │ proc [kibana]   log   [13:01:25.439] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:11:55]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:11:55]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:11:55]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:11:55]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:11:55]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:11:55]                   │ proc [kibana]   meta: {
[00:11:55]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:11:55]                   │ proc [kibana]     statusCode: 403,
[00:11:55]                   │ proc [kibana]     headers: {
[00:11:55]                   │ proc [kibana]       'x-opaque-id': 'd3c89b54-e047-4c68-8f3c-aade617c9b0e',
[00:11:55]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:11:55]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:11:55]                   │ proc [kibana]       'content-length': '501'
[00:11:55]                   │ proc [kibana]     },
[00:11:55]                   │ proc [kibana]     meta: {
[00:11:55]                   │ proc [kibana]       context: null,
[00:11:55]                   │ proc [kibana]       request: [Object],
[00:11:55]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:11:55]                   │ proc [kibana]       connection: [Object],
[00:11:55]                   │ proc [kibana]       attempts: 0,
[00:11:55]                   │ proc [kibana]       aborted: false
[00:11:55]                   │ proc [kibana]     }
[00:11:55]                   │ proc [kibana]   }
[00:11:55]                   │ proc [kibana] }
[00:11:55]                   │ proc [kibana]  error  [13:01:25.331]  Error: Internal Server Error
[00:11:55]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:128:19)
[00:11:55]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:82:19)
[00:11:55]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:73:17)
[00:11:55]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:164:34)
[00:11:55]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:55]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:55]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:55]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:55]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:55]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:55]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:55]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:55]                   │ proc [kibana]  error  [13:01:25.332]  Error: Internal Server Error
[00:11:55]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:61:19)
[00:11:55]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:177:34)
[00:11:55]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:55]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:55]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:55]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:55]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:55]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:55]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:55]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:55]                   │ proc [kibana]   log   [13:01:25.483] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A25.292Z&end=2021-07-05T13%3A01%3A25.293Z&uiFilters=": responding with 403
[00:11:55]                   │ proc [kibana]   log   [13:01:25.486] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:11:55]                   │ proc [kibana]   log   [13:01:25.560] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A25.292Z&end=2021-07-05T13%3A01%3A25.293Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:55]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:55]                   └- ✓ pass  (2.0s) "Observability specs feature controls observability security feature controls observability cases all privileges landing page shows "Create new case" button"
[00:11:55]                 └-> doesn't show read-only badge
[00:11:55]                   └-> "before each" hook: global before each for "doesn't show read-only badge"
[00:11:55]                   │ debg navigateToActualUrl http://localhost:6161/app/observability/cases
[00:11:56]                   │ERROR browser[SEVERE] http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:11:56]                   │          at type_registry_TypeRegistry.get (http://localhost:6161/42362/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55459)
[00:11:56]                   │          at ExternalServiceColumn (http://localhost:6161/42362/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11282)
[00:11:56]                   │          at us (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:11:56]                   │          at wa (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:11:56]                   │          at ml (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:11:56]                   │          at fl (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:11:56]                   │          at ol (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:11:56]                   │          at http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:11:56]                   │          at t.unstable_runWithPriority (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:11:56]                   │          at $r (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:11:56]                   │ debg browser[INFO] http://localhost:6161/app/observability/cases?_t=1625490085656 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:56]                   │
[00:11:56]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:56]                   │ debg currentUrl = http://localhost:6161/app/observability/cases
[00:11:56]                   │          appUrl = http://localhost:6161/app/observability/cases
[00:11:56]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:56]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:57]                   │ debg TestSubjects.missingOrFail(case-callout-e41900b01c9ef0fa81dd6ff326083fb3)
[00:11:57]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="case-callout-e41900b01c9ef0fa81dd6ff326083fb3"]') with timeout=2500
[00:11:57]                   │ proc [kibana]   log   [13:01:27.179] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:57]                   │ proc [kibana]   log   [13:01:27.308] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:11:57]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:11:57]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:11:57]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:11:57]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:11:57]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:11:57]                   │ proc [kibana]   meta: {
[00:11:57]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:11:57]                   │ proc [kibana]     statusCode: 403,
[00:11:57]                   │ proc [kibana]     headers: {
[00:11:57]                   │ proc [kibana]       'x-opaque-id': '3308e2c3-99bc-4ddf-b48d-f7397e305495',
[00:11:57]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:11:57]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:11:57]                   │ proc [kibana]       'content-length': '501'
[00:11:57]                   │ proc [kibana]     },
[00:11:57]                   │ proc [kibana]     meta: {
[00:11:57]                   │ proc [kibana]       context: null,
[00:11:57]                   │ proc [kibana]       request: [Object],
[00:11:57]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:11:57]                   │ proc [kibana]       connection: [Object],
[00:11:57]                   │ proc [kibana]       attempts: 0,
[00:11:57]                   │ proc [kibana]       aborted: false
[00:11:57]                   │ proc [kibana]     }
[00:11:57]                   │ proc [kibana]   }
[00:11:57]                   │ proc [kibana] }
[00:11:57]                   │ proc [kibana]   log   [13:01:27.328] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:11:57]                   │ proc [kibana]   log   [13:01:27.331] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A27.173Z&end=2021-07-05T13%3A01%3A27.174Z&uiFilters=": responding with 403
[00:11:57]                   │ proc [kibana]  error  [13:01:27.222]  Error: Internal Server Error
[00:11:57]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:61:19)
[00:11:57]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:177:34)
[00:11:57]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:57]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:57]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:57]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:57]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:57]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:57]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:57]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:57]                   │ proc [kibana]  error  [13:01:27.221]  Error: Internal Server Error
[00:11:57]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:128:19)
[00:11:57]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:82:19)
[00:11:57]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:73:17)
[00:11:57]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:164:34)
[00:11:57]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:57]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:57]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:57]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:57]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:57]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:57]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:57]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:57]                   │ proc [kibana]   log   [13:01:27.417] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A27.173Z&end=2021-07-05T13%3A01%3A27.174Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:58]                   │ERROR browser[SEVERE] http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:11:58]                   │          at type_registry_TypeRegistry.get (http://localhost:6161/42362/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55459)
[00:11:58]                   │          at ExternalServiceColumn (http://localhost:6161/42362/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11282)
[00:11:58]                   │          at us (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:11:58]                   │          at wa (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:11:58]                   │          at ml (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:11:58]                   │          at fl (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:11:58]                   │          at ol (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:11:58]                   │          at http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:11:58]                   │          at t.unstable_runWithPriority (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:11:58]                   │          at $r (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:11:58]                   └- ✓ pass  (2.1s) "Observability specs feature controls observability security feature controls observability cases all privileges doesn't show read-only badge"
[00:11:58]                 └-> allows a case to be created
[00:11:58]                   └-> "before each" hook: global before each for "allows a case to be created"
[00:11:58]                   │ debg navigateToActualUrl http://localhost:6161/app/observability/cases
[00:11:58]                   │ debg browser[INFO] http://localhost:6161/app/observability/cases?_t=1625490087734 281 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:11:58]                   │
[00:11:58]                   │ debg browser[INFO] http://localhost:6161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:59]                   │ debg currentUrl = http://localhost:6161/app/observability/cases
[00:11:59]                   │          appUrl = http://localhost:6161/app/observability/cases
[00:11:59]                   │ debg TestSubjects.find(kibanaChrome)
[00:11:59]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:59]                   │ debg TestSubjects.click(createNewCaseBtn)
[00:11:59]                   │ debg Find.clickByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:11:59]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:11:59]                   │ proc [kibana]   log   [13:01:29.098] [warning][api-authorization][plugins][security] User not authorized for "/api/fleet/epm/packages?experimental=true": responding with 403
[00:11:59]                   │ proc [kibana]   log   [13:01:29.177] [error][http] ResponseError: security_exception: [security_exception] Reason: action [indices:data/read/search] is unauthorized for user [cases_observability_all_user] with roles [cases_observability_all_role], this action is granted by the index privileges [read,all]
[00:11:59]                   │ proc [kibana]     at onBody (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:11:59]                   │ proc [kibana]     at IncomingMessage.onEnd (/dev/shm/workspace/kibana-build-6/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:11:59]                   │ proc [kibana]     at IncomingMessage.emit (events.js:387:35)
[00:11:59]                   │ proc [kibana]     at endReadableNT (internal/streams/readable.js:1317:12)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:82:21) {
[00:11:59]                   │ proc [kibana]   meta: {
[00:11:59]                   │ proc [kibana]     body: { error: [Object], status: 403 },
[00:11:59]                   │ proc [kibana]     statusCode: 403,
[00:11:59]                   │ proc [kibana]     headers: {
[00:11:59]                   │ proc [kibana]       'x-opaque-id': 'd65f81c9-6a27-48cc-8606-45fe6eb28d76',
[00:11:59]                   │ proc [kibana]       'x-elastic-product': 'Elasticsearch',
[00:11:59]                   │ proc [kibana]       'content-type': 'application/json; charset=UTF-8',
[00:11:59]                   │ proc [kibana]       'content-length': '501'
[00:11:59]                   │ proc [kibana]     },
[00:11:59]                   │ proc [kibana]     meta: {
[00:11:59]                   │ proc [kibana]       context: null,
[00:11:59]                   │ proc [kibana]       request: [Object],
[00:11:59]                   │ proc [kibana]       name: 'elasticsearch-js',
[00:11:59]                   │ proc [kibana]       connection: [Object],
[00:11:59]                   │ proc [kibana]       attempts: 0,
[00:11:59]                   │ proc [kibana]       aborted: false
[00:11:59]                   │ proc [kibana]     }
[00:11:59]                   │ proc [kibana]   }
[00:11:59]                   │ proc [kibana] }
[00:11:59]                   │ proc [kibana]  error  [13:01:29.109]  Error: Internal Server Error
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toInternalError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:61:19)
[00:11:59]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:177:34)
[00:11:59]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:59]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:59]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:59]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:59]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:59]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:59]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:59]                   │ proc [kibana]  error  [13:01:29.107]  Error: Internal Server Error
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:128:19)
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:82:19)
[00:11:59]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/response_adapter.js:73:17)
[00:11:59]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:164:34)
[00:11:59]                   │ proc [kibana]     at runMicrotasks (<anonymous>)
[00:11:59]                   │ proc [kibana]     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:11:59]                   │ proc [kibana]     at handler (/dev/shm/workspace/kibana-build-6/src/core/server/http/router/router.js:124:50)
[00:11:59]                   │ proc [kibana]     at exports.Manager.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/toolkit.js:60:28)
[00:11:59]                   │ proc [kibana]     at Object.internals.handler (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:46:20)
[00:11:59]                   │ proc [kibana]     at exports.execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/handler.js:31:20)
[00:11:59]                   │ proc [kibana]     at Request._lifecycle (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:370:32)
[00:11:59]                   │ proc [kibana]     at Request._execute (/dev/shm/workspace/kibana-build-6/node_modules/@hapi/hapi/lib/request.js:279:9)
[00:11:59]                   │ proc [kibana]   log   [13:01:29.211] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A29.046Z&end=2021-07-05T13%3A01%3A29.046Z&uiFilters=": responding with 403
[00:11:59]                   │ proc [kibana]   log   [13:01:29.214] [warning][api-authorization][plugins][security] User not authorized for "/api/uptime/index_status": responding with 403
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/metrics/source/default/hasData - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/infra/log_source_configurations/default/status - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_rum_data?start=2021-07-05T12%3A46%3A29.046Z&end=2021-07-05T13%3A01%3A29.046Z&uiFilters= - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/uptime/index_status - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:11:59]                   │ proc [kibana]   log   [13:01:29.337] [warning][api-authorization][plugins][security] User not authorized for "/api/apm/observability_overview/has_data": responding with 403
[00:11:59]                   │ warn WebElementWrapper.click: stale element reference: element is not attached to the page document
[00:11:59]                   │        (Session info: headless chrome=91.0.4472.114)
[00:11:59]                   │ debg finding element 'By(css selector, [data-test-subj="createNewCaseBtn"])' again, 2 attempts left
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 389:77071 Error: Object type ".none" is not registered.
[00:11:59]                   │          at type_registry_TypeRegistry.get (http://localhost:6161/42362/bundles/plugin/triggersActionsUi/kibana/triggersActionsUi.plugin.js:2:55459)
[00:11:59]                   │          at ExternalServiceColumn (http://localhost:6161/42362/bundles/plugin/cases/8.0.0/cases.chunk.2.js:3:11282)
[00:11:59]                   │          at us (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:59332)
[00:11:59]                   │          at wa (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:104414)
[00:11:59]                   │          at ml (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:90018)
[00:11:59]                   │          at fl (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:89943)
[00:11:59]                   │          at ol (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:87291)
[00:11:59]                   │          at http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45733
[00:11:59]                   │          at t.unstable_runWithPriority (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:398:3462)
[00:11:59]                   │          at $r (http://localhost:6161/42362/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:390:45442)
[00:11:59]                   │ERROR browser[SEVERE] http://localhost:6161/api/apm/observability_overview/has_data - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:12:09]                   │ debg --- retry.try error: no such element: Unable to locate element: {"method":"css selector","selector":"[data-test-subj="createNewCaseBtn"]"}
[00:12:09]                   │        (Session info: headless chrome=91.0.4472.114)
[00:12:10]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:20]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:20]                   │      Wait timed out after 10016ms
[00:12:20]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:31]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:31]                   │      Wait timed out after 10058ms
[00:12:31]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:41]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:41]                   │      Wait timed out after 10020ms
[00:12:42]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:12:52]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:12:52]                   │      Wait timed out after 10052ms
[00:12:52]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:02]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:02]                   │      Wait timed out after 10009ms
[00:13:03]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:13]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:13]                   │      Wait timed out after 10060ms
[00:13:13]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:23]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:23]                   │      Wait timed out after 10006ms
[00:13:24]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:34]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:34]                   │      Wait timed out after 10054ms
[00:13:34]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:44]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:44]                   │      Wait timed out after 10013ms
[00:13:45]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:13:55]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:13:55]                   │      Wait timed out after 10032ms
[00:13:55]                   │ debg Find.findByCssSelector('[data-test-subj="createNewCaseBtn"]') with timeout=10000
[00:14:05]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:14:05]                   │      Wait timed out after 10029ms
[00:14:06]                   │ info Taking screenshot "/dev/shm/workspace/parallel/6/kibana/x-pack/test/functional/screenshots/failure/Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created.png"
[00:14:06]                   │ info Current URL is: http://localhost:6161/app/observability/cases
[00:14:06]                   │ info Saving page source to: /dev/shm/workspace/parallel/6/kibana/x-pack/test/functional/failure_debug/html/Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created.html
[00:14:06]                   └- ✖ fail: Observability specs feature controls observability security feature controls observability cases all privileges allows a case to be created
[00:14:06]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
[00:14:06]                   │ Wait timed out after 10029ms
[00:14:06]                   │     at /dev/shm/workspace/parallel/6/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:14:06]                   │     at runMicrotasks (<anonymous>)
[00:14:06]                   │     at processTicksAndRejections (internal/process/task_queues.js:95:5)
[00:14:06]                   │       at onFailure (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:14:06]                   │       at retryForSuccess (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:14:06]                   │       at RetryService.try (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry.ts:31:12)
[00:14:06]                   │       at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/6/kibana/test/functional/services/common/find.ts:360:5)
[00:14:06]                   │       at TestSubjects.click (/dev/shm/workspace/parallel/6/kibana/test/functional/services/common/test_subjects.ts:105:5)
[00:14:06]                   │       at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
[00:14:06]                   │       at Object.apply (/dev/shm/workspace/parallel/6/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:14:06]                   │ 
[00:14:06]                   │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createNewCaseBtn"])
Wait timed out after 10029ms
    at /dev/shm/workspace/parallel/6/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at onFailure (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.try (/dev/shm/workspace/parallel/6/kibana/test/common/services/retry/retry.ts:31:12)
    at Proxy.clickByCssSelector (/dev/shm/workspace/parallel/6/kibana/test/functional/services/common/find.ts:360:5)
    at TestSubjects.click (/dev/shm/workspace/parallel/6/kibana/test/functional/services/common/test_subjects.ts:105:5)
    at Context.<anonymous> (test/functional/apps/observability/feature_controls/observability_security.ts:85:9)
    at Object.apply (/dev/shm/workspace/parallel/6/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

✅ unchanged

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

cc @ashokaditya

@kibanamachine kibanamachine merged commit 1c1d2ea into elastic:7.x Jul 5, 2021
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