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] rule_number mapping update #5054

Merged
merged 12 commits into from
Feb 12, 2023

Conversation

oren-zohar
Copy link
Contributor

@oren-zohar oren-zohar commented Jan 19, 2023

What does this PR do?

  • update the rule_number mapping
  • update rules templates

Related issues

@elasticmachine
Copy link

elasticmachine commented Jan 19, 2023

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2023-02-12T15:22:18.546+0000

  • Duration: 14 min 26 sec

Test stats 🧪

Test Results
Failed 0
Passed 2
Skipped 0
Total 2

🤖 GitHub comments

Expand to view the GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

@elasticmachine
Copy link

elasticmachine commented Jan 19, 2023

🌐 Coverage report

Name Metrics % (covered/total) Diff
Packages 100.0% (0/0) 💚
Files 100.0% (0/0) 💚 3.421
Classes 100.0% (0/0) 💚 3.421
Methods 25.0% (1/4) 👎 -66.071
Lines 100.0% (0/0) 💚 8.626
Conditionals 100.0% (0/0) 💚

@oren-zohar oren-zohar changed the title [Cloud Posture] CSP rule_number mapping update [Cloud Posture] rule_number mapping update Jan 19, 2023
@oren-zohar oren-zohar added Team:Cloud Security Label for the Cloud Security team [elastic/cloud-security-posture] Integration:cloud_security_posture Security Posture Management labels Jan 19, 2023
@oren-zohar oren-zohar marked this pull request as ready for review January 19, 2023 13:53
@oren-zohar oren-zohar requested a review from a team as a code owner January 19, 2023 13:53
…field

# Conflicts:
#	packages/cloud_security_posture/changelog.yml
#	packages/cloud_security_posture/manifest.yml
@oren-zohar
Copy link
Contributor Author

/test

@oren-zohar
Copy link
Contributor Author

/test

1 similar comment
@orouz
Copy link
Contributor

orouz commented Feb 2, 2023

/test

Copy link
Contributor

@kfirpeled kfirpeled left a comment

Choose a reason for hiding this comment

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

LGTM, please fix conflicts (maintain the prereleased version 1.2.10-next)

…field

# Conflicts:
#	packages/cloud_security_posture/changelog.yml
#	packages/cloud_security_posture/data_stream/findings/fields/rule.yml
#	packages/cloud_security_posture/manifest.yml
@oren-zohar
Copy link
Contributor Author

Related to this:

Copy link
Contributor

@ari-aviran ari-aviran left a comment

Choose a reason for hiding this comment

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

Please review the comments before merging

packages/cloud_security_posture/changelog.yml Outdated Show resolved Hide resolved
@@ -1,18 +1,18 @@
{
"id": "1d3a468f-78ca-54ff-a43c-0d205ad832b7",
"id": "04e01d1a-d7d4-5020-a398-8aadd3fe32ae",
Copy link
Contributor

Choose a reason for hiding this comment

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

Please test an upgrade from an earlier version of the integration to this version to ensure saved objects are deleted and re-installed properly since the IDs changed

@@ -33,4 +35,4 @@
"csp-rule-template": "8.7.0"
},
"coreMigrationVersion": "8.7.0"
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

All of these are missing a line break at the end of the file, consider modifying the script and regenerating all the rules

@ari-aviran
Copy link
Contributor

@oren-zohar this also resolves elastic/csp-security-policies#142 right?

@oren-zohar
Copy link
Contributor Author

@oren-zohar this also resolves elastic/csp-security-policies#142 right?

yes :)

@oren-zohar oren-zohar merged commit aaeea77 into elastic:main Feb 12, 2023
@oren-zohar oren-zohar deleted the moving-rule_number-field branch February 12, 2023 15:39
@elasticmachine
Copy link

Package cloud_security_posture - 1.2.10-beta1 containing this change is available at https://epr.elastic.co/search?package=cloud_security_posture

bhapas pushed a commit to bhapas/integrations that referenced this pull request Feb 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Integration:cloud_security_posture Security Posture Management Team:Cloud Security Label for the Cloud Security team [elastic/cloud-security-posture]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants