kibana icon indicating copy to clipboard operation
kibana copied to clipboard

[Cloud Posture] Rename and modify dataYml to runtimeCfg

Open uri-weisman opened this issue 2 years ago • 5 comments

Summary

This PR modify the following:

  1. CSP plugin to become benchmark agnostic.
  2. Rename dataYaml to runtimeCfg

Checklist

Delete any items that are not applicable to this PR.

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

For maintainers

uri-weisman avatar Aug 08 '22 11:08 uri-weisman

@kfirpeled Make sure you test with the matching integration version https://github.com/elastic/integrations/pull/3968

eyalkraft avatar Aug 09 '22 15:08 eyalkraft

Missed that, thanks @eyalkraft I've also noticed after the merge from upstream that the section of filling in AWS credentials is missing @uri-weisman, did you notice that? It is also missing in edit mode

Screen Shot 2022-08-09 at 18 50 37

kfirpeled avatar Aug 09 '22 15:08 kfirpeled

Pinging @elastic/kibana-cloud-security-posture (Team:Cloud Security Posture)

elasticmachine avatar Aug 09 '22 15:08 elasticmachine

Missed that, thanks @eyalkraft I've also noticed after the merge from upstream that the section of filling in AWS credentials is missing @uri-weisman, did you notice that? It is also missing in edit mode

Had some merge conflicts but now we're good to go.

uri-weisman avatar Aug 10 '22 07:08 uri-weisman

Rejecting fast, after merge I experienced the following:

  1. No default value for kubernetes integration - being able to save it without it caused an integration with 0 rules
  2. Cannot select EKS

PFA the following recording showing these issues: https://user-images.githubusercontent.com/61654899/184533043-40e29e29-e20f-44ee-b257-b68245e0c773.mov

kfirpeled avatar Aug 14 '22 11:08 kfirpeled

@elasticmachine merge upstream

uri-weisman avatar Aug 14 '22 12:08 uri-weisman

@elasticmachine merge upstream

uri-weisman avatar Aug 14 '22 13:08 uri-weisman

:green_heart: Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
cloudSecurityPosture 212.4KB 212.4KB -42.0B

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
cloudSecurityPosture 10.0KB 10.0KB +4.0B

History

  • :broken_heart: Build #64991 failed 3b586c4f33cb9c87da89bb8e2845be141d202375
  • :broken_heart: Build #64990 failed 787096c6b9f13c4bda3b3c163fce94fe2020e281
  • :broken_heart: Build #64988 failed 99b311336aa0957d6123dbddea2aa9c25e953da4
  • :green_heart: Build #64144 succeeded 95065de584d6e01f3d85b130aac9589384ff2394
  • :broken_heart: Build #64137 failed 6a8d0d01bb72e8e4eba6b77013d52e5dc0574feb

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

kibana-ci avatar Aug 14 '22 15:08 kibana-ci