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

Merge csp-security-policies into cloudbeat repo #1405

Merged
merged 252 commits into from
Oct 30, 2023

Conversation

orestisfl
Copy link
Contributor

@orestisfl orestisfl commented Oct 11, 2023

Summary of your changes

Merge csp-security-policies into cloudbeat. Benefits are:

  • Less PRs for new rules / rule updates
  • Less steps in release process
  • Developer QoL improvement as codebase is in one repo
  • Less duplication and more consistency in linting and CIs

I've cleaned up some of the history of the repo and added a tag in all commits.

To bulk-rename the commits I used git filter-repo:

git checkout -b rebase
git filter-repo --message-callback '
return b"[Security Policies] " + message' --force
git push

To add the subtree:

git subtree add --prefix security-policies https://github.com/orestisfl/csp-security-policies rebase

I suggest to review by mostly checking the last commit which are the differences I had to make post-merge for everything to work.

Related Issues

Checklist

  • I have added tests that prove my fix is effective or that my feature works
  • I have added the necessary README/documentation (if appropriate)
  • Make sure latest commit from csp-security-policies is merged into cloudbeat
  • Squash merge needs to be temporarily disabled to preserve history
  • Squash fixes in merge commit to avoid "broken" commit post-merge

@orestisfl orestisfl self-assigned this Oct 11, 2023
@elastic elastic deleted a comment from mergify bot Oct 11, 2023
@github-actions
Copy link

github-actions bot commented Oct 11, 2023

📊 Allure Report - 💚 No failures were reported.

Result Count
🟥 Failed 0
🟩 Passed 39
⬜ Skipped 1

@orestisfl orestisfl force-pushed the add-csp-security-policies branch 4 times, most recently from f096d49 to d2ffd38 Compare October 11, 2023 17:14
oren-zohar and others added 22 commits October 11, 2023 20:31
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
fields -> evidence


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
…ions rules

elastic/csp-security-policies#2

Master Node Configuration File permissions rules


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#6


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#5


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#23


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#7


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#11


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#27


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
orestisfl and others added 4 commits October 12, 2023 10:05
elastic/csp-security-policies#320


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#323


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#324


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#325


---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
orestisfl pushed a commit to orestisfl/csp-security-policies that referenced this pull request Oct 12, 2023
---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic/cloudbeat#1405
@orestisfl orestisfl force-pushed the add-csp-security-policies branch 2 times, most recently from 5340839 to 87759a9 Compare October 12, 2023 08:16
@orestisfl orestisfl requested a review from a team as a code owner October 12, 2023 08:16
@orestisfl orestisfl requested a review from kfirpeled October 12, 2023 08:16
@orestisfl orestisfl force-pushed the add-csp-security-policies branch from 87759a9 to 8e24ce6 Compare October 12, 2023 08:19
@@ -0,0 +1,35 @@
name: Test OPA Policies
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe not necessary because of pre-commit

@@ -123,7 +123,8 @@ metadata:
impact: |-
When you apply Block Public Access settings to an account, the settings apply to all AWS Regions globally. The settings might not take effect in all Regions immediately or simultaneously, but they eventually propagate to all Regions.
default_value: ''
references: 1. https://docs.aws.amazon.com/AmazonS3/latest/user-guide/block-public-access-account.html
references: 1.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: check this formatting

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Side effect of updating ruamel.yaml. Tested E2E and no differences detected.

@orestisfl orestisfl force-pushed the add-csp-security-policies branch from 8e24ce6 to 1a20fe0 Compare October 16, 2023 17:15
@oren-zohar oren-zohar requested review from orouz and removed request for kfirpeled October 17, 2023 07:41
@orestisfl orestisfl force-pushed the add-csp-security-policies branch from 1a20fe0 to ccb3721 Compare October 19, 2023 12:36
@orestisfl orestisfl removed the request for review from a team October 19, 2023 15:54
elastic/csp-security-policies#328

---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
elastic/csp-security-policies#330

---NOTE---
This is an imported commit, it was initially committed to the
csp-security-policies repo which was then merged into cloudbeat. See:
elastic#1405
@orestisfl orestisfl force-pushed the add-csp-security-policies branch from ccb3721 to f8e3420 Compare October 30, 2023 13:37
…3bb4c5b9d'

git-subtree-dir: security-policies
git-subtree-mainline: 0226706
git-subtree-split: 89f86a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge csp-security-policies into cloudbeat