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

feat(m365): add sharepoint service with 4 checks #7057

Merged
merged 59 commits into from
Feb 27, 2025

Conversation

danibarranqueroo
Copy link
Member

Context

This PR introduces a new service for Microsoft365: SharePoint, which includes four new checks along with comprehensive tests for each and also for the service. All changes have been fully adapted to the latest refactor, ensuring consistency across the codebase.

The four new checks cover settings for SharePoint. They are:

  • sharepoint_external_sharing_managed: Validates that external sharing is managed in accordance with organizational policies (allowing or blocking access to certain domains).
  • sharepoint_external_sharing_restricted: Ensures that external sharing is appropriately restricted to safeguard data.
  • sharepoint_guest_sharing_restricted: Verifies that guest sharing is limited to prevent unauthorized access.
  • sharepoint_modern_authentication_required: Confirms that modern authentication is enabled for enhanced security, this means that access for applications that don't use modern authentication is blocked.

Description

Added new service with new checks and all the unit tests needed.

Checklist

API

  • Verify if API specs need to be regenerated.
  • Check if version updates are required (e.g., specs, Poetry, etc.).
  • Ensure new entries are added to CHANGELOG.md, if applicable.

License

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

MarioRgzLpz and others added 30 commits November 20, 2024 08:26
… and a check to test if things are working properly
…ing to be used and add more description to status extended in admincenter checks
…nant is not allowed for microsoft365 and adjust admincenter service and checks to that change
…al to those that are either manual in the CIS or cant be done using msgraph SDK
@danibarranqueroo danibarranqueroo requested review from a team as code owners February 27, 2025 09:24
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

Attention: Patch coverage is 96.29630% with 4 lines in your changes missing coverage. Please review.

Project coverage is 88.78%. Comparing base (258f05e) to head (76ae9b1).
Report is 8 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7057      +/-   ##
==========================================
- Coverage   92.02%   88.78%   -3.24%     
==========================================
  Files          79     1207    +1128     
  Lines        6986    35031   +28045     
==========================================
+ Hits         6429    31103   +24674     
- Misses        557     3928    +3371     
Flag Coverage Δ
api ?
prowler 88.78% <96.29%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
prowler 88.78% <96.29%> (∅)
api ∅ <ø> (∅)

Copy link
Member

@MrCloudSec MrCloudSec left a comment

Choose a reason for hiding this comment

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

Good job! Please, make sure you only pass a single object to CheckReportMicrosoft365

@MrCloudSec MrCloudSec changed the title feat(sharepoint): add new service with four new checks feat(m365): add sharepoint service with four new checks Feb 27, 2025
@MrCloudSec MrCloudSec changed the title feat(m365): add sharepoint service with four new checks feat(m365): add sharepoint service with 4 checks Feb 27, 2025
@MrCloudSec MrCloudSec self-requested a review February 27, 2025 10:34
MrCloudSec
MrCloudSec previously approved these changes Feb 27, 2025
Copy link
Member

@MrCloudSec MrCloudSec left a comment

Choose a reason for hiding this comment

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

Good job 👏🏼 👏🏼 👏🏼 👏🏼

@MrCloudSec MrCloudSec self-requested a review February 27, 2025 11:38
@MrCloudSec MrCloudSec merged commit 9679939 into master Feb 27, 2025
11 of 12 checks passed
@MrCloudSec MrCloudSec deleted the PRWLR-6061-create-sharepoint-service branch February 27, 2025 17:15
cesararroba pushed a commit that referenced this pull request Mar 3, 2025
Co-authored-by: MarioRgzLpz <[email protected]>
Co-authored-by: HugoPBrito <[email protected]>
Co-authored-by: MrCloudSec <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants