Commit graph

77 commits

Author SHA1 Message Date
Jon
0719f5c110
[renovate] Test github action package match (#190427)
Another attempt at fixing github action pinning. This scopes us to the
actions/checkout package only for now, and we can expand it later.

Previously: https://github.com/elastic/kibana/pull/190377, which was
successful for the auto-approve-backport acttion.
2024-08-13 09:48:13 -05:00
Jamie Tanna
bec63eca4c
chore(renovate): add Regex Manager to enabledManagers (#190385)
## Summary

As it's required for us to extract Chainguard images, as well as some
other cases like Buildkite.

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

Delete this section if it is not applicable to this PR.

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)
2024-08-13 07:05:50 -05:00
Jon
97fd4e4a42
[ci] Validate renovate config (#190234)
Adds `renovate.json` config validation to `Quick Checks`
2024-08-12 17:13:07 -05:00
Jamie Tanna
ed4139e0f7
fix(renovate): correctly specify depName for chainguard-base extraction (#190308)
## Summary

As we had not specified a `depName` capture group - or explicitly
defined `depNameTemplate`, Renovate's extraction fails, as it cannot
determine which package it is matching on.

Closes #190204


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

Delete this section if it is not applicable to this PR.

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)
2024-08-12 07:28:16 -05:00
Isaac Karrer
60c5eca33e
Feat/renovate custom chainguard matcher pt2 (#190260)
## Summary

Drops a comment for the current chaingaurd reference incase it is
implemented in a tech that requires endings other than `.ts`, and then
creates a PR grouping for the chainguard images.
2024-08-09 13:22:35 -05:00
Alejandro Fernández Haro
5f985213af
Add eslint-plugin-depend (#190233) 2024-08-09 20:07:01 +02:00
Isaac Karrer
77be3c0b32
add custom matcher for run.ts (#190186)
## Summary

A custom matcher for chainguard updates.


https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/run.ts#L46
2024-08-09 09:07:40 -05:00
Jon
a1dd807718
[ci] Fix renovate config (#190242)
Will follow up with a check to prevent these issues with
https://github.com/elastic/kibana/pull/190234
2024-08-09 08:56:22 -05:00
Jon
9a54dbcf8d
[renovate] Enable GitHub actions (#190173)
https://docs.renovatebot.com/modules/manager/github-actions/
2024-08-08 16:13:59 -05:00
Alejandro Fernández Haro
7bd6ca647d
[renovate] Do not backport redocly/cli updates (#189471) 2024-07-30 11:45:29 +02:00
Brad White
e67b9678b3
[Renovate] Restrict prettier version (#189124)
## Summary

Upgrade to `prettier@3` is blocked by jest upgrade to `jest@30`. See
https://github.com/elastic/kibana/pull/188021#issuecomment-2221253306
2024-07-24 13:29:18 -07:00
Nick Partridge
49a985625b
Upgrade prettier dependencies (#188032)
## Summary

- Upgrade `prettier` to `v2.8.x`.
- Upgrade related decencies.
- Adds `prettier` group to renovate config.
- Fixes bootstrapping type error.

## Main Changes

### Add parentheses for `TypeofTypeAnnotation` to improve readability

[link](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#add-parentheses-for-typeoftypeannotation-to-improve-readability-14458-by-fisker)

```ts
// Input
type A = (typeof node.children)[];

// Prettier 2.8.4
type A = typeof node.children[];

// Prettier 2.8.5
type A = (typeof node.children)[];
```

### Add parentheses to head of `ExpressionStatement` instead of the
whole statement


[link](https://github.com/prettier/prettier/blob/main/CHANGELOG.md#add-parentheses-to-head-of-expressionstatement-instead-of-the-whole-statement-14077-by-fisker)

```ts
// Input
({}).toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);

// Prettier 2.8.1
({}.toString.call(foo) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo));

// Prettier 2.8.2
({}).toString.call(foo.forEach) === "[object Array]"
  ? foo.forEach(iterateArray)
  : iterateObject(foo);
```

## Details

This started because I noticed we were on `typescript@^5` but still on
an old prettier that complained about use of new TS features such as
[`satisfies`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-9.html#the-satisfies-operator).

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-07-24 17:29:05 +01:00
Nathan L Smith
2caa75662d
Fix names for observability teams in renovate.json (#188693)
These were either outdated or using an incorrect GitHub team name.
2024-07-18 20:39:38 -05:00
Tiago Costa
3c338a82c2
chore(NA): remove usage of re2 and replace it with a non native module (#188134)
This PR removes the usage of the native module version of `re2` and
replaces it with a js port called `re2js`.
It also ends our usage of native node modules in production and it
removes the task from the build as well. Further steps will be taken
along our strategy to avoid future usages of native node modules in prod
environments.
2024-07-15 20:33:28 +01:00
Alejandro Fernández Haro
5cc881cec2
fix(renovate): remove "prCreation":"not-pending" (#187027) 2024-06-26 17:15:26 -07:00
Alejandro Fernández Haro
a46ea29bbd
chore(launchdarkly): Update renovate rule (#186979) 2024-06-26 09:08:57 -07:00
Paulo Henrique
cb11a1b004
[Cloud Security] Adding MSW for mocking server responses in React integration tests (#184555)
## Summary

It closes #183977

This PR introduces the MSW library into Kibana and setups for MSW usage
with Jest for integration testing of React components in the Cloud
Security Posture plugin.

It also adds the setup for the initial
[handlers](https://mswjs.io/docs/concepts/request-handler/), and
configures a test for the `<NoFindingsStates/>` components using MSW to
exemplify how the library works.

### Problem Statement

Currently, integration tests for React components that interact with the
server are hard to write and maintain, as they often require mocking
functions implementation and responses, this can lead to tests that do
not accurately verify the intended functionality and can be hard to
maintain as the implementation of the functions changes.

This leads to situations our team faces now, where due to the difficult
maintainability of integration tests, we rely much more on End-to-End
tests, and maintaining those many End-to-End comes with its own set of
tradeoffs, as oftentimes End-to-End tests are detected by the CI as
failing or flaky, and as flakiness can happen in End-to-end tests due to
its nature of multiple integrated systems, this concept proposes that
it's better to reserve End-to-end tests for the features in the most
critical path and tests that test multiple integrated systems as those
will benefit most of the end-to-end testing. For all the other tests we
should focus on unit and integration tests.

### How MSW works

MSW is a library that allows you to mock server responses in your tests,
it works by intercepting the requests made by the client and returning
the mocked responses, this way we can test how the client behaves in
different states of the lifecycle such as loading, error, and success.

This proposes that we should use MSW to enhance our integration tests,
and give preference to writing integration tests over End-to-End tests
whenever possible, but this doesn't mean that we should stop writing
end-to-end tests, as end-to-end tests are still important for the
features in the most critical path and tests that tests multiple
integrated systems.


### MSW Diagram

Here's a diagram that shows how MSW works with Jest tests:

```mermaid
%%{init:{'themeCSS':' g:nth-of-type(3) rect.actor { fill: #eee; };g:nth-of-type(7) rect.actor { fill: #eee; };'}}%%

sequenceDiagram
    participant ReactComponent as React Component
    participant API as API
    participant MSW as MSW Mock Server
    participant Jest as Jest Test

    Jest->>ReactComponent: Setup component test and mock providers
    Jest->>MSW: Setup Mock Server
    Note over Jest,MSW: start listening for requests
    activate MSW
    ReactComponent->>API: Make API Call
    Note over ReactComponent,API: loading state
    activate API
    MSW-->>API: Intercepts API Call
    deactivate API
    alt is success
        MSW-->>ReactComponent: Send Mocked success Response
    else is error
        MSW-->>ReactComponent: Send Mocked error Response
    end
    deactivate MSW
    ReactComponent-->>Jest: Receive Mocked data and render
```


### Documentation

- Refer to this [PR](https://github.com/elastic/security-team/pull/9624)
containing the documentation of how MSW works and how to use it.
- Refer to this
[presentation](https://docs.google.com/presentation/d/1KYtBaeDMZrpoU5lnKASm8GvCxhrXVqMKxWgR-Xvaxzc/edit#slide=id.g11f0f180654_1_0)
to understand the main motivations behind this proposal.

### How to test it


```
yarn test:jest x-pack/plugins/cloud_security_posture/public/components/no_findings_states.test.tsx

```


### Screenshot


![image](f0673be2-f087-42b5-8ed6-42ce3159e378)


Intercepted requests logged with `{debug: true}`:


![image](b512d486-8a2a-422e-bf26-3c6b60a8c6d2)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-06-18 11:08:01 -07:00
Alejandro Fernández Haro
cb825d046a
Upgrade LaunchDarkly clients (#185884) 2024-06-11 01:38:48 +02:00
Nick Partridge
eaed27c14b
Update renovate config (#184785)
- Replace the `extends` config from the deprecated `config:base` to
`config:recommended`.
- Removes global defaults from top-level group and applies the
`prCreation` and `stabilityDays` options only to non-elastic dependency
groups.
- Replaces deprecated `stabilityDays` option with new
[`minimumReleaseAge`](https://docs.renovatebot.com/configuration-options/#minimumreleaseage).
- Replaces all `matchPackage*` options to `matchDep*` options.
- Format entire config file with prettier.
2024-06-05 10:57:53 -07:00
Sander Philipse
95eb12cc45
[Search] Renaming the search frontend group (#184565)
## Summary

This renames the enterprise-search-frontend group to search-kibana to
better align with what our group actually does.
2024-06-03 13:14:49 -07:00
Drew Tate
c4ef9bdccf
[ES|QL] generate function validation tests (#183343)
## Summary

Close https://github.com/elastic/kibana/issues/182390


### To test

You can test all aspects of the script by first making some changes to
`packages/kbn-esql-validation-autocomplete/src/validation/validation.test.ts`
- delete several tests from an existing function describe block ("block
1"—except don't choose "date_diff" since it has a bunch of custom tests)
- delete another function describe block completely ("block 2")
- change the expected result of several of the tests in a third function
describe block ("block 3")

Then, run `yarn maketests` from within
`packages/kbn-esql-validation-autocomplete`

**Expected result**
- Block 1 should have the deleted tests restored
- Block 2 should be restored entirely (though it may be moved in the
tests file)
- Block 3 should be untouched

### Checklist

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

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-05-16 16:06:16 +02:00
Larry Gregory
d38cf12fca
Bump @redocly/cli to version 1.12.0 (#182744)
## Summary

Bump @redocly/cli to version `1.12.0`.

[Changelog](https://redocly.com/docs/cli/changelog/)
2024-05-08 10:10:04 -04:00
Larry Gregory
40a1641357
Migrate from listr to listr2 (#182683)
## Summary

Migrates CLI tasks from `listr` to `listr2`. The former hasn't been
updated in a long time, and the community has moved on to `listr2`.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-05-07 07:30:42 -04:00
Aleh Zasypkin
c8d7f42b2b
chore: bump ejs from 3.1.8 to 3.1.10. (#182331)
## Summary

Bump `ejs` from `3.1.8` to `3.1.10`. While looking at other packages
that depend on `ejs` noticed `apidoc-markdown` that is only used by ML
team, so assigned ownership in Rennovate as well (cc @elastic/ml-ui).

```shell
npm ls ejs
kibana@8.15.0 /kibana
├─┬ apidoc-markdown@7.3.2
│ └── ejs@3.1.10 deduped
└── ejs@3.1.10
```
2024-05-02 12:33:25 +02:00
Sid
bccb0cd4ba
Upgrade nodemailer dependency 6.6.2 -> 6.9.9 (#176487)
Update nodemailer production dependency (6.6.2 -> 6.9.9)

Nodemailer changelog: 
- Fixing GHSA:
https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md#699-2024-02-01
- Update hotmail/outlook well known service
https://github.com/nodemailer/nodemailer/blob/master/CHANGELOG.md#673-2022-03-21

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2024-03-19 17:00:55 +01:00
Elena Stoeva
dbf017ba31
Rename Management team name in codeowners file (#178626)
The AppEx Management team was recently renamed on GitHub from
`platform-deployment-management` to `kibana-management`. This PR updates
the Codeowners file and all references to the team name.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2024-03-18 15:46:31 +00:00
Jean-Louis Leysens
613d25238b
[HTTP] Assert subset of CSP directives for serverless (#178411)
## Summary

On serverless tests it would be useful to assert that a base set of CSP
directives and values are present.

## Test

Followed instructions in ./x-pack/test_serverless/README.md

## Notes

- Added new dev dependency `content-security-policy-parser` to ease
comparison of CSP directives
2024-03-12 07:44:29 -07:00
Thomas Watson
5315f93b9c
Remove unused Renovate config package rule (#176819) 2024-02-14 08:51:52 +01:00
Thomas Watson
7ef1ca70a6
Clean up branch names in Renovate config (#176370) 2024-02-13 02:54:19 -07:00
Nathan L Smith
5b25191153
Remove Infra Monitoring UI team (#175745)
This team no longer exists and this removes all references to the team
in Kibana.
2024-01-30 13:33:57 -06:00
Patryk Kopyciński
d4be2a33ac
Replace deprecated node-sass with sass #2 (#173942)
## Summary

The previous PR https://github.com/elastic/kibana/pull/161813 was
reverted due to the broken webpack config

eef1afcd59

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Jon <jon@elastic.co>
2023-12-28 10:35:17 -06:00
Jonathan Budzenski
3def20e8dc Revert "Replace deprecated node-sass with sass (#161813)"
This reverts commit 87d5d6be26.
2023-12-21 09:59:08 -06:00
Patryk Kopyciński
87d5d6be26
Replace deprecated node-sass with sass (#161813)
## Summary

https://sass-lang.com/blog/libsass-is-deprecated/

Most of the changes related to 
https://sass-lang.com/documentation/breaking-changes/slash-div/

---------

Co-authored-by: Tiago Costa <tiago.costa@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-12-21 12:51:58 +01:00
Brad White
daffee89f9
[chore] Adjust Renovate settings for Storybook (#172032)
## Summary

This is a continuation of #171453 to stop package updates in #169655 due
to Storybook V7 breaking changes. `@storybook/testing-react` uses
different versioning than other `@storybook/*` packages, so requires a
new rule. Also adjusts the default labelling for Storybook PRs.
2023-11-27 16:14:39 -08:00
Brad White
d392473d90
[chore] Restrict Storybook version for Renovate (#171453)
Renovate bot keeps updating Storybook in #169655 to 7.x which has
[significant breaking
changes](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#from-version-65x-to-700),
CI failures, and requires Webpack 5. This upgrade will require a human
due to how our SB is setup.

[Renovate
Docs](https://docs.renovatebot.com/configuration-options/#allowedversions)
2023-11-21 14:43:15 -07:00
Alejandro Fernández Haro
91c8506ece
[LaunchDarkly] Add renovate (#169516) 2023-10-23 17:55:53 +02:00
Jeramy Soucy
5d328feb7f
Upgrade zod@3.21.4→3.22.3 (#168041)
## Summary

Upgrades `zod` from v3.21.4 to v3.22.3.
2023-10-06 09:41:06 -07:00
Patryk Kopyciński
924664fc79
Bump cypress@13.3.0 (#162383)
## Summary

Bump Cypress-related dependencies to the latest versions and update
`renovate.json` to do it automatically in the future

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Gloria Hornero <gloria.hornero@elastic.co>
2023-10-01 10:55:01 +02:00
Kurt
70c7fc571b
Upgrade openpgp 5.3.0 to 5.10.1 (#165526)
## Summary

Upgrade `openpgp` from `5.3.0` to `5.10.1`

Commit log:
https://github.com/openpgpjs/openpgpjs/compare/v5.3.0...v5.10.1

There is an incompatibility of `Uint8Array` when using Jest/JSDom with
the TextEncoder/TextDecoder from node `util`.

`https://github.com/kayahr/text-encoding` has been added as a
`devDependency` so it can be used in the polyfill. It provides a working
TextEncoder/Decoder for our Jest tests.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-18 08:31:16 -04:00
Thom Heymann
0fa2223cff
Remove deprecated styles and components from static error pages (#165513)
Resolves #160122

## Summary

Remove deprecated styles and components from static error pages

## Screenshot

<img width="696" alt="Screenshot 2023-09-01 at 19 45 13"
src="575deadf-9efd-4e63-8752-df5b69de5bd1">

## Testing

- Create a user without any roles and try to login

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-09-05 07:12:30 -07:00
Alejandro Fernández Haro
4b88b10b0f
[Logger] Strip ANSI escape codes from the message (#164337)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-08-25 11:53:57 +02:00
Jeramy Soucy
d076300a52
Upgrades protobufjs 6.11.3 -> 7.2.4 (#161407)
Upgrades protobufjs from 6.11.3 to 7.2.4 via...
- @grpc/grpc-js 1.6.7 -> 1.6.8
- @opentelemetry/exporter-metrics-otlp-grpc 0.30.0 -> 0.34.0

Upgrades for compatibility...
- @opentelemetry/api-metrics 0.30.0 -> 0.31.0
- @opentelemetry/exporter-prometheus 0.30.0 -> 0.31.0
- @opentelemetry/sdk-metrics-base 0.30.0 -> 0.31.0
2023-07-13 08:51:55 -04:00
Karl Godard
0a5b4233d1
Session view and k8s dashboard fixes (#154982)
## Summary

- fixes some issues in session_view wrt to logs-cloud_defend.process*
data.
- added a 'collapse all' children feature. with sticky scroll session
leader!
- k8s dashboard session table: user.name -> user.id (id is more likely
to be set for both endpoint and cloud-defend)
- Fixed a major bug when 'searching within terminal'. If a process is
highlighted it would cause kibana to blow up.
- session view handling of session leader user info improved.
- codeowners updated. awp-viz -> sec-cloudnative-integrations
- a badge will be added to the selector header when it's not in used by
a response flow

### Screenshots

![image](https://user-images.githubusercontent.com/16198204/232567236-98e57a3a-913c-4a25-8271-e1ee138b25dd.png)

Sticky session leader demo:
https://www.loom.com/share/b039e48fdfd647b291f293d643339660

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

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2023-04-17 16:22:28 -07:00
Jon
be71713035
Upgrade typescript-eslint to 5.54.0 (#152358)
We're seeing infrequent but reliable build failures due to parse errors
when linting -
https://buildkite.com/elastic/kibana-on-merge/builds/27649#01869780-fb18-4a4d-990e-b8d5a05a701a/225-792.

Looking into bug fixes upstream.
2023-03-23 10:52:41 -05:00
Thomas Watson
5fa79fc9b3
Remove @loaders.gl/polyfills dev-dependency (#151287) 2023-02-15 15:03:37 +01:00
Jon
78947c4c6f
Upgrade terser to 5.16.1 (#149702)
Also updates our renovate config to track this. Plan on adding a few
more build related dependencies.
2023-02-06 12:52:01 -07:00
Kurt
de4e53d712
Upgrade jsonwebtoken from 8 to 9 (#148128)
## Summary

Upgrading the `jsonwebtoken` library used in
`cloud_integration/cloud_chat` plugin from v8.5 to v9.0

## Migration
After reviewing the affected code it looks like this upgrade shouldn't
cause any breaking changes. Please see the v8 --> v9 migration guide
[here](https://github.com/auth0/node-jsonwebtoken/wiki/Migration-Notes:-v8-to-v9)

## Questions for reviewers
- What is the size and type of `secret` that we are passing into
`generateSignedJwt`?

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Clint Andrew Hall <clint.hall@elastic.co>
2023-01-24 12:32:44 -05:00
Karl Godard
0b19cfafa3
Custom fleet policy UX for new integration (cloud defend v1) (#147300)
## Summary

New Kibana plugin created for an integration called "Cloud defend for
containers" which will have a corresponding agent service which can
proactively block and alert on executable creation or modification in a
running container.

This plugin is purely in place to configure the fleet policy UX around
this new integration. For now we have added a yaml editor as a custom
input to our integration. The monaco-yaml libary was added to allow
support for JSON schema validation support for yaml.

Integration PR is up, and a work in progress: (waiting on some content
for the doc page)
https://github.com/elastic/integrations/pull/4680

### Screenshot


![image](https://user-images.githubusercontent.com/16198204/207160791-73e11e05-953b-42ba-b4dd-a4904bd95451.png)

### 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
- [ ] 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))
- [x] 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))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

Co-authored-by: Karl Godard <karlgodard@elastic.co>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
2022-12-19 17:37:39 -07:00
Felix Stürmer
eb75937130
[Logs UI] Implement log stream page state as a state machine (#145234)
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: Kerry Gallagher <kerry.gallagher@elastic.co>
closes https://github.com/elastic/kibana/issues/145131
2022-12-13 17:50:36 +01:00
Jonathan Budzenski
d40e0f79a3
Upgrade node-sass to 8.0.0 (#145355)
This is needed for Node 18.

https://github.com/sass/node-sass/releases/tag/v8.0.0

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
2022-12-08 10:04:57 -06:00