feat(m365powershell): add `pwsh` authentication via app
Context
Microsoft is blocking user sign-ins without MFA, breaking our authentication flow.
Description
This PR implements a solution to authenticate PowerShell via APP credentials.
Checklist
- Are there new checks included in this PR? Yes / No
- If so, do we need to update permissions for the provider? Please review this carefully.
- [ ] Review if the code is being covered by tests.
- [ ] Review if code is being documented following this specification https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings
- [ ] Review if backport is needed.
- [ ] Review if is needed to change the Readme.md
- [ ] Ensure new entries are added to CHANGELOG.md, if applicable.
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.
Codecov Report
:x: Patch coverage is 77.47748% with 25 lines in your changes missing coverage. Please review.
:white_check_mark: Project coverage is 88.00%. Comparing base (bcc96ab) to head (67f88db).
:warning: Report is 441 commits behind head on master.
Additional details and impacted files
@@ Coverage Diff @@
## master #7992 +/- ##
==========================================
+ Coverage 80.97% 88.00% +7.03%
==========================================
Files 184 271 +87
Lines 7353 18083 +10730
==========================================
+ Hits 5954 15914 +9960
- Misses 1399 2169 +770
| Flag | Coverage Δ | |
|---|---|---|
| api | 94.45% <75.00%> (?) |
|
| prowler | 79.82% <77.66%> (-1.15%) |
:arrow_down: |
Flags with carried forward coverage won't be shown. Click here to find out more.
| Components | Coverage Δ | |
|---|---|---|
| prowler | 79.82% <77.66%> (-1.15%) |
:arrow_down: |
| api | 94.45% <94.73%> (∅) |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
⚠️ Changes detected in the following folders without a corresponding update to the CHANGELOG.md:
apiprowler
Please add an entry to the corresponding CHANGELOG.md file to maintain a clear history of changes.
⚠️ Changes detected in the following folders without a corresponding update to the CHANGELOG.md:
api
Please add an entry to the corresponding CHANGELOG.md file to maintain a clear history of changes.
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
✅ All necessary CHANGELOG.md files have been updated. Great job! 🎉
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation
You can check the documentation for this PR here -> Prowler Documentation