Commit graph

66560 commits

Author SHA1 Message Date
Lukas Olson
09cd69d386
[UnifiedDocViewer] Move Discover doc viewer into plugin/package (#162847)
## Summary

Replaces https://github.com/elastic/kibana/pull/154012.

Moves the Discover doc viewer component into a new plugin/package,
`@kbn/unified-doc-viewer` and `@kbn/unified-doc-viewer-plugin`.

### Checklist

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### Risk Matrix

Before closing this PR, invite QA, stakeholders, and other developers to
identify risks that should be tested prior to the change/feature
release.

When forming the risk matrix, consider some of the following examples
and how they may potentially impact the change:

| Risk | Probability | Severity | Mitigation/Notes |

|---------------------------|-------------|----------|-------------------------|
| Multiple Spaces—unexpected behavior in non-default Kibana Space.
| Low | High | Integration tests will verify that all features are still
supported in non-default Kibana Space and when user switches between
spaces. |
| Multiple nodes—Elasticsearch polling might have race conditions
when multiple Kibana nodes are polling for the same tasks. | High | Low
| Tasks are idempotent, so executing them multiple times will not result
in logical error, but will degrade performance. To test for this case we
add plenty of unit tests around this logic and document manual testing
procedure. |
| Code should gracefully handle cases when feature X or plugin Y are
disabled. | Medium | High | Unit tests will verify that any feature flag
or plugin combination still results in our service operational. |
| [See more potential risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx) |

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Shahzad <shahzad31comp@gmail.com>
2023-08-31 11:46:59 -07:00
Tiago Costa
59231988c7
fix(NA): only importing @kbn/dev-utils on serve if available in dev (#165357)
This is a follow up of https://github.com/elastic/kibana/pull/165311

Instead of duplicating the key we are only importing from
`@kbn/dev-utils` if the package is available. The serve file is also
load under dist mode where the devOnly dependencies are not availble and
as such we can't reliable load from them.
2023-08-31 18:40:41 +01:00
Tiago Costa
60f33febd6
skip flaky suite (#162594) 2023-08-31 18:37:32 +01:00
Devon Thomson
217c118caa
[Dashboard] Run Smoke tests in Serverless (#164992)
Add Dashboard functional test coverage to the Serverless ES project.
2023-08-31 12:55:12 -04:00
Xavier Mouligneau
5ae86eefd7
Revert "[RAM] Add rule on click handler to global rule event log list" (#165332)
Reverts elastic/kibana#165179

because of this PR https://github.com/elastic/kibana/pull/165115, we do
not need these changes anymore. Let's remove it to avoid confusion on
the props
2023-08-31 09:51:15 -07:00
Dario Gieselaar
083a10ace5
[Observability AI Assistant] Make sure insight > chat flyout works (#165290)
Co-authored-by: Coen Warmer <coen.warmer@gmail.com>
2023-08-31 09:46:11 -07:00
christineweng
bf4254eb50
[Security Solution] Expandable flyout - update copy writing (#164929)
## Summary

This PR made updates to section titles and wordings in expandable flyout
according to [docs
suggestions](https://github.com/elastic/kibana/issues/164786).

## Right panel
**Response**
   - Updated empty response message

![image](bbc49a07-956f-4584-bbdd-663d52b515fe)

**Visualizations -> Session viewer preview**
   - Added upsell message when user does not have enterprise license

![image](3b2698e2-9911-4c61-b3f5-ca092b101f86)
   
   - Added empty message when session viewer preview is not available

![image](67ccd561-65a2-4f3e-bb37-e886c1be5be1)

**Visualizations -> Analyzer preview**
   - Added empty message

![image](76939f6c-a14a-49d6-942c-e94d360f4b87)

**Investigation -> Investigation guide**
   - Updated empty message when investigation guide is not available

![image](1df0ee96-4ba1-4568-9d3b-97c585f941f7)

**Insights -> Prevalence**
- Updated empty message when no filed/value pair meets prevalence
threashold

![image](ae2cbf63-a55e-487d-8141-3e4ad99dbed7)

**Insights -> Entities**
- Updated empty message when neither host name or user name are present

![image](1c954ea7-29a4-44b4-b7cd-fc64db487b6c)

## Left panel
**Insights -> Entities**
  - Updated empty state message

![image](5f3cc90d-e442-4db5-a7b9-d57d54cc47bc)

   - "User info" -> "User information"

![image](6e47fb61-c7ac-4cdc-acd5-e97cc2fb9f34)

   - Tooltip and empty table message in related hosts table 

![image](705bd9b9-1a1e-46d5-8fc8-fdd672f8ca4c)

   -  "Host info" -> "Host information"

![image](08a02392-3d47-4fa3-99d7-856ec7db08fe)

   -  Tooltip and empty table message in related users table

![image](22a8e1cd-b6b8-4a34-8b38-2db0214f0e35)

**Insights -> Threat Intelligence**

   - Updated title to lower case
- Updated empty message for threat match detected and enriched with
threat intelligence sections

![image](3a523516-5388-4232-98a4-ffe4f1757e31)

   - Updated tooltips

![image](cd8210aa-a066-4447-b315-959eedfbfdd7)

![image](eab2dc54-ed59-44f9-9359-480144d61a77)

**Investigation**
  - Updated empty state message to stay consistent with right section

![image](ad18e656-4b22-41c7-ac20-37dbe0ca7a3d)

**Insights -> Correlations**
   - Updated table message when no item is found

![image](334ec486-5ff4-435c-89a3-564da934f911)

**Insights -> Prevalence**
   - Added tooltips to each column other than `Field` and `Value`

![image](813e88e9-add3-46af-b908-c1f40b063e7c)

![image](58be7f13-0eac-4072-a6c8-13f72940b4f2)

![image](a4690f85-ee7c-490e-bbcc-33846068a872)

![image](9e977844-6ec6-4dc5-96a9-fe12fbfb853a)

**Response**
- Updated empty state message to match response section on right section

![image](10c32f64-f359-455c-8c75-b91910f7d438)


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
2023-08-31 09:44:03 -07:00
Nathan Reese
168412ba7b
[maps] fix 'by value' map does not fill dashboard panel on initial page load in 8.10 (#165326)
Fixes https://github.com/elastic/kibana/issues/165183

### Test instructions
1) install any sample data set
2) open new dashboard
3) Use "Add panel" buttons to add by-value map with only base map layer
4) Ensure map tiles fill entire map panel in dashboard

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-31 10:33:56 -06:00
Tomasz Ciecierski
186a202b05
[EDR Workflows] Osquery OpenApi Spec (#162955) 2023-08-31 18:17:35 +02:00
Nicolas Chaulet
6ee0210d84
[Fleet] Improve integration list performance (#165030) 2023-08-31 12:04:31 -04:00
Tiago Costa
84e2641dff
skip flaky suite (#165344) 2023-08-31 16:17:17 +01:00
Marshall Main
21879be883
[Security Solution] Migrate lists plugin API to versioned router (#165160)
Closes https://github.com/elastic/security-team/issues/7176
2023-08-31 07:48:01 -07:00
Marco Liberati
deebbadc2d
[Lens] Use keyword icon instead of text for field selection dropdown (#165322)
## Summary

Fix #165216 

Fixed for any dimension panel:

<img width="269" alt="Screenshot 2023-08-31 at 14 22 24"
src="2a8eb2c0-747f-4918-997b-1b059339a242">
<img width="275" alt="Screenshot 2023-08-31 at 14 37 46"
src="0ef218b3-1400-4eb9-8f4b-65eee814e0ac">

This has been addressed also in the annotation panel:
<img width="262" alt="Screenshot 2023-08-31 at 14 37 00"
src="22967182-b9bb-49c4-bfb8-48f25babd128">
2023-08-31 16:43:29 +02:00
Aleh Zasypkin
bd28bf4de2
Avoid running incompatible Platform Security Serverless tests on MKI. (#165304)
## Summary

When we run tests on MKI, we cannot override Elasticsearch security
realm definitions. This means that any of our tests relying on a custom
Elasticsearch security realm (SAML and JWT) won't work on MKI.

## How to test

See `Kibana serverless cheat sheet` on how to run tests against MKI.
Until https://github.com/elastic/qaf-tests/pull/30 is merged, you'd need
to also add `--exclude-tag=skipMKI` to the test runner command.

/cc @dmlemeshko
2023-08-31 16:37:51 +02:00
Nathan Reese
4b02740b32
update data view docs for excluding cluster (#164904)
https://github.com/elastic/elasticsearch/pull/97865 expands
index-pattern expressions to include a cluster alias for purposes of
excluding an entire cluster from a cross-cluster search. This allows
users to put the minus sign in front of the cluster name
(`-cluster_one:*`). The advantage to this change is that it avoids
sending any network calls to that cluster. Compare this to the existing
syntax for excluding clusters, where the minus sign is in front of the
index name (`cluster_one:-*`). The older syntax has to send the request
to the remote cluster, which if it is down (and skip_unavailable=false),
will cause the search to fail.

This PR updates the docs to reflect the new syntax.

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-31 08:27:03 -06:00
Kevin Delemme
f714f0f2e3
chore(slo): add missing tags in docs (#165180) 2023-08-31 10:20:15 -04:00
Melissa Alvarez
0877f8f9fc
[ML] Data Frame Analytics creation wizard: add ability to add custom urls to jobs (#164520)
## Summary

This PR adds an 'Additional settings' section in the 'Details' step
where the user can add custom urls.

<img width="1080" alt="image"
src="6094a544-9931-4ca3-a6ac-0e262df4f66b">

<img width="1059" alt="image"
src="52a98984-feef-4076-a139-4d7e95cf4485">

<img width="914" alt="image"
src="ff9e2575-c88c-4d9c-a612-ec92c960beb6">

<img width="1080" alt="image"
src="9878f31a-48de-4e1d-9fcd-85d36c74b580">


### Checklist

Delete any items that are not applicable to this PR.

- [ ] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [ ]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [ ] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [ ] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [ ] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [ ] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [ ] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-31 07:57:33 -06:00
Marco Vettorello
2a56fe7d35
[Lens] Axis label formatting independent from axis visibility (#165314)
Due to an existing (but already resolved) bug in elastic-chart, the Lens Heatmap introduced a workaround to avoid a reduction in the size of the heatmap chart in the suggestions panel due to the length of the axis labels.

After the fix was resolved in elastic-charts, the workaround was not removed and left a bug in the interface.

This commit removes the workaround introduced.
2023-08-31 15:32:55 +02:00
Kibana Machine
731786e465 skip failing test suite (#165084) 2023-08-31 09:28:57 -04:00
Kibana Machine
6e3f3f8ad5 skip failing test suite (#165083) 2023-08-31 09:28:28 -04:00
Kibana Machine
404c35978c skip failing test suite (#139260) 2023-08-31 09:27:50 -04:00
Davis McPhee
b4bfb2a2dd
[Data Discovery] Run example plugin functional tests in Serverless (#163411)
## Summary

> [!IMPORTANT]  
> These tests currently do not run in "real" Serverless and only run in
"local" Serverless (what we use in CI). Additional work will need to be
done to allow these tests to be run in an actual Serverless environment,
since they required `config.ts` changes which are only loaded when
running locally.

This PR copies the Data Discovery example plugin functional tests to
`test_serverless` and adds support for running them against the Search
project.

It also adds support for running functional tests against example
plugins in general in Serverless ("local" Serverless only currently).

In the future these should run as deployment-agnostic tests, but support
does not yet exist (see #161574), so in the meantime they've been
duplicated and modified in place. I've left `TODO` comments where test
files have been modified so we know what needs to be addressed once they
are converted to deployment-agnostic tests.

Part of #162347.

### Checklist

- [ ] ~Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)~
- [ ]
~[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials~
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [ ] ~Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard
accessibility](https://webaim.org/techniques/keyboard/))~
- [ ] ~Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))~
- [ ] ~If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)~
- [ ] ~This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))~
- [ ] ~This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)~

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
2023-08-31 10:23:05 -03:00
Gerard Soldevila
a62d9a90f5
Simplify test code, reenable skipped suite (#163158)
Attempt at fixing https://github.com/elastic/kibana/issues/149611

I updated the test code as follows:
* Removed the RxJS logic and simply factorised the reads to read only
once.
* Got rid of the "retry" service. There's already a mechanism in place
to make sure the logs are up-to-date.
* Updated the `setCommonlyUsedTime` method to make sure it awaits for
the popup to be ready before clicking.
* Skipped 4 tests that seem outdated, the logs don't have the related
entries even after waiting for more than one minute and flushing (in
fact, they all seem to systematically fail on `main` too):
  * lnsLegacyMetric
  * [Flights] Delays & Cancellations
  * [Flights] Destination Weather
  * [Flights] Delay Buckets

Attached is the generated
[kibana.log](12260144/kibana.log)
(focussing only the `browser.ts` tests).

So for the skipped tests, this does not look like flakiness anymore, but
rather outdated / incorrect checks. I propose we review and update them
on a separate issue / PR.

50 runs results
[here](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3026).
2023-08-31 15:09:19 +02:00
Isaac Karrer
581b7f4327
pipeline for serverless kibana release (#165009)
## Summary

Adds a pipeline that will trigger the promotion and QG for kibana
through qa -> staging -> production whenever the tag which [matches the
regex](https://regex101.com/r/tY52jo/1) is created.

Sibling PR [here](https://github.com/elastic/serverless-gitops/pull/661)
that defines `main/gen/gpctl/kibana/tagged-release.yaml`

The meat of the PR is the regex.

---------

Co-authored-by: Thomas Watson <w@tson.dk>
Co-authored-by: Alex Szabo <delanni.alex@gmail.com>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-08-31 08:08:01 -05:00
Alejandro Fernández Haro
0ea37c1b42
[On-Week] Hot update of APM/EBT labels (#157093) 2023-08-31 14:36:20 +02:00
Alison Goryachev
81aceaa5c6
[Index Management] Add "Stats" tab (#165027) 2023-08-31 08:22:58 -04:00
Shahzad
9ca2a042e9
[Synthetics] Update label for SO object (#164676) 2023-08-31 14:22:43 +02:00
Alex Szabo
8d7aa0bfd0
[Ops] Fix serverless startup issue around importing @kbn/dev-utils (#165311) 2023-08-31 14:19:23 +02:00
Felix Stürmer
ad59308b24
[Log Explorer] Convert log explorer profile into standalone app (#164493)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Marco Antonio Ghiani <marcoantonio.ghiani01@gmail.com>
2023-08-31 14:18:44 +02:00
Dmitriy Burlutskiy
5a30e4d5cc
Fix default Elasticsearch host typo (#165239)
## Summary

This PR fixes a typo for a default Elasticsearch host
2023-08-31 14:16:55 +02:00
Konrad Szwarc
99032dff87
[Fleet][Kafka][Fix] Validate number of events fields (#165202)
This PR adds field verification for `Partitioning` part of `Kafka`
output UI.
Might close https://github.com/elastic/kibana/issues/165063



1f0a3704-efec-40d7-9e3a-f5504ddd77af
2023-08-31 14:01:50 +02:00
Mykola Harmash
be963507d5
[Infra UI] Show syntax error for the Processes search input (#165245)
Closes #164970 
Fixes https://github.com/elastic/kibana/issues/165287

## Summary

- Adds an error message to the Processes tab for cases when user types
an invalid term into the search field.
- Also fixes the issue when the search field (on all tabs) would lose
focus while typing

**Showing the error**

a56ba086-decc-49f8-8a51-5e44ddd17d1d

**Before the change, field losses focus**

23cb2435-ec5c-4e3a-b955-97f2eca03307

**After the change**

a2c23da0-0d5f-4f7e-8835-e1d2e4eed4e6


## How to test
- Checkout locally
- Open host details as a page
- Go to the Processes tab and type "," in to the search field
- Make sure the app does not crash and shows the error
- Check the same for host details in the flyout
2023-08-31 14:01:34 +02:00
Aleh Zasypkin
210e75c554
Fix a typo in roles.yml of the kbn-es package. (#165299)
## Summary

Luckily ES ignores invalid role definitions in `roles.yml`, but it still
logs the following error:
```
node scripts/functional_tests_server.js --config x-pack/test_serverless/api_integration/test_suites/search/config.ts
----
docker logs -f es01
....
[2023-08-31T09:36:55,775][ERROR][o.e.x.s.a.s.FileRolesStore] [es01] invalid role definition [null] in roles file [/usr/share/elasticsearch/config/roles.yml]. skipping role..
```
2023-08-31 13:44:03 +02:00
Ash
6e367d94c9
[Serverless][Security Solution][Endpoint] Restrict endpoint exceptions on serverless via plugin sub-features (#164107)
### What this PR changes

branched from elastic/kibana/pull/163759

- Introduces new AppFeatures package `@kbn/security-solution-features`
with the common logic and `AppFeatureService` to apply offering specific
configurations for Security Solution features independently for
Serverless and ESS. This logic is replacing the earlier `AppFeatures` in
order to introduce new Kibana feature privileges for serverless PLIs so
that new Kibana privileges introduced for serverless PLIs do not
affect/show up as new Kibana feature privileges in ESS.
- Gates endpoint exceptions on alerts/rules based on serverless PLI
configurations. On serverless `Endpoint exceptions` should be
accessible/seen only on endpoint essentials/complete.

New AppFeatures logic architecture diagram:

![Security Solution Features
(Current)](f627406d-43bc-4db5-93b1-4e43eeb6d870)

**Note:** Corresponding API changes related to endpoint exceptions will
be in a new PR, along with the last set of UX changes for hiding the
`Endpoint exceptions` tab from the Rules details page.

### How to review

- Setup for _Servlerless_
  - Run `yarn es snapshot` on a terminal window to start ES.
- Copy `config/serverless.security.yml` to
`config/serverless.security.dev.yml`
- Run `yarn serverless-security --no-base-path` on another terminal
window to start kibana in serverless mode
- Run `node
x-pack/plugins/security_solution/scripts/endpoint/endpoint_agent_emulator.js
--asSuperuser` on a new window and then select `1` to `Load Endoints`
and then `1` to `Run` the loader script. This will load some fake
agents/alerts data to test with.

### Tests (Serverless)

- with 
`{ product_line: 'security', product_tier: 'essentials' }` or `{
product_line: 'security', product_tier: 'complete' }`
and
`{ product_line: 'endpoint', product_tier: 'essentials' }` or `{
product_line: 'endpoint', product_tier: 'complete' }`

1. Navigate to Rules>Shared exception lists via
`http://localhost:5601/app/security/exceptions`
2. Test that you can see `Endpoint Security Exception List` card on the
shared exception lists page.
3. Navigate to `Alerts` page via `app/security/alerts`, you should see
endpoint alerts. If not, then click on `Manage Rules` and then
disable/enable `Endpoint Security` rules. That should trigger alerts to
show up on the Alerts table.
4. Click on `View Details` button under `Actions` column. Once the
flyout is visible, click on `Take Action` and verify that `Add Endpoint
exception` is visible/enabled/clickable on the menu.
5. Click on `More actions` button under `Actions` column and verify that
`Add Endpoint exception` is visible/enabled/clickable on the menu.
6. Click on `Investigate in timeline` button under `Actions` column;
when the timeline view is visible and the alert item is displayed, click
on buttons mentioned in 4. and 5. above and verify the same.
7. Navigate to `Rules`>`DetectionRules`>`Endpoint Security` rule under
the `Rules` table. Select the `Alerts` tab.
8. Click and verify `View details`,`More actions` and `Investigate in
timeline` buttons same as in 4., 5., 6. above.
9. You should be able to see the `Endpoint exceptions` tab as well.
Click and verify that you can see the tab's content.

- with 
`{ product_line: 'security', product_tier: 'essentials' }` or `{
product_line: 'security', product_tier: 'complete' }`
1. Edit `config/serverless.security.dev.yml` so that `endpoint` product
line item is commented out.
2. Test that you can not see `Endpoint Security Exception List` card on
the shared exception lists page.
3. Items 4. 5. 6. as above but the menu items should be disabled. This
can be verified with fake data only as with a real endpoint, endpoint
alerts are actually not visible at all.


### Tests (ESS)
On the ESS side, endpoint exceptions are not affected by this change and
work as usual based on index privileges.

---------

Co-authored-by: semd <sergi.massaneda@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: YulNaumenko <jo.naumenko@gmail.com>
Co-authored-by: Pablo Neves Machado <pablo.nevesmachado@elastic.co>
Co-authored-by: Pablo Machado <machadoum@gmail.com>
2023-08-31 13:35:42 +02:00
Elastic Machine
73469bfb11
[main] Sync bundled packages with Package Storage (#165300)
Automated by
https://internal-ci.elastic.co/job/package_storage/job/sync-bundled-packages-job/job/main/6680/

Co-authored-by: apmmachine <infra-root+apmmachine@elastic.co>
2023-08-31 03:50:02 -07:00
Maxim Palenov
2c3464ca84
[Security Solution] Unskip related integrations tests (#164933)
**Fixes: https://github.com/elastic/kibana/issues/154663**
**Fixes: https://github.com/elastic/kibana/issues/153684**

## Summary

This PR unskips Cypress rule related integration tests ([related_integrations.cy.ts](https://github.com/elastic/kibana/blob/main/x-pack/test/security_solution_cypress/cypress/e2e/detection_response/rule_management/related_integrations/related_integrations.cy.ts)).

## Details

Testing approach has changed. Instead of importing a rule and installing agent and package policies via Fleet UI the rule is created by mocking a prebuilt rule asset and Fleet API is used to install required integrations. Along the way it required to add and update some testing selectors as UI had changed while the tests were skipped.

## Flaky test runner

[related_integrations.cy.ts (150 runs)](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2995) 🟢
2023-08-31 12:28:16 +02:00
Thomas Watson
672f38f9be
GitHub create-deploy-tag workflow: Improve Slack message 5 2023-08-31 12:15:49 +02:00
Gloria Hornero
b55c9499e4
[Security Solution] Introducing PLI testing on AET Cypress tests for serverless (#165254) 2023-08-31 05:01:40 -04:00
Yngrid Coello
94bccbc6cd
[Logs onboarding] Getting elastic-agent state in a more reliably way (#165205)
Closes https://github.com/elastic/kibana/issues/163163.

We were getting `elastic-agent` status using `human`
[output](https://www.elastic.co/guide/en/fleet/current/elastic-agent-cmd-options.html#_options_7),
this way of obtaining the state is very unreliable since human format
it's more likeable to vary from one version to other. e.g

- v8.0.0
<img width="1021" alt="image"
src="7c8102a4-0785-4ab1-b690-ab62ec67644d">

- v8.9.0
<img width="1026" alt="image"
src="b6acdfbd-6efa-4518-8855-0aba3662f07b">

### Changes
- Get `elastic-agent` status from json output.

#### Demo

##### v8.0.0


6c507269-65d5-4c8a-9e9f-420698ca995d


##### v8.9.0


acdab744-0bd7-43c8-9eb8-024e5a2eeae5
2023-08-31 10:46:41 +02:00
Thomas Watson
d45347cf68
GitHub create-deploy-tag workflow: Improve Slack message 4 2023-08-31 10:32:55 +02:00
Thomas Watson
d24a65ef94
GitHub create-deploy-tag workflow: Improve Slack message 3 2023-08-31 09:39:49 +02:00
Thomas Watson
84b038b2df
GitHub create-deploy-tag workflow: Improve Slack message 2 2023-08-31 09:35:10 +02:00
Tomasz Ciecierski
175e5dc388
[EDR Workflows] Fix flaky test (#164679) 2023-08-31 09:33:40 +02:00
Thomas Watson
235b272a88
GitHub create-deploy-tag workflow: Improve Slack message 2023-08-31 09:21:13 +02:00
Kibana Machine
9cd6a4a910
[api-docs] 2023-08-31 Daily api_docs build (#165285)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/446
2023-08-31 00:58:22 -04:00
Julia
0af40a3066
[RAM] Autocomplete (#158454)
## Summary

Solves this issue: https://github.com/elastic/kibana/issues/161763

This PR introduces autocomplete for mustache variables for email
connector(next PR will add it to all connectors) under the feature flag.

We decided keep old solution with button with all searchable options as
well.

How to test:
Create an email connector in kibana.yml:

xpack.actions.preconfigured:
  maildev:
    name: 'email: maildev'
    actionTypeId: '.email'
    config:
      from: 'guskova@example.com'
      host: 'localhost'
      port: '1025'

How it should work:
You start writing in Message window {{ and mustache variable name. And
you should see autocomplete popup with all possible options to choose.
When you click somewhere else, popup should disappeared.


061016a6-b8ca-497b-9bed-b8b012d31a95

e options to choose. When you click somewhere else, popup should
disappeared.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Xavier Mouligneau <xavier.mouligneau@elastic.co>
2023-08-30 19:04:14 -07:00
Thomas Watson
a6aa865dee
GitHub create-deploy-tag workflow: Fix protected tag issue 2 2023-08-30 23:49:41 +02:00
Thomas Watson
350cd55823
GitHub create-deploy-tag workflow: Fix protected tag issue 2023-08-30 23:39:01 +02:00
Thomas Watson
927cb221ad
GitHub create-deploy-tag workflow: Fix slack posting bug 2 2023-08-30 23:19:50 +02:00
Thomas Watson
fbbdef8d05
GitHub create-deploy-tag workflow: Fix slack posting bug 2023-08-30 22:56:47 +02:00