Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cloud Posture] - Deprecate csp rule remove migration object #148530

Merged

Conversation

ofiriro3
Copy link
Contributor

@ofiriro3 ofiriro3 commented Jan 9, 2023

Summary

We would like to deprecate the usage of the csp_rule.
Former PRs have removed the usage of this object, and now we wish to remove it from the loaded saved object.
This will be the final PR regarding this matter.

Related PRs


export function setupSavedObjects(savedObjects: SavedObjectsServiceSetup) {
savedObjects.registerType<CspRule>({
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens once we stop registering the type to any existing csp_rule SO?

Copy link
Contributor Author

@ofiriro3 ofiriro3 Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still need to check with the 8.6 to 8.7 upgrade.

But 8.7 clean slate works as expected

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All checked and done 👍

All flows work as expected (upgrading, etc)

@@ -22,6 +22,8 @@
"path": "../../../tsconfig.json",
"force": true
},
"@kbn/security-plugin"
"@kbn/security-plugin",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you check if it's relevant for your PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file was removed once I updated the branch

@ofiriro3 ofiriro3 marked this pull request as ready for review January 16, 2023 14:51
@ofiriro3 ofiriro3 requested review from a team as code owners January 16, 2023 14:51
@ofiriro3 ofiriro3 requested a review from kfirpeled January 16, 2023 17:03
@ofiriro3 ofiriro3 added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting Team:Cloud Security Cloud Security team related labels Jan 17, 2023
@elasticmachine
Copy link
Contributor

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

@ofiriro3 ofiriro3 requested a review from CohenIdo January 24, 2023 08:14
Copy link
Contributor

@CohenIdo CohenIdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@ofiriro3 ofiriro3 changed the title Deprecate csp rule remove migration object [Cloud Posture] - Deprecate csp rule remove migration object Jan 24, 2023
@ofiriro3 ofiriro3 enabled auto-merge (squash) January 24, 2023 11:52
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Saved Objects .kibana field count

Every field in each saved object type adds overhead to Elasticsearch. Kibana needs to keep the total field count below Elasticsearch's default limit of 1000 fields. Only specify field mappings for the fields you wish to search on or query. See https://www.elastic.co/guide/en/kibana/master/saved-objects-service.html#_mappings

id before after diff
csp_rule 8 - -8
Unknown metric groups

ESLint disabled line counts

id before after diff
cloudSecurityPosture 12 11 -1

Total ESLint disabled count

id before after diff
cloudSecurityPosture 13 12 -1

History

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

@ofiriro3 ofiriro3 merged commit cb59984 into elastic:main Jan 24, 2023
@ofiriro3 ofiriro3 deleted the deprecate_csp_rule_remove_migration_object branch January 24, 2023 13:03
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 24, 2023
* main: (54 commits)
  [APM] Allow calling `createInternalESClient` without `context` (elastic#149320)
  [Synthetics] Errors list active state (elastic#149387)
  [FTRs] Execution Context: fix no data flakiness (elastic#149406)
  [Cloud Posture] - Deprecate csp rule remove migration object (elastic#148530)
  Bump elasticsearch-js to 8.6.0-canary.3 (elastic#148521)
  [Fleet] Use optimistic locking when updating `installed_es` on input package policy creation (elastic#148883)
  [ML] Remove job_type from job definitions in modules (elastic#149247)
  [ML] Consolidate `query_utils` into package `@kbn/ml-query-utils` (elastic#149224)
  [Synthetics] Better formatting for waterfall timeline tooltips (elastic#149142)
  [Cloud Posture] CIS AWS support - changes to findings tables (elastic#148945)
  [Lens] Enable previous time shift when using a date histogram (elastic#149126)
  [Synthetics] Object types panel and thresholds (elastic#149099)
  [Fleet] added back batch exec for update tags (elastic#148618)
  148790 - Fix scroll style for setup guide flyout (elastic#149242)
  Fix a11y issue with dev tool tabs (elastic#149349)
  [APM] Fix mobile indices (elastic#149230)
  [Dashboard] Fix Phrase_filter query for scripted fields (elastic#148942) (elastic#148943)
  renderCustomActionsRow with named params instead of args (elastic#149304)
  [ML] Adding ML execution context to es requests (elastic#148746)
  [Custom Branding] Replace EuiLoadingElastic with EuiLoadingSpinner (elastic#149261)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Cloud Security Cloud Security team related v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Cloud Posture] Deprecate csp_rule - Engage the breaking change committee
8 participants