Commit graph

83681 commits

Author SHA1 Message Date
Gonçalo Rica Pais da Silva
a724cdf141
[Discover][APM] Enable experimental traces data source profile (#208896)
## Summary

PR to add an experimental traces data source profile for the APM
data-view. This is the first part to unblock further Discover for Traces
work.

Closes #208690
Related #208689

### How to enable and test this new data source profile
Add the following to `kibana.dev.yml`:

```
discover.experimental.enabledProfiles:
  - traces-data-source-profile
```

And select the APM data view:

![Image](https://github.com/user-attachments/assets/d04e51ed-cb0d-4521-bf05-8c79e51c50e5)
2025-01-31 11:57:48 +01:00
Konrad Szwarc
516903e2a4
[EDR Workflows][Osquery] Skip failing cypress tests in the MKI (#209067)
Added the @skipInServerlessMKI label to 3 test files that are currently
failing in MKI.

Tracking ticket - https://github.com/elastic/security-team/issues/11726
2025-01-31 11:55:22 +01:00
Charlotte Alexandra Wilson
b94475c642
add filter to entity definitions schema (#208588)
## Summary

Adds filter to the entity definition schema so it can be used to filter
entity store data further.

### Testing Steps 
1. Open Kibana and start the entity store.
2. Initialise an engine (e.g., user) with a filter:
``` 
POST kbn:/api/entity_store/engines/user/init 
{
   "filter": "@timestamp < now-6w"
}
```
3. Once the transform has run, verify in Dev Tools:
`GET _transform/entities-v1-latest-security_user_default`
You should see the applied filter in the results, alongside default
filters for user.name and timestamp from
[generate_latest_transform.ts](90d768be9b/x-pack/platform/plugins/shared/entity_manager/server/lib/entities/transform/generate_latest_transform.ts (L29))
Example output will include the added filter as part of a bool query.

```
"query": {
          **"bool": {
            "filter": [
              {
                "bool": {
                  "should": [
                    {
                      "range": {
                        "@timestamp": {
                          "lt": "now-6w"
                        }
                      }
                    }
                  ],**
                  "minimum_should_match": 1
                }
              },
              {
                "exists": {
                  "field": "user.name"
                }
              },
              {
                "range": {
                  "@timestamp": {
                    "gte": "now-24h"
                  }
                }
              }
            ]
          }
        }
      },
```
2025-01-31 10:01:21 +00:00
Tre
ff0781834c
[SKIP ON MKI] 4 files from .../security/common_configs/config.group5 (#208983)
see details: https://github.com/elastic/kibana/issues/208982
2025-01-31 09:29:18 +00:00
Xavier Mouligneau
ac22f58bc3
[CLOUD] Add security question in onboarding (#208229)
## Summary

https://github.com/elastic/cloud/issues/133183



### 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: Kateryna Stukan <92258556+galaxxyz@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-31 10:22:22 +01:00
José Luis González
cdcd47136f
[Search][ECH] Fixing connectors global search results (#208386)
## Summary

Some search results improvements and fixes:
- Fixing link to create a connector, taking users to the new creation
flow in Search passing the props in the URL `.../select_connector/...`
- Fixing the render of  the related connectors icon.
- Only displaying _Self-managed_ connectors from "Elasticsearch"
results. _Elastic managed_ connectors will be provided as Integration
- Removing OpenText Document connector due to it doesn't have support

![CleanShot 2025-01-29 at 11 00
21](https://github.com/user-attachments/assets/48985ba8-8c7e-4337-aca9-f52d8c939eaa)


### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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/src/platform/packages/shared/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
- [ ] 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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-31 09:58:43 +01:00
Antonio
d3de9a0708
[ResponseOps]Change thehive code owners (#208961)
##

This PR updates the `CODEOWNERS` file to specify the owners of the hive
connector.
2025-01-31 09:11:46 +01:00
Antonio
5a57f40f67
[ResponseOps] Fix connector test (#208754)
## Summary

This PR fixes a test introduced in
https://github.com/elastic/kibana/pull/208033
2025-01-31 09:11:15 +01:00
Ellie
4d642585dd
Add missing quotes in the buildkite branch name (#209055)
## Summary

Add missing quotes in the buildkite branch name

### Checklist

Check the PR satisfies following conditions. 

Reviewers should verify this PR satisfies this list as well.

- [ ] 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/src/platform/packages/shared/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
- [ ] 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 was checked for breaking HTTP API changes, and any breaking
changes have been approved by the breaking-change committee. The
`release_note:breaking` label should be applied in these situations.
- [ ] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ ] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

### Identify risks

Does this PR introduce any risks? For example, consider risks like hard
to test bugs, performance regression, potential of data loss.

Describe the risk, its severity, and mitigation for each identified
risk. Invite stakeholders and evaluate how to proceed before merging.

- [ ] [See some risk
examples](https://github.com/elastic/kibana/blob/main/RISK_MATRIX.mdx)
- [ ] ...
2025-01-31 07:33:48 +00:00
Kibana Machine
c68c2e6e2d
[api-docs] 2025-01-31 Daily api_docs build (#209049)
Generated by
https://buildkite.com/elastic/kibana-api-docs-daily/builds/969
2025-01-31 08:13:49 +01:00
Tiago Costa
296c452345
chore(NA): bump version to 9.1.0 (#208990)
Usually bump from 9.0.0 to 9.1.0
2025-01-31 06:05:13 +00:00
Tiago Costa
5dcfaa5927
chore(NA): update pipeline resource definitions after bump 9.1.0 (#209003)
This PR updates the pipeline resource definitions to support the new
8.17 added branch.
2025-01-31 06:05:00 +00:00
Tiago Costa
82c3b5b859
chore(NA): adds 9.0 into backportrc (#208999)
It adds 9.0 into the .backportrc config file
2025-01-31 06:04:50 +00:00
Tiago Costa
8972a49009
chore(NA): update versions after v9.1.0 bump (#208997)
This PR is a simple update of our versions file after the recent bumps.
2025-01-31 06:04:40 +00:00
Kibana Machine
c1f17515b1 skip failing test suite (#193102) 2025-01-31 13:41:17 +11:00
Ahmad Bamieh
160c0d4682
[main] [Upgrade Assistant] Data streams reindexing (#208083) (#209029)
# Backport

This will backport the following commits from `8.x` to `main`:
- [[Upgrade Assistant] Data streams reindexing
(#208083)](https://github.com/elastic/kibana/pull/208083)

<!--- Backport version: 9.6.4 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Ahmad
Bamieh","email":"ahmad.bamyeh@elastic.co"},"sourceCommit":{"committedDate":"2025-01-30T22:33:10Z","message":"[Upgrade
Assistant] Data streams reindexing (#208083)\n\n## Data streams
reindexing\r\n\r\nThis PR implements data stream reindexing corrective
action.\r\n\r\n\r\n## Screenshots\r\nFound
here\r\nhttps://docs.google.com/document/d/1QntGX5aTbjAv-VRZoKg43McZ_obddLkIPAQp_molMvw/edit?tab=t.0#heading=h.spoobki9vra3\r\n\r\n\r\n##
Testing\r\n#### Handling kibana restarts:\r\nSince we dont maintain any
state in Kibana for the data stream\r\nreindexing we dont worry about
this scenario\r\n\r\n#### Ensuring only one node is handling the task
sync with ES:\r\nSince we dont maintain any state in Kibana for the data
stream\r\nreindexing we dont worry about this scenario\r\n\r\n#### ES
task returns an exception:\r\nThis is a new state that was introduced in
persistent tasks. We show a\r\nhuge exception banner and ask user to
retry.\r\n\r\n#### ES task fails to reindex some indices but reindexing
is complete:\r\nShow an error in the in progress page. This is an
undesired state since\r\nthe user will still be asked to reindex the
data stream again for only\r\nthose failed indices.\r\n\r\n#### ES task
fails to reindex some indices but reindexing is still
in\r\nprogress\r\nWe should a count of how many failed while showing a
progress bar.\r\n\r\n#### Pause/resume/cancel functionality\r\ndata
transform reindexing only has ‘cancel’ from ES side however
it\r\nbehaves as “pause” since it will pick up where it last was
cancelled.\r\nSince we do not maintain a state in kibana we only show a
cancel button.\r\nOnce the reindex is cancelled the user can start it
again. All the\r\ndescriptions are updated from ES with the latest
incomplete countes.\r\n\r\n#### ES task stops responding\r\nWe mark the
Kibana task as failed\r\n\r\n#### ES task returns 404\r\nBoth cancelled
tasks and never started ones return 404 from ES side.\r\nThe only way to
tell the difference is to see if the Kibana task is “in\r\nprogress”
then this means it was cancelled from ES side (canelled via\r\nAPI by
the user directly for example) and we mark it as cancelled for\r\nthe
user.\r\n\r\n\r\n#### Other main flow tests:\r\n- Tested a small data
stream reindexing job\r\n- Tested a huge data stream reindexing job\r\n-
Tested pausing a job\r\n- Tested cancelling a job\r\n- Stopping ES
during reindexing and then restarting\r\n- Reindexing in a cluster with
2 Kibana
nodes","sha":"6925d129455ccb458e08cf33ce36c08e0d5313f5","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:prev-major","v8.18.0"],"title":"[Upgrade
Assistant] Data streams
reindexing","number":208083,"url":"https://github.com/elastic/kibana/pull/208083","mergeCommit":{"message":"[Upgrade
Assistant] Data streams reindexing (#208083)\n\n## Data streams
reindexing\r\n\r\nThis PR implements data stream reindexing corrective
action.\r\n\r\n\r\n## Screenshots\r\nFound
here\r\nhttps://docs.google.com/document/d/1QntGX5aTbjAv-VRZoKg43McZ_obddLkIPAQp_molMvw/edit?tab=t.0#heading=h.spoobki9vra3\r\n\r\n\r\n##
Testing\r\n#### Handling kibana restarts:\r\nSince we dont maintain any
state in Kibana for the data stream\r\nreindexing we dont worry about
this scenario\r\n\r\n#### Ensuring only one node is handling the task
sync with ES:\r\nSince we dont maintain any state in Kibana for the data
stream\r\nreindexing we dont worry about this scenario\r\n\r\n#### ES
task returns an exception:\r\nThis is a new state that was introduced in
persistent tasks. We show a\r\nhuge exception banner and ask user to
retry.\r\n\r\n#### ES task fails to reindex some indices but reindexing
is complete:\r\nShow an error in the in progress page. This is an
undesired state since\r\nthe user will still be asked to reindex the
data stream again for only\r\nthose failed indices.\r\n\r\n#### ES task
fails to reindex some indices but reindexing is still
in\r\nprogress\r\nWe should a count of how many failed while showing a
progress bar.\r\n\r\n#### Pause/resume/cancel functionality\r\ndata
transform reindexing only has ‘cancel’ from ES side however
it\r\nbehaves as “pause” since it will pick up where it last was
cancelled.\r\nSince we do not maintain a state in kibana we only show a
cancel button.\r\nOnce the reindex is cancelled the user can start it
again. All the\r\ndescriptions are updated from ES with the latest
incomplete countes.\r\n\r\n#### ES task stops responding\r\nWe mark the
Kibana task as failed\r\n\r\n#### ES task returns 404\r\nBoth cancelled
tasks and never started ones return 404 from ES side.\r\nThe only way to
tell the difference is to see if the Kibana task is “in\r\nprogress”
then this means it was cancelled from ES side (canelled via\r\nAPI by
the user directly for example) and we mark it as cancelled for\r\nthe
user.\r\n\r\n\r\n#### Other main flow tests:\r\n- Tested a small data
stream reindexing job\r\n- Tested a huge data stream reindexing job\r\n-
Tested pausing a job\r\n- Tested cancelling a job\r\n- Stopping ES
during reindexing and then restarting\r\n- Reindexing in a cluster with
2 Kibana
nodes","sha":"6925d129455ccb458e08cf33ce36c08e0d5313f5"}},"sourceBranch":"8.x","suggestedTargetBranches":["8.18"],"targetPullRequestStates":[{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2025-01-31 01:46:54 +01:00
Kibana Machine
396804f0f0 skip failing test suite (#209027) 2025-01-31 11:32:16 +11:00
Michael Wolf
81a57e005e
Increase maximum Osquery timeout to 24 hours (#207276)
Some Osquery queries are expected to be long running. To accommodate
this, increase the maximum timeout in the query creation UI to 24 hours
(86400 seconds).

24 hours should allow most long-running queries, while still having a
limit that ensures misbehaving queries do not block others for an
extremely long time.

Relates to https://github.com/elastic/beats/issues/42352. Osquerybeat
will also increase its timeout limit to 24h, this change will allow the
higher timeout to be set by users in Kibana.
2025-01-31 01:18:47 +01:00
seanrathier
df4a6d7ce3
[Cloud Security] Unskipped and fixed flaky agentless test (#208844) 2025-01-31 00:36:59 +01:00
Tiago Costa
bd31407be5
chore(NA): update pipeline resource definitions after bump 8.19.0 (#209004)
This PR updates the pipeline resource definitions to support the new
8.17 added branch.
2025-01-30 22:20:59 +00:00
Tiago Costa
a40314d254
chore(NA): adds 8.18 into backportrc (#208998)
It adds 8.18 into the .backportrc config file
2025-01-30 22:20:42 +00:00
Tiago Costa
2e4245889b
chore(NA): update versions after v8.19.0 bump (#208995)
This PR is a simple update of our versions file after the recent bumps.
2025-01-30 22:20:26 +00:00
Tiago Costa
b5df3e256e
skip flaky es promotion suites (#163255) 2025-01-30 20:41:57 +00:00
Tiago Costa
92fc287096
skip flaky es promotion suites (#163254) 2025-01-30 20:40:29 +00:00
Tiago Costa
777e1fe389
skip flaky es promotion suites (#158318) 2025-01-30 20:39:29 +00:00
Tiago Costa
a7b55350cf
skip flaky es promotion suites (#167676) 2025-01-30 20:37:26 +00:00
Kibana Machine
970d805f74 skip failing test suite (#209014) 2025-01-31 06:58:50 +11:00
Lisa Cawley
bc5e893aae
Use current in documentation link service (#208867) 2025-01-30 11:56:24 -08:00
Devin W. Hurley
4419390282
[Security Solution] [Detection Engine] Logs shard failures for eql event queries on rule details page and in event log (#207396)
## Summary

Related: https://github.com/elastic/elasticsearch/pull/116388/

Adds support for shard failures for EQL event queries in the detection
engine.
2025-01-30 20:55:53 +01:00
Krzysztof Kowalczyk
b35e1051e6
[Guided Onboarding] Remove "Setup Guides" buttons (#208510)
## Summary
This PR removes `Setup Guides` buttons.
Closes: #207026

> [!NOTE]
All the tests in
`src/platform/plugins/shared/guided_onboarding/public/components/guide_panel.test.tsx`
depend on those buttons so it was easier to remove those tests.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-30 20:43:08 +01:00
Rodney Norris
26fac70c9b
[Search][Configuration] Remove Enterprise Search node values (#208856)
## Summary

This removes the config values associated with the enterprise search
node.

### 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/src/platform/packages/shared/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
- [x] 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)
2025-01-30 13:28:26 -06:00
Nathan Reese
758768136d
[dashboard] remove legacy section from 'Add panel' flyout (#208116)
Users should use Lens to visualize data. Users should not use TSVB or
aggregation based panels. To this end, "easy button" UIs, such as
dashboard's "Add panel" flyout, should guide users to lens and not guide
them to legacy applications.

This PR removes `legacy` section from dashboard "Add panel" flyout.
Users can still add legacy panels to dashboards via "visualize"
application. The path is more steps, but this is as intended. Using old
stuff should be painful and require extra work as a caret to move users
to new stuff.

<img width="500" alt="Screenshot 2025-01-23 at 1 08 41 PM"
src="https://github.com/user-attachments/assets/e142cba9-a880-4ad6-a3f8-a981a03daaec"
/>

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-30 12:22:51 -07:00
Joe Reuter
2212a19bc8
🌊 Streams: Convert legacy types in frontend (#208608)
This PR gets rid of the usage of the legacy "readdefinition" types in
the frontend except for the enrichment view, because @tonyghiani is
working on that in parallel.

I first looked into whether we can just use the existing
`IngestStreamGetResponse` type, but since it doesn't carry the name of
the stream, that is actually super annoying to use - passing the name as
a separate argument is pretty annoying and increases the risk of bugs.

Even though it's not fully "Elasticsearch"-y, I decided to add the
stream name to the `IngestStreamGetResponse` - this way the `stream`
property in the response is a regular `StreamDefinition`, so all the
functions that act on it can use it right away.

This simplifies the frontend code without hurting programmatic API
users.
2025-01-30 19:36:59 +01:00
elastic-renovate-prod[bot]
aec58c14ef
Update docker.elastic.co/wolfi/chainguard-base:latest Docker digest to 8df3ca6 (main) (#208931)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| docker.elastic.co/wolfi/chainguard-base | digest | `d04ee51` ->
`8df3ca6` |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJUZWFtOk9wZXJhdGlvbnMiLCJiYWNrcG9ydDpza2lwIiwicmVsZWFzZV9ub3RlOnNraXAiXX0=-->

Co-authored-by: elastic-renovate-prod[bot] <174716857+elastic-renovate-prod[bot]@users.noreply.github.com>
2025-01-30 11:56:06 -06:00
Shahzad
6dda88821d
[Synthetics] Clarify private location api docs !! (#208504)
## Summary

Clarify private location api docs !!

Co-authored-by: Dominique Clarke <dominique.clarke@elastic.co>
2025-01-30 18:44:40 +01:00
Tiago Costa
bd0d6820af
skip failing es promotion (#208874) 2025-01-30 17:29:36 +00:00
Tiago Costa
28e431c7c8
skip failing es promotion (#208870) 2025-01-30 17:27:07 +00:00
Tiago Costa
48d2e4c0b1
skip failing es promotion (#208871) 2025-01-30 17:24:32 +00:00
Tiago Costa
3537b2d008
skip failing es promotion (#208872) 2025-01-30 17:22:10 +00:00
Tiago Costa
d3a115b326
skip failing es promotion (#208873) 2025-01-30 17:17:20 +00:00
Jen Huang
010ef6b4c5
[UII] Convert deployment mode selector to radio group (#208859) 2025-01-30 08:58:00 -08:00
Ievgen Sorokopud
b28036a2e0
[Security GenAI] "Select a Connector" popup does not show up after the user selects any connector and then cancels it from Endpoint Insights. (#208907) (#208969)
## Summary

BUG: https://github.com/elastic/kibana/issues/208907

This PR fixes the issue where user cannot select a different connector
type after mistakenly selecting a wrong one.

### Steps to reproduce without required endpoint installation:

1. Make sure there are no connectors
2. Open "AI Assistant" on one of the security solution pages
3. Press "(+) Add connector" button
4. Connector type selection modal is visible
5. Select "Amazon Bedrock" type (or any other connector type)
6. Cancel the modal
7. Press "(+) Add connector" button again

**ISSUE**: previously selected connector type is being displayed and
there is no way to switch between types
**EXPECTED**: we should show connector type selection modal once
previous one was closed

### Issue recording


https://github.com/user-attachments/assets/48052bf1-4e00-43b7-a63e-f8a7969b9dbf

### Fixed state recording


https://github.com/user-attachments/assets/48be1cc4-0326-43a1-bd57-bb82fc1f19eb
2025-01-30 17:53:36 +01:00
Jan Calanog
c7cef4c95b
github-action: Add AsciiDoc freeze warning (#208534)
## Details

⚠️ This PR was created by an automated tool. Please review the changes
carefully. ⚠️

Add a workflow that will comment on PRs with AsciiDoc changes.

## Why

During the migration to Elastic Docs v3, the Docs team will focus
exclusively on migrating content.
To maintain consistency, prevent conflicts, and ensure a smoother
transition we will freeze all AsciiDoc changes.

This means you will get a warning when you create AsciiDoc changes in
your PRs.

   See https://github.com/elastic/docs-builder/issues/281 for details

If there are any questions, please reach out to the
@elastic/docs-engineering

---------

Co-authored-by: Brandon Morelli <brandon.morelli@elastic.co>
2025-01-30 16:41:18 +00:00
Steph Milovic
b0a72e2b90
[Security AI] Move security-ai-prompt to package (#208787) 2025-01-30 17:34:30 +01:00
Kevin Qualters
0e7c608ed3
[Cases] Cases assignees sub feature (#201654)
## Summary

This pr implements a new cases assignee sub-feature, allowing users to
control a role's ability to change the assignee of a case. With the
permission enabled, they can assign any user to any case, with it
disabled, the assignees component is hidden.

Read only + enabled:

![image](https://github.com/user-attachments/assets/ba421784-d976-4ae9-a399-e404c26b3842)


All + assign disabled:

![image](https://github.com/user-attachments/assets/d835b6f9-5a14-4ae0-abed-b3c3252c2692)



### Checklist

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

---------

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
2025-01-30 17:04:38 +01:00
Jean-Louis Leysens
53cba303e5
[OAS] Remove Elastic-Api-Version (#207071)
## Summary

We anticipate generating a single document per API version for the
foreseeable future. This PR updates our OAS document merging logic to
avoid adding the `Elastic-Api-Version` header to our spec.

This will also remove this header from current documentation.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2025-01-30 16:59:45 +01:00
Tre
c1666be580
[SKIP ON MKI] .../open_in_lens/tsvb/*.ts (#208927)
see details: https://github.com/elastic/kibana/issues/208926
2025-01-30 16:49:37 +01:00
Shahzad
97e8bada1d
[Synthetics] Update pings query to not use last 30 days time range !! (#208366)
## Summary

Fixes https://github.com/elastic/kibana/issues/198443 !!

Instead of using last 30 days, it will now uses last 24 hours otherwise
it will fall back to last 7 days and then last 30 days.

Last run should still work as expected 

<img width="1728" alt="image"
src="https://github.com/user-attachments/assets/abad5d83-5456-440e-b5b5-147915315120"
/>

---------

Co-authored-by: Justin Kambic <jk@elastic.co>
2025-01-30 16:01:27 +01:00
Alex Prozorov
cd9096cf73
[Cloud Security] 10973 migrate flaky e2e tests to jest (#208345)
## Summary

This PR tries to fix the following issues - which are flaky FTR tests:

- https://github.com/elastic/kibana/issues/197143 - convert to unit test
- https://github.com/elastic/kibana/issues/190967 - fixed
- https://github.com/elastic/kibana/issues/187470 - fixed
- https://github.com/elastic/kibana/issues/186302 - convert to unit test
- https://github.com/elastic/kibana/issues/186438 - convert to unit test


There will be an RFC document which is going to be released to help us
better understand and decide which tests are more suitable to make as
E2E tests and which as unit tests.

### 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
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed

### Closes
this PR closes the above mentioned issues in relation for this ticket -
https://github.com/elastic/security-team/issues/10973
2025-01-30 16:23:25 +02:00
Nicolas Chaulet
0a0a4d8b75
[Fleet] Improve reading package archive memory usage (#208869)
## Summary

Related to https://github.com/elastic/kibana/issues/208210 

As we know the package size from the content-length header we can
improve how read the archive stream to a buffer.

## Benchmark 

<img width="710" alt="Screenshot 2025-01-29 at 9 23 59 PM"
src="https://github.com/user-attachments/assets/79dc1f20-938b-402e-a823-1ab26a07b78e"
/>
2025-01-30 09:03:52 -05:00