Commit graph

31989 commits

Author SHA1 Message Date
Adam Demjen
060cc5b029
[8.10][ESRE] Parse multiple fields when attaching (#161295)
## Summary

This PR adds support for parsing multiple field mappings from an
existing pipeline configuration. This is only relevant when listing
attachable pipelines; the new pipeline creation process is not affected.

This change is a pre-requisite for allowing ELSER pipelines to be
attached.

Tested for backward compatibility:
* Existing pipeline selection dropdown (temporarily disabled filtering
of ELSER pipelines)
![Screenshot 2023-07-05 at 15 53
52](00d673f7-70b4-4cbb-919c-4fe17eedaca2)

Note the "Source field" and "Destination field" attributes show the
first mapping's fields only (even if the pipeline is configured with
multiple mappings). This is pending redesign and will be addressed in a
later PR.

* Fields - ELSER pipeline (temporarily removed field modification
widgets)
![Screenshot 2023-07-05 at 15 54
34](8bdd49f9-1682-4ccb-a066-233e0809b883)

* Fields - non-ELSER pipeline
![Screenshot 2023-07-05 at 15 54
42](5c70eb9b-e9a9-4213-9d24-ac9303f64b54)

### Checklist
- [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-07-06 14:57:10 -04:00
Nicolas Chaulet
7709670d92
[Fleet] Implement active agent soft limit (#161289) 2023-07-06 14:50:33 -04:00
Paulo Henrique
2c01f7e290
[Cloud Security] Fix auto increment issue on the integrations page (#161046) 2023-07-06 11:08:56 -07:00
Paul Tavares
8a170249fa
[Security Solution][Endpoint] Move Response Action's file download api to versioned router (#161272)
## Summary

- Moves the file download API of response actions to versioned router
(after getting support for this type of API via #160399 )
2023-07-06 13:26:36 -04:00
Cauê Marcondes
d118fb4ba4
[Integrate Profiling with APM] Navigate from the transaction details view into the Profiling (#159686)
- The new profiling items will be only visible when the profiling plugin
has been already installed. Otherwise, these are going to be hidden.
- The profiling plugin exposes three new Locators to facilitate the
navigation to the Flamegraph, TopN functions and Stacktraces pages.
- Add `new` badge property on the section component

<img width="486" alt="Screenshot 2023-06-14 at 1 55 09 PM"
src="6e353bfc-050c-4294-a4e4-fc46205d5d0e">



234863a4-0d99-4140-a5b5-702896b2c4a3


ee1635bd-5127-41d6-b434-4cee9b5ebe92


46ec9bb7-2cd0-43fc-9a1e-0d6eef70612f

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 14:00:50 -03:00
Nathan Reese
b22dd68d39
[maps] replace duplicated elasticsearch geo types with types from elasticsearch-specification (#161011)
https://github.com/elastic/elasticsearch-specification/blob/main/output/typescript/types.ts
defines elasticsearch API types. This PR removes types defined in maps
plugins and replaces them with types from elasticsearch-specification.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 10:29:01 -06:00
Antonio
71d96c7b95
[Cases] Guardrails: Total number cases update (#161076)
Connected to https://github.com/elastic/kibana/issues/146945

## Summary

| Description  | Limit | Done? | Documented?
| ------------- | ---- | :---: | ---- |
| Total number of cases to be updated | 100 |  | Yes |

- Also changed the **minimum** of cases that can be updated to 1.
- Tests.
- Updated Documentation.

### 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]
[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

### Release Notes

Patch Cases API is now limited to 100 cases at a time and a minimum of
1.
2023-07-06 18:15:49 +02:00
Jordan
9c8b63a878
[Cloud Security] Restarting transform on failure (#161192) 2023-07-06 09:02:39 -07:00
jennypavlova
b641a22438
[Infrastructure UI] Asset Details: Add pins to the metadata table (#161074)
Closes #155190

## Summary

This PR adds the possibility to pin different rows inside the metadata
table in asset details embeddable. The pins are persisted in the local
storage and should be available after refreshing/reopening the host
flyout. The order and sorting are explained in [this
comment](https://github.com/elastic/kibana/issues/155190#issuecomment-1523335704),
so basically we keep the original sorting order of the table (`host`,
`cloud`, `agent`) also for the pins.

## Testing 
- Go to hosts view and open a single host flyout (metadata tab)
- Try to add / remove pins
- Check if the pins are persisted after a page refresh



62873e7e-b5f0-444c-94ff-5e19f2f46f58
2023-07-06 17:10:38 +02:00
Lisa Cawley
8afb9b086c
[DOCS] Remove deprecated action variables from rule APIs (#161216) 2023-07-06 07:49:49 -07:00
Paul Tavares
9e5d6b3e0f
[Fleet] Adjust background File cleanup task to also process to-host indexes (#161138)
## Summary

- Updates the `fleet:check-deleted-files-task` to include the indexes
that store files for delivery to the Host (currently used only by
Endpoint integration)
2023-07-06 10:46:55 -04:00
Cauê Marcondes
0c03f1010e
[Profiling] fixing user privileges (#161269)
This PR adds the `.profiling-*` to the profiling-reader role.
2023-07-06 07:44:30 -07:00
Nicolas Chaulet
fe0779e522
[Fleet] Support id when creating a package policy through API (#161306) 2023-07-06 10:06:14 -04:00
Chris Cowan
099835fad5
[SLO] Support filters for good/total custom metrics (#161308)
## Summary

This PR adds support for applying a KQL filter to the good/total
metrics.

<img width="858" alt="image"
src="c271352c-10fd-49f1-89b8-a352b69f7f7c">
2023-07-06 08:00:09 -06:00
Chris Cowan
7b86444a4c
[SLO] Allow null values for maxBurnRateThreshold (#161268)
## Summary

This PR fixes #161101 by changing the server side validation to allow a
null value for `maxBurnRateThreshold`. This value is only used on the
client side to display the `X hours until error budget exhaustion.`
message. This value is also used in the client validation but due to the
architecture of how client side validation works, we have to add this to
the params.
2023-07-06 07:59:01 -06:00
Juan Pablo Djeredjian
885e4bf13d
[Security Solution] Hide Rule Updates tab when no updates are available (#161196)
## Summary

Fixes: https://github.com/elastic/kibana/issues/161195

- Hide Rule Updates tab when no rules are available for update.

### Checklist

Delete any items that are not applicable to this PR.

- [ ] 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))
- [ ] 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: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 06:16:42 -07:00
Konrad Szwarc
2070836060
[Defend Workflows][E2E] Unskip cases e2e tests (#161322)
Closes https://github.com/elastic/security-team/issues/7048

`addAlertsToCase` func from `add_alerts_to_case.ts` that is being used
only in the two failing tests had `perPage` set to `10000` which started
throwing `The provided perPage value is too high. The maximum allowed
perPage value is 100.`.
2023-07-06 15:14:19 +02:00
Janki Salvi
4346b09760
[Cases] Update notify user HTML email template to use current year dynamically (#161327)
## Summary

This PR adds current year dynamcially to notify user HTML email template
footer.


![image](0169d58b-d567-4061-bb7d-36326348aa99)

### Checklist

Delete any items that are not applicable to this PR.

- [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-07-06 14:11:52 +02:00
Sander Philipse
1a5dc8253e
[Serverless Search] Use Enterprise Search logo for connectors (#161335)
## Summary

Use the Enterprise Search logo to link to connectors, instead of the
Beats logo.
2023-07-06 04:58:01 -07:00
Tiago Costa
bb824d3c10
skip flaky suite (#72874) 2023-07-06 11:55:55 +01:00
Shahzad
a2cc9a6924
[Uptime] Include synthetics-* for existing alerts (#160063) 2023-07-06 12:26:22 +02:00
Janki Salvi
97dd41fc61
[Cases] UI validations for max description characters, max tag characters and maximum tags per case (#161087)
## Summary

This PR adds UI validations for

- maximum 30000 characters per description
- maximum 256 characters per tag
- maximum 200 tags per case

### 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

**Flaky test runner:**

https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2555

### For maintainers

- [x] 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>
2023-07-06 12:12:26 +02:00
Janki Salvi
8543d5f94b
[Cases] Add guardrails for add and update comment API (#161200)
Connected to https://github.com/elastic/kibana/issues/146945

## Summary

| Description  | Limit | Done? | Documented?
| ------------- | ---- | :---: | ---- |
| Total number of comment characters | 30.000 |  | Yes
|

- Tests.
- Updated Documentation.

### Checklist

Delete any items that are not applicable to this PR.

- [x]
[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

### Release Notes

Post and Patch comment API limits total number of characters per comment
to 30000

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 02:47:27 -07:00
Stratoula Kalafateli
75140a8977
[Unified search] Make the dataview optional in the search input ui (#161166)
## Summary

Closes https://github.com/elastic/kibana/issues/158986

This PR is applying a very simple fix on the unified search bar. It
makes the dataview to not be required to load the text area.

The dataview(s) is required for the suggestions but not for running a
query.


![apm](be5fc64e-4c90-4d69-90b8-4f30ccf7913e)

There is currently a bug
https://github.com/elastic/kibana/issues/158986#issuecomment-1620099640
on the apm side. It is happening because the url update is not allowed
when the dataview is not set. This needs to be fixed on the apm side so
I synced with the apm team and they are going to take it.
2023-07-06 12:45:30 +03:00
Sean Sullivan
9a20abc5c3
Add Multi format for geopoint and consolidate geo converstion tools i… (#147272)
Add multiple formats for geo_point fields and make geo conversion tools
part of field_format/common/utils

This is needed because various users need locations displayed in
different formats. It would be problematic to allow users to change the
index field formatting for everyone.

WKT and LL where already formatters availible.

I added MGRS and DMS.
## Summary

Summarize your PR. If it involves visual changes include a screenshot or
gif.

![image](https://user-images.githubusercontent.com/11495566/206515127-14774b76-49f9-4fed-a306-1b03936c8766.png)



### 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: Sean Sullivan <ssullivan@spectric.com>
Co-authored-by: Julia Rechkunova <julia.rechkunova@gmail.com>
2023-07-06 11:23:21 +02:00
Konrad Szwarc
bbeccd71ea
[Fleet] Kafka integration API (#159110)
This PR addresses the API aspect of
https://github.com/elastic/kibana/issues/143324

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-06 10:41:07 +02:00
Pierre Gayvallet
7e4e2bbf11
Add config deprecation for securitySolutionServerless config rename (#161321)
## Summary

Title.
2023-07-06 01:02:11 -07:00
jennypavlova
9d57196a54
[Infra UI] Hosts flyout test fix (#161244)
Closes #159368 

## Summary

I saw that the test was failing because of a missing environment set. I
guess that happened because the test runner doesn't include it like it
is included locally so I removed that check so the test shouldn't be
flaky.
2023-07-06 09:50:40 +02:00
Khristinin Nikita
21b63fa42b
Im rule test (#161231)
There was some failure, for IM rule tests.
Probably because we are comparing alerts in the array, they can be in a
different order, so sorting should help
2023-07-06 06:33:22 +02:00
Kevin Logan
44449c5246
[Security Solution] Skip flaky cases cypress tests (#161309)
## Summary

Skips flaky cypress tests to unblock PRs. These tests are determined to
be flaky as they are failing in two unrelated PRs.

https://github.com/elastic/kibana/pull/160912
https://github.com/elastic/kibana/pull/160813

### Checklist
- [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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 20:34:33 -07:00
Jiawei Wu
8de68afb40
[RAM] Rule API Type Versioning POC - Create Rule (#158786)
## Summary
Resolves: https://github.com/elastic/kibana/issues/157883

# Summary:
This PR acts as a POC for how we would want to version our rule API
types in preparation for the versioning of our HTTP endpoints.

There is now an ES persisted type (called `RuleAttributes`, akin to the
old `RawRule` type). This type should never be used at the business
logic level as we want the ability not to reference saved object
attributes directly in the application. Instead, we should transform
this saved-object to its corresponding domain object type.

HTTP types (`CreateBodyParams`, `RuleResponse`) are now located in
`x-pack/plugins/alerting/common/routes/rule` with a versioning structure
like:


![image](1c8e886d-8983-40f2-9490-aa3864898535)

And follows the guideline here:
https://docs.elastic.dev/kibana-dev-docs/versioning-interfaces

Domain object types (rule for example) are derived from the
`config-schema` schemas using `TypeOf`, this was done to facilitate the
reuse of validation schemas that we might want to run for strict IO
validation, potentially at the `rulesClient` level.

## API:
Only the `createRule` endpoint has been converted for the sake of this
POC, other endpoints might have broken types that will be fixed once we
have a finalized pattern for dealing with versioned types.

At the API route level, I think it would be wise to import versioned
types in our APIs, this way, it forces the developer to deal with broken
types when we have a breaking change to our rule domain object.

The API route level is also responsible for transforming domain objects
to response types, usually, this just entails renaming property names
from camel case to snake case.

in `create_rule_route.ts`

```ts
import type { CreateRuleRequestBodyV1, CreateRuleRequestParamsV1 } from '../../../../common/routes/rule/create';
import type { RuleParamsV1 } from '../../../../common/routes/rule/rule_response';

...

// In the Handler:
const rulesClient = (await context.alerting).getRulesClient();

const createRuleData: CreateRuleRequestBodyV1<RuleParamsV1> = req.body;
const params: CreateRuleRequestParamsV1 = req.params;

const createdRule: Rule<RuleParamsV1> = (await rulesClient.create<RuleParamsV1>({
  data: transformCreateBodyV1<RuleParamsV1>(createRuleData),
  options: { id: params?.id },
})) as Rule<RuleParamsV1>;

const response: CreateRuleResponseV1<RuleParamsV1> = {
  body: transformRuleToRuleResponseV1<RuleParamsV1>(createdRule),
};

return res.ok(response);
```

### RulesClient -> Create
At the rules client level, we now need to transform saved-objects to the
domain objects after we perform CRUD operations on them. We can also
consider validating schemas here too since other solutions are using our
rules client directly instead of through the API.

I don't think we need to version rules client input and output types
since the route level types should deal with breaking changes already.
Therefore, we can freely import the latest of any domain object types
(Rule, for example)

```ts
import { Rule, RuleDomain, RuleParams } from '../types';
```

The flow is the following:
```
1. calling rulesClient.create() with API body and params.
2. perform schema validation on params
3. perform other validation not achievable using config-schema
4. perform rule create -> returns a `savedObject` type
5. convert `savedObject` ES type to the domain object type (`RuleDomain`)
6. convert the domain object type to a public domain object type (`Rule`)
7. We can also validate the created rule using config-schema
```

# Open questions:
- Should we validate input params at both the route and the rules client
level? I think we should since our rules client is shared.

- How do we want to version and validate rule params? Right now they're
typed as generics.

- Should we leave all date fields as `string`, even for domain objects?
Since config-schema is unable to define a `Date` type.

- Should we support partial rule domain object types at all? I can't
really think why we should even for `updates`, since we need to
reconstruct the overall rule to send back to the client.

- Should we have `undefined | null` types in the domain object? I know
we need `null` specifically for the ES types since there is a different
between updating a field as `undefined` or `null`, but this shouldn't
manifest itself in the business logic.

### Checklist
- [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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 14:15:59 -07:00
Georgii Gorbachev
9e52f7064f
[Security Solution] Support rule type changes in the rule upgrade workflow (#161247)
**Fixes: https://github.com/elastic/kibana/issues/161094**

## Summary

- Adds support for rule type changes in the
`/internal/detection_engine/prebuilt_rules/upgrade/_review` endpoint.
- Previously, if any rule had a different `type` in its
`current_version` compared to its `target_version` the request would
fail with `500`.
- This PR:
    - updates this behaviour to accept rule type changes
- creates a new `calculateAllFieldsDiff` method that is responsible for
calculating diffs among all fields of all rule types. Used exclusively
when there has been a rule type change between the current version and
the target version (which can normally happen through upgrades of the
`security_detection_engine` package) OR when the base version has a
different type as the current version (which should not happen under
normal conditions and user behaviour).
- updates the diffable fields types for each specifc rule type (e.g.:
`DiffableCustomQueryFields`,`DiffableEqlFields`,`DiffableThreatMatchFields`,
etc) , replacing the `data_query` field name for either `eql_query` (for
EQL type rules) or `kql_query` (for all others).


## How to test
1. With a clean Kibana state, use the
`xpack.securitySolution.prebuiltRulesPackageVersion` config to force
Kibana to install a package that contains the rules with their original
type:
```
xpack.securitySolution.prebuiltRulesPackageVersion: '8.3.1'
```
2. Install the four "offending" rules, [listed
below.](https://github.com/elastic/kibana/pull/161247#issuecomment-1622132120)
3. Remove the config, restart Kibana and navigate to the Rules Page so
that the latest package is installed.
4. Navigate to the Rule Updates table. The four installed rules should
have updates available. Update them.
5. All the listed rule types should be updated, as well as their
corresponding fields.


### 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: jpdjere <jpdjeredjian@gmail.com>
2023-07-05 22:42:21 +02:00
Shahzad
93fc2a85d6
[Synthetics] Fixed action connectors and added api test for default alerting (#161218) 2023-07-05 21:46:18 +02:00
Candace Park
40d2f685d6
[Fleet][Agent Tamper Protection] License watcher for agent policy (#160463)
## Summary

- [x] Adds an agent policy watcher to check if an agent policy is valid
for a specific license. If it is not valid, it will set the
platinum-only features (as of now, only tamper protection) to false.
- [x] Moves `generateNewAgentPolicyWithDefaults` up to `common/services`
- [x] Unit Tests

# Screenshot

![agent-policy-watch](345d4791-a665-4d22-873c-4013dd7ba709)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 15:23:05 -04:00
James Gowdy
efe196f0c1
[ML] Removing unused reset and records endpoints (#161120)
Removing two endpoints in the kibana server which are no longer used by
ML on the client side.

`/anomaly_detectors/${jobId}/_reset`
This has been superseded by `/jobs/reset_jobs` which takes multiple job
IDs

`/anomaly_detectors/{jobId}/results/records`
I believe this has never been used, as it didn't have a client side
function.

Relates to https://github.com/elastic/kibana/issues/157980
2023-07-05 17:27:39 +01:00
James Gowdy
d61c254109
[ML] Adding update_groups api tests (#161177)
Adds a test to ensure the `update_groups` api works as expected.

Related to https://github.com/elastic/kibana/issues/157980
2023-07-05 17:26:24 +01:00
Kevin Delemme
055a0ef1c6
feat(slo): Add preview for apm indicator types (#160655) 2023-07-05 12:15:40 -04:00
Elena Stoeva
142fec7542
[Index management] Fix flaky functional tests (#161243)
Fix https://github.com/elastic/kibana/issues/159403
Fix https://github.com/elastic/kibana/issues/159524

This PR unskips the flaky tests that were fixed in
https://github.com/elastic/kibana/pull/160128 but the `skip()` call was
mistakenly left out.

The flaky test runner passed all 100 runs:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2557
2023-07-05 17:11:49 +01:00
Saikat Sarkar
49498399f8
[Enterprise Search] Remove MlTrainedModelConfigWithDefined interface (#160950)
Issue: https://github.com/elastic/enterprise-search-team/issues/4432

## Summary
This PR resolves the technical debt mentioned in [this
issue](https://github.com/elastic/enterprise-search-team/issues/4432).
The `MlTrainedModelConfig` now includes the `fully_defined` attribute,
allowing us to remove the `MlTrainedModelConfigWithDefined` interface
from Kibana.

### Checklist
- [x] Checked whether the existing [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
are passing.

### 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>
2023-07-05 08:15:40 -07:00
Melissa Alvarez
a3f8930cb9
[ML] Data Frame Analytics functional tests: adds custom urls creation tests (#160822)
## Summary

Adds basic custom urls functional tests.

flaky test runner
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/2545

Part of https://github.com/elastic/kibana/issues/157980

### Checklist

- [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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 08:36:47 -06:00
Tiago Costa
61a743ab52
skip flaky suite (#161081) 2023-07-05 15:11:18 +01:00
Saarika Bhasi
679573bfd5
[Search Application] Connect page : update search application search doc link and minor wording (#161220)
## Summary

* Change UI wording from API Request to **Console** and minor wording
change
* Make `how to guide` url in javascript client tab to point to [Search
application search
doc](https://www.elastic.co/guide/en/enterprise-search/master/search-applications-search.html
)

Related
[discussion](https://elastic.slack.com/archives/C02U50QNEAG/p1688394299778629)

## Screen Recording


8c6482c0-68b2-4374-87b4-fcf6305e5bc2
2023-07-05 10:07:26 -04:00
Juan Pablo Djeredjian
e379f0a97d
[Security Solution] Create test plan for prebuilt rule installation and upgrade workflows (#160685)
## Summary

Combines the two following test plans into one:

- [Test plan for the legacy workflows of installing/upgrading prebuilt
rules](https://docs.google.com/document/d/1d_1DYnHlnCaPznWTjeCxhoaRUwxc2O_V0LToAPG0xLE/edit)
- this google doc is deprecated and will be replaced by the consolidated
test plan created in this PR
- [Test plan for the new workflows of installing/upgrading prebuilt
rules](https://docs.google.com/document/d/1cYvwtpzk0uLn5R88BlCX-fRIwR2n_NoqkSjIXkY9k34/edit)
- this google doc is deprecated and will be replaced by the consolidated
test plan created in this PR

Adds a template for writing new test plans.

---------

Co-authored-by: Georgii Gorbachev <georgii.gorbachev@elastic.co>
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 15:50:20 +02:00
Nicolas Chaulet
8ef1287017
[Fleet] Change default batch size (#161249) 2023-07-05 09:49:38 -04:00
Luke
901b9eb127
[Security Solution] Exp flyout expandable widget rendering (#160625)
## Summary

This tiny PR ensures that widget contents are not rendered until
expanded (in the expandable flyout). This will
prevent unnecessary requests being sent when we open the flyout.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 15:20:55 +02:00
Søren Louv-Jansen
bc4ffb6634
[APM] Add type for route options (#161152)
Add missing type for route options. This is necessary for specifying
`maxBytes`.

cc @LikeTheSalad
2023-07-05 14:47:42 +02:00
Sergi Massaneda
f2e773d435
[SecuritySolution] Rename security solution plugins (#161153)
## Summary

closes: https://github.com/elastic/kibana/issues/159685

- Renaming _x-pack/plugins_:
`serverless_security` -> `security_solution_serverless`
`ess_security` -> `security_solution_ess`

- All the related configurations and types have also been renamed.
- i18n translation prefixes updated
- relocation of internal `security_solution_serverless` directories to
be consistent with `security_solution_ess`

### Eslint
I also added the plugins in the `.eslintrc` configuration, defining the
same rules as the `security_solution` plugin.
All eslint errors have been addressed (mainly _type_ imports errors)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-07-05 13:51:49 +02:00
Antonio
f43601d294
[Cases] Validate page and perPage parameters in find APIs (#161111)
Connected to https://github.com/elastic/kibana/issues/146945

## Summary

| Description  | Limit | Done? | Documented?
| ------------- | ---- | :---: | ---- |
| Total number of cases/user actions/comments per page | 100 |
 | No | N/A |
| Maximum number of cases/user actions/comments returned from the API |
10.000 |  | No | N/A |

### 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]
[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

### Release Notes

Max value for perPage parameter in find Cases API is now 100.
Max value for perPage parameter in find User Actions API is now 100.
Max value for perPage parameter in find Comments API is now 100.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
2023-07-05 13:33:09 +02:00
Wafaa Nasr
16528cf289
[Security Solution] [Exceptions] Amend Rule Exception's Comment text (#161092)
## Summary

- Addresses Docs team comment
https://github.com/elastic/kibana/pull/159908#discussion_r1247964658
2023-07-05 11:44:03 +01:00
Maryam Saeidi
f758ba4750
Use alert details page URL for the log threshold rule if the config is enabled (#161175)
Fixes #161117

## Summary

If `xpack.observability.unsafe.alertDetails.logs.enabled` is enabled, we
will use the new alert details page URL in `context.alertDetailsUrl`
otherwise, we send the user to the alerts page filtered for that alert.
(Partially brings back [the logic for alert details
URL](https://github.com/elastic/kibana/pull/157987/files#diff-a71ca536380c1fde8805744b23566ce795707f92b94a03af73347cac46ccac63L1027)
and
[getAlertDetailsConfig](https://github.com/elastic/kibana/pull/157987/files#diff-a71ca536380c1fde8805744b23566ce795707f92b94a03af73347cac46ccac63L1027))

## 🧪 How to test

1. Set `xpack.observability.unsafe.alertDetails.logs.enabled` as false
in Kibana yml config or remove the config
2. Create a log threshold rule with an action for both active state and
recovered state
3. When the alert is triggered, check the default message, it should
include the alertDetailsURL, by clicking on that, you should land on the
alerts page filtered for that alert
4. Make the alert recovered and check and similar URL should be
generated

New alert details page:

1. Set `xpack.observability.unsafe.alertDetails.logs.enabled` as true in
Kibana yml config
2. Repeat the steps 2,3,4 as mentioned before
3. This time, you should land on the new alert details page


![image](a2f99bd7-cfaa-4146-bedf-72458973b463)
2023-07-05 12:39:58 +02:00